You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
devtools::load_all unloads previously loaded DLLs and therefore reorders the LoadedDLL array, but the getCallingDLLe result that R relies upon when looking up DLL objects does not change in the same way. This sometimes leads to not resolved from current namespace errors when an unlucky package calls a .C function.
In the following example, I have cloned the ParamHelpers package to a subdirectory, and I have the lhs package installed in my library. R needs to be run with the --vanilla option to prevent interference from a possible .RData file.
$R--vanilla>devtools::load_all("ParamHelpers")
LoadingParamHelpersRe-compilingParamHelpers'/usr/lib64/R/bin/R'CMDINSTALL'/home/user/ParamHelpers'--library='/tmp/RtmproDXbZ/devtools_install_588768c7107c'--no-R--no-data--no-help--no-demo--no-inst--no-docs--no-exec--no-multiarch--no-test-loadmake:Nothingtobedonefor'all'.>lhs::maximinLHS(n=2, k=2) # implicitly load the lhs DLL; works fine here.
[,1] [,2]
[1,] 0.60084100.9491948
[2,] 0.47233760.3303989>devtools::load_all("ParamHelpers")
LoadingParamHelpersRe-compilingParamHelpers'/usr/lib64/R/bin/R'CMDINSTALL'/home/user/master/ParamHelpers'--library='/tmp/RtmproDXbZ/devtools_install_58874478c51e'--no-R--no-data--no-help--no-demo--no-inst--no-docs--no-exec--no-multiarch--no-test-loadmake:Nothingtobedonefor'all'.>lhs::maximinLHS(n=2, k=2) # does not work Errorin .C("maximinLHS_C", as.integer(n), as.integer(k), as.integer(dup), :"maximinLHS_C"notresolvedfromcurrent namespace (lhs)
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Sep 18, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
devtools::load_all
unloads previously loaded DLLs and therefore reorders theLoadedDLL
array, but thegetCallingDLLe
result that R relies upon when looking up DLL objects does not change in the same way. This sometimes leads tonot resolved from current namespace
errors when an unlucky package calls a.C
function.In the following example, I have cloned the ParamHelpers package to a subdirectory, and I have the lhs package installed in my library. R needs to be run with the
--vanilla
option to prevent interference from a possible.RData
file.P.S.
dyn.unload
should take care of this. This looks like the same issue and was filed 1.5 years ago at the R project's bugzilla. Someone with an account could add a back reference to here.PACKAGE
argument when calling.C
.The text was updated successfully, but these errors were encountered: