I'm writing a code to run the clusters. This is the piece of code.

cores = detectCores(logical = FALSE)
c1 = makeCluster(cores)

c1 has been defined clearly. It runs as well. But when I try to see the object c1, I get an error like "object 'c1' not found". This error affects my subsequent steps as well. A sample for that is seen below

clusterCall(c1,function(){ Sys.setlocale("LC_ALL","japanese_JAPAN")})

This is the error I get. "Error in defaultCluster(cl) : object 'c1' not found". I did a research on this error. It tells that c1 has not been defined as global variable. But I can see that in the global variable section of the Rstudio. How do I solve this error?


Browse other questions tagged or ask your own question.