Skip to content

Commit a882203

Browse files
committed
return buildDirectory with sourceCpp results
1 parent 7419dfc commit a882203

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/Attributes.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ sourceCpp <- function(file = "",
113113

114114
# unload and delete existing dylib if necessary
115115
if (file.exists(context$previousDynlibPath)) {
116-
try(silent=T, dyn.unload(context$previousDynlibPath))
116+
try(silent=TRUE, dyn.unload(context$previousDynlibPath))
117117
file.remove(context$previousDynlibPath)
118118
}
119119

@@ -200,7 +200,8 @@ sourceCpp <- function(file = "",
200200

201201
# return (invisibly) a list containing exported functions and modules
202202
invisible(list(functions = context$exportedFunctions,
203-
modules = context$modules))
203+
modules = context$modules,
204+
buildDirectory = context$buildDirectory))
204205
}
205206

206207
# Define a single C++ function

0 commit comments

Comments
 (0)