Skip to content

Commit

Permalink
Use styler on the package
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester committed Oct 26, 2018
1 parent 4953bd6 commit 448ba42
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ check_built <- function(path = NULL, cran = TRUE,
}

withr::with_envvar(env_vars, action = "prefix", {
rcmdcheck::rcmdcheck(path, quiet = quiet, args = args,
check_dir = check_dir, error_on = error_on)
rcmdcheck::rcmdcheck(path,
quiet = quiet, args = args,
check_dir = check_dir, error_on = error_on
)
})
}

Expand Down
6 changes: 4 additions & 2 deletions R/infrastructure.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ use_data <- function(..., pkg = ".", internal = FALSE, overwrite = FALSE,
compress = "bzip2") {
.Deprecated("usethis::use_data()", package = "devtools")
warn_unless_current_dir(pkg)
usethis::use_data(..., internal = internal, overwrite = overwrite,
compress = compress)
usethis::use_data(...,
internal = internal, overwrite = overwrite,
compress = compress
)
}

#' @rdname devtools-deprecated
Expand Down
4 changes: 2 additions & 2 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ install <-
keep_source = getOption("keep.source.pkgs"),
force = FALSE,
...) {

pkg <- as.package(pkg)

# Forcing all of the promises for the current namespace now will avoid lazy-load
Expand Down Expand Up @@ -146,5 +145,6 @@ install_dev_deps <- function(pkg = ".",
pkg <- as.package(pkg)

remotes::install_deps(pkg$path, ...,
dependencies = TRUE, upgrade = upgrade)
dependencies = TRUE, upgrade = upgrade
)
}

0 comments on commit 448ba42

Please sign in to comment.