Skip to content

Commit bed9ad7

Browse files
committed
Only look for plugins in the package's namespace (rather than entire search path)
1 parent 368d86a commit bed9ad7

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2014-10-03 JJ Allaire <jj@rstudio.org>
2+
3+
* R/Attributes.R: Only look for plugins in the package's namespace
4+
(rather than entire search path)
5+
16
2014-10-01 Kevin Ushey <kevinushey@gmail.com>
27

38
* inst/include/Rcpp/vector/ListOf.h ListOf<T> inherits relevant proxies

R/Attributes.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ sourceCppFunction <- function(func, isVoid, dll, symbol) {
525525

526526
# Get the inline plugin for the specified package (return NULL if none found)
527527
.getInlinePlugin <- function(package) {
528-
tryCatch(get("inlineCxxPlugin", asNamespace(package)),
528+
tryCatch(get("inlineCxxPlugin", asNamespace(package), inherits = FALSE),
529529
error = function(e) NULL)
530530
}
531531

inst/NEWS.Rd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
\item The \code{ListOf<T>} class gains the \code{.attr} and
1010
\code{.names} methods common to other Rcpp vectors.
1111
}
12+
\item Changes in Rcpp Attributes:
13+
\itemize{
14+
\item Only look for plugins in the package's namespace
15+
(rather than entire search path)
16+
}
1217
}
1318
}
1419

0 commit comments

Comments
 (0)