HenrikBengtsson / future.BatchJobs

:rocket: R package: future.BatchJobs: A Future API for Parallel and Distributed Processing using BatchJobs [Intentionally archived on CRAN on 2021-01-08]
https://cran.r-project.org/package=future.BatchJobs
8 stars 0 forks source link

There should also be a way to export options(), par() etc. #29

Closed HenrikBengtsson closed 9 years ago

HenrikBengtsson commented 9 years ago

Problem

There should also be a way to export options(), e.g.

options(width=60)
a %<=% {   getOption("width") 
 }

will return the (default) 80, and not the set 60, because options are currently not exported. Same with par() options etc.

Workaround

Currently one needs to explicitly set the options as in.

options(width=60)
a %<=% {
  options(width=60)
  getOption("width") 
}

Action

This is a trick one, because it could be that we do not want to export all possible options, e.g. BatchJobs options(?!?).

HenrikBengtsson commented 9 years ago

This issue should be moved to the future package.