Skip to content
Prev 371246 / 398530 Next

withr::set_makevars

withr:::set_makevars() can give that error if the makefile named by the
'old_path' argument (default "~/.R/Makevars) contains more than one
definition of a variable of the form 'name=value'.  You can see what file
it is reading and its contents by using the trace() function:

trace(withr:::set_makevars, quote({ cat(old_path, "\n");
writeLines(paste0("    ", tryCatch(readLines(old_path),
error=function(e)conditionMessage(e))))}))

Then run your test and see what file set_makevars is complaining about and
what in the file might cause trouble for set_makevars.


Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Wed, Sep 6, 2017 at 3:41 PM, Roy Mendelssohn - NOAA Federal <
roy.mendelssohn at noaa.gov> wrote: