Permalink
Browse files

Use --as-cran. Fixes #68

  • Loading branch information...
1 parent a414a18 commit a409f4cf057e17253e18072e3f216adb88502665 @hadley committed Mar 21, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 NEWS
  2. +1 −1 R/check.r
View
3 NEWS
@@ -1,3 +1,6 @@
+* `check` uses new `--as-cran` option to make checking as close to CRAN as
+ possible (fixes #68)
+
* `install` now quotes `libpath` so paths with embedded spaces work. (Fixes
#73)
View
@@ -62,7 +62,7 @@ check_cran <- function(pkg, ...) {
out_path <- downloaded[1,2]
check_path <- gsub("_.*?$", ".Rcheck", out_path)
- R(paste("CMD check ", out_path, sep = ""), tempdir())
+ R(paste("CMD check --as-cran ", out_path, sep = ""), tempdir())
unlink(out_path)
unlink(check_path, recursive = TRUE)

0 comments on commit a409f4c

Please sign in to comment.