diff --git a/DESCRIPTION b/DESCRIPTION index e1f9ae4ef..a1defbdd4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -22,7 +22,7 @@ Imports: desc (>= 1.2.0), digest, methods, - pkgload, + pkgload (>= 1.0.2), purrr, R6 (>= 2.1.2), Rcpp (>= 0.11.0), diff --git a/NEWS.md b/NEWS.md index c9eaf0d7b..05c85039f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # roxygen2 6.1.0.9000 +* `roxygenise()` no longer recompiles packages containing src code (#784). + * Correctly parse multi-line DESCRIPTION collate directives (@brodieG, #790). * `roxygenize()` now stops with an informative error message when run in a diff --git a/R/parse.R b/R/parse.R index 11ba20a79..649fb9119 100644 --- a/R/parse.R +++ b/R/parse.R @@ -105,5 +105,9 @@ env_file <- function(file) { #' @export #' @rdname parse_package env_package <- function(path) { - pkgload::load_all(path)$env + pkgload::load_all(path, + compile = FALSE, + helpers = FALSE, + attach_testthat = FALSE + )$env }