From 975361f40ee5140e3c843be365a20070edc63bfb Mon Sep 17 00:00:00 2001 From: TJ McKinley Date: Sat, 9 Nov 2019 03:17:32 +0000 Subject: [PATCH] Update Attributes.R Corrected parsing of multiple "depends" statements in "cppFunction". --- R/Attributes.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/Attributes.R b/R/Attributes.R index b281ee918..c911ba0f9 100644 --- a/R/Attributes.R +++ b/R/Attributes.R @@ -244,7 +244,7 @@ cppFunction <- function(code, # process depends if (!is.null(depends) && length(depends) > 0) { # #nocov start - depends <- paste(depends, sep=", ") + depends <- paste(depends, collapse=", ") scaffolding <- paste("// [[Rcpp::depends(", depends, ")]]", sep="") scaffolding <- c(scaffolding, "", .linkingToIncludes(depends, FALSE), recursive=TRUE) # #nocov end