Hi, a drive-by comment since I happened to see:
|
.onAttach <- function(libname, pkgname) |
|
{ |
|
options(optimParallel.forward=getOption("optimParallel.forward", FALSE)) |
|
options(optimParallel.loginfo=getOption("optimParallel.loginfo", FALSE)) |
|
} |
If you use .onLoad() instead of .onAttach(), then those R options will be set also when someone uses your package without library(), e.g. when importing optimParallel() in another package, or when calling it as:
res <- optimParallel::optimParallel(...)
Hi, a drive-by comment since I happened to see:
optimParallel-R/optimParallel/R/zzz.R
Lines 1 to 5 in fc25f4c
If you use
.onLoad()instead of.onAttach(), then those R options will be set also when someone uses your package withoutlibrary(), e.g. when importingoptimParallel()in another package, or when calling it as: