javascript | google sheets - missing name after . operator. : I get this error when debugging/running my code on line 10.  Any chance anyone know the workaround?

    function codebook_level() {
      
      if(!require(pacman)) {
      install.packages("pacman"); require(pacman)}
    p_load(magrittr, data.table)
    require(dplyr)
    
    
    read_add_name_col <- function(file){
      rn <- gsub(".csv", "", file, ignore.case=T)
      spl <- strsplit(rn, "/") %>% unlist()
      svy <- spl[length(spl)]
      df <- fread(file)
      df$survey_series <- svy
      return(df)
    ....