I want ot run an R script as a local job , which contains a parlapply function. I defined the variables with clusterExport(cl, list("URL", "read_text")), but it reads from the global environment. Is there a way to specify to read from the local environment?
Check the arguments of clusterexport. İt has an envir argument to set the environment where the list of parameters were taken. You can reference to current environment by environment() function.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.