Skip to content

Commit

Permalink
Don't recompile C source code
Browse files Browse the repository at this point in the history
Fixes #784
  • Loading branch information
hadley committed Nov 2, 2018
1 parent 56aa9b7 commit 9adcc8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion R/parse.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 9adcc8e

Please sign in to comment.