futureverse / future.apply

:rocket: R package: future.apply - Apply Function to Elements in Parallel using Futures
https://future.apply.futureverse.org
211 stars 16 forks source link

odbcConnect is not loaded in globals #19

Closed Rloveeee closed 6 years ago

Rloveeee commented 6 years ago

Hi All,


library("future.apply") library("RODBC") plan(multiprocess, workers = 5) fopts <- options() print(exists("odbcConnect"))


[1] TRUE


FUN=function(x) { odbcConnect  }
xx=future.apply::future_lapply(FUN=FUN,X=c("EMA","EBM","ECO","O","LRC"),future.globals=ls())

Error in ...future.FUN(...future.X_jj, ...) : objet 'odbcConnect' introuvable


It could the same underlying issues than the problem function.type problem.

Best

HenrikBengtsson commented 6 years ago

Using future.globals=ls() overrides whatever the automatic identification globals would do. Look at ls() to see what globals your telling it to use.

HenrikBengtsson commented 6 years ago

I'm closing since I believe I answered your question. Feel free to reopen.