You need to export those variables to the other R processes in the cluster:
cl <- makeCluster(mc <- getOption("cl.cores", 4))
clusterExport(cl=cl, varlist=c("text.var", "ntv", "gc.rate", "pos"))
More Related Contents:
- Why is the parallel package slower than just using apply?
- How can I print when using %dopar%
- run a for loop in parallel in R
- Saving multiple outputs of foreach dopar loop
- data.table and parallel computing
- Is there a vectorized parallel max() and min()?
- reading global variables using foreach in R
- How can I `print` or `cat` when using parallel
- parallel execution of random forest in R
- How to replace a value by another within a variable in R?
- Relative frequencies / proportions with dplyr
- How to add texture to fill colors in ggplot2
- Cleaning up factor levels (collapsing multiple levels/labels)
- Split a large dataframe into a list of data frames based on common value in column
- Save a plot in an object
- ggplot, facet, piechart: placing text in the middle of pie chart slices
- YAML current date in rmarkdown
- How to parametrize function calls in dplyr 0.7?
- What are the differences between community detection algorithms in igraph?
- How to stack error bars in a stacked bar plot using geom_errorbar?
- Find value corresponding to maximum in other column [duplicate]
- Split delimited single value character vector
- R split numeric vector at position
- Creating a Plot Window of a Particular Size
- Join two data frames in R based on closest timestamp
- Update/Replace Values in Dataframe with Tidyverse Join
- Importing a big xlsx file into R?
- How do you create vectors with specific intervals in R?
- R: apt-get install r-cran-foo vs. install.packages(“foo”)
- Round a POSIX date (POSIXct) with base R functionality