Skip to content

Commit 997458f

Browse files
committed
Strip version in .parseLinkingTo (#145)
1 parent defc417 commit 997458f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2014-07-09 Kevin Ushey <kevinushey@gmail.com>
2+
3+
* R/Attributes.R: Strip version in .parseLinkingTo
14
2014-07-12 Dirk Eddelbuettel <edd@debian.org>
25

36
* inst/include/Rcpp/generated/InternalFunction__ctors.h: Regenerated

R/Attributes.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,8 @@ sourceCppFunction <- function(func, isVoid, dll, symbol) {
865865
return (character())
866866

867867
linkingTo <- strsplit(linkingTo, "\\s*\\,")[[1]]
868-
gsub("\\s", "", linkingTo)
868+
result <- gsub("\\s", "", linkingTo)
869+
gsub("\\(.*", "", result)
869870
}
870871

871872
# show diagnostics for failed builds

0 commit comments

Comments
 (0)