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
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2016-11-13 Dirk Eddelbuettel <edd@debian.org>

* R/Attributes.R (mergeIntoBuildEnv): Correct 'empty' return
2016-11-13 Daniel C. Dillon <dcdillon@gmail.com>
* inst/include/Rcpp/RNGScope.h: Moved definition of RNGScope
to its own file
Expand Down
4 changes: 2 additions & 2 deletions R/Attributes.R
Original file line number Diff line number Diff line change
Expand Up @@ -618,15 +618,15 @@ sourceCppFunction <- function(func, isVoid, dll, symbol) {

# protect against null or empty string
if (is.null(value) || !nzchar(value))
return;
return(invisible(NULL))

# if it doesn't exist already just set it
if (is.null(buildEnv[[name]])) {
buildEnv[[name]] <<- value
}
# if it's not identical then append
else if (!identical(buildEnv[[name]], value)) {
buildEnv[[name]] <<- paste(buildEnv[[name]], value);
buildEnv[[name]] <<- paste(buildEnv[[name]], value)
}
else {
# it already exists and it's the same value, this
Expand Down