Skip to content

Commit

Permalink
Fail earlier if path is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Mar 10, 2020
1 parent 04541f3 commit 235de49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/roxygenize.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ roxygenize <- function(package.dir = ".",
load_code = NULL,
clean = FALSE) {

base_path <- normalizePath(package.dir)
base_path <- normalizePath(package.dir, mustWork = TRUE)
is_first <- roxygen_setup(base_path)

encoding <- desc::desc_get("Encoding", file = base_path)[[1]]
Expand Down

0 comments on commit 235de49

Please sign in to comment.