Describe the bug
If you launch parallel processes via the parallel package in the R terminal generated by "Create R Terminal" then the users .Rprofile file is not respected.
To Reproduce
Create a empty directory
Add a .Rprofile file that contains print("hello world")
Load R terminal via "Create R terminal"
Create parallel processes via parallel::createCluster(2)
Notice that the "hello world" does not appear
Run this instead via the terminal i.e. Rscript -e 'parallel::makeCluster(2)' and notice that the "hello worlds" for the parallel processes do appear
Can you fix this issue by yourself? (We appreciate the help)
Expected behavior
Expect that parallel sessions spawned within this terminal respect the users local .Rprofile (we depend heavily on it to setup libpaths.
Screenshots
Top left box - shows example script to be executed
Bottom left box - shows our .Rprofile file printing "hi"
Top right box - shows us executing the script manually in an R terminal created by this extension
Bottom right box - shows us executing the script via the terminal
Environment (please complete the following information):
Screenshot came from in house server but I was able to re-produce this on my local machine
Describe the bug If you launch parallel processes via the
parallel
package in the R terminal generated by "Create R Terminal" then the users.Rprofile
file is not respected.To Reproduce
.Rprofile
file that containsprint("hello world")
parallel::createCluster(2)
Rscript -e 'parallel::makeCluster(2)'
and notice that the "hello worlds" for the parallel processes do appearCan you fix this issue by yourself? (We appreciate the help)
No
(If yes,) can we assist you with anything?
(If applicable) Please attach
setting.json
Defaults, except:
Expected behavior Expect that parallel sessions spawned within this terminal respect the users local
.Rprofile
(we depend heavily on it to setup libpaths.Screenshots
.Rprofile
file printing "hi"Environment (please complete the following information):
Screenshot came from in house server but I was able to re-produce this on my local machine