futureverse / parallelly

R package: parallelly - Enhancing the 'parallel' Package
https://parallelly.futureverse.org
130 stars 7 forks source link

makeClusterPSOCK(): `rscript_libs` does not support backslashes #76

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

From https://github.com/HenrikBengtsson/future/discussions/566#discussioncomment-1802928:

cl <- makeClusterPSOCK(1L, rscript_libs = "\\\\home.ser.ver.com/path/4.1")

ends up trying to set .libPaths("\\home.ser.ver.com/path/4.1")) on the cluster node rather than .libPaths("\\\\home.ser.ver.com/path/4.1")). Note how \\\\ becomes \\.

HenrikBengtsson commented 2 years ago

Confirmed to work, cf. https://github.com/HenrikBengtsson/future/discussions/566#discussioncomment-1805261