[Rcpp-commits] r4186 - in pkg/Rcpp: . R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sat Jan 5 01:35:34 CET 2013
Author: jjallaire
Date: 2013-01-05 01:35:33 +0100 (Sat, 05 Jan 2013)
New Revision: 4186
Modified:
pkg/Rcpp/ChangeLog
pkg/Rcpp/R/Attributes.R
Log:
null check on pkginfo depends field
Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog 2013-01-03 02:46:20 UTC (rev 4185)
+++ pkg/Rcpp/ChangeLog 2013-01-05 00:35:33 UTC (rev 4186)
@@ -1,3 +1,7 @@
+2014-01-04 JJ Allaire <jj at rstudio.org>
+
+ * R/Attributes.R: null check on pkginfo depends field
+
2013-01-02 Dirk Eddelbuettel <edd at debian.org>
* src/Timer.cpp (Rcpp): Applied refinement of previously applied
Modified: pkg/Rcpp/R/Attributes.R
===================================================================
--- pkg/Rcpp/R/Attributes.R 2013-01-03 02:46:20 UTC (rev 4185)
+++ pkg/Rcpp/R/Attributes.R 2013-01-05 00:35:33 UTC (rev 4186)
@@ -279,6 +279,8 @@
pkgInfo <- tools:::.split_description(tools:::.read_description(descFile))
pkgname <- as.character(pkgInfo$DESCRIPTION["Package"])
depends <- unique(names(pkgInfo$Depends))
+ if (is.null(depends))
+ depends <- character()
# determine source directory
srcDir <- file.path(pkgdir, "src")
More information about the Rcpp-commits
mailing list