Skip to content

string literals input error #2

Description

@TinasheMTapera

bakepipe will only parse bare strings in the input functions:

R 4.5.1> status()
Error in value[[3L]](cond) : file_in() only supports string literals
✗ R 4.5.1> # Read in previously cleaned MAHERY total consumption data
+  mah_consump <- here("data", "inputs", "01_gold_mine", "madagascar-cohort-data-zip", "mah_hh_dietary_intake.csv")
R 4.5.1> mah_consump
[1] "/n/holylabs/cgolden_lab/Lab/frontier/works/prospectors/prospectorMahery/data/inputs/01_gold_mine/madagascar-cohort-data-zip/mah_hh_dietary_intake.csv"
R 4.5.1> length(mah_consump)
[1] 1
R 4.5.1> is.character(mah_consump)
[1] TRUE
R 4.5.1> traceback()
9: stop(e$message)
8: value[[3L]](cond)
7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
6: tryCatchList(expr, classes, parentenv, handlers)
5: tryCatch({
       files <- c(files, extract_file_calls(expr[[i]], func_name))
   }, error = function(e) {
       stop(e$message)
   })
4: extract_file_calls(expr, "file_in")
3: parse_script(script_path)
2: parse()
1: status()

This isn't very useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions