I am trying to load some sources to be available in cluster nodes (I'm trying out to do something with ClusterEvalQ
from the "parallel" package). The problem I have is that for some reason some of the functions that are normally loaded when I simply use source() from within a script are not loaded when loaded with evalq()
. I am trying to source my files that have multiple function definitions in the compute nodes with clusterEvalQ()
- apparently there is this "tail" argument in the end of the source function that prevents from loading the last function. How do I go about fixing that?
I have seen there is another question addressing the same issue.
But my problem is different. It loads everything except the last thing defined in the source file.
Thank you for improving the formating guys - I rarelly ask questions on stack overflow. My current workaround is to put a dummy empty function on the most imporant sources.