Skip to content

Commit 24588f4

Browse files
committed
Apply StyleR
1 parent 7588184 commit 24588f4

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

R/add_cran_binary_pkgs.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,5 +178,3 @@ add_cran_binary_pkgs <- function(app_name = "myapp") {
178178

179179
setwd(tempdir())
180180
}
181-
182-

R/check_version.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
#' @import cli
22
#' @importFrom utils old.packages packageVersion
33
checkForPackageUpdates <- function(packageName) {
4-
54
currentVersion <- packageVersion(packageName)
65

76
# Check for updates on CRAN
87
updates <- old.packages(lib.loc = .libPaths(), repos = "https://cloud.r-project.org")
98

109
if (!is.null(updates) && packageName %in% rownames(updates)) {
1110
latestVersion <- updates[packageName, "Version"]
12-
cli_alert_info(sprintf("A new version of %s is available: %s\nYou are using version: %s\nConsider updating the package using install.packages('%s').",
13-
packageName, latestVersion, currentVersion, packageName))
11+
cli_alert_info(sprintf(
12+
"A new version of %s is available: %s\nYou are using version: %s\nConsider updating the package using install.packages('%s').",
13+
packageName, latestVersion, currentVersion, packageName
14+
))
1415
} else {
1516
cli_alert_success(sprintf("You are using the latest version of %s.", packageName))
1617
}

0 commit comments

Comments
 (0)