Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nCompiler/R/NC_FullCompiledInterface.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#' @export
build_compiled_nClass <- function(NCgenerator,
newCobjFun,
env = parent.frame(),
env = NCgenerator$parent_env,
quoted = FALSE) {
# One might wonder if we can have an R6 class created here to
# interface with a compiled C++ class be established with
Expand Down
4 changes: 2 additions & 2 deletions nCompiler/R/nCompile.R
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@ nCompile_finish_nonpackage <- function(units,
} else {
if(expect_createFromR[i]) createFromR_fun <- compiledFuns[[iRes]]
R6interfaces[[i]] <- try(build_compiled_nClass(units[[i]],
createFromR_fun,
env = resultEnv))
createFromR_fun))
# env = resultEnv))
if(inherits(R6interfaces[[i]], "try-error")) {
warning(paste0("There was a problem building a full nClass interface for ", exportNames[i], "."))
R6interfaces[[i]] <- NULL
Expand Down