Skip to content

Commit

Permalink
Update check_if_installed.R
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke authored Aug 6, 2023
1 parent 28adc27 commit a823ed5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/check_if_installed.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ get_dep_version <- function(dep, pkg = utils::packageName()) {
out <- lapply(dep, function(x) {
dep.string <- grep(paste0("\n", x), suggests.list, value = TRUE, fixed = TRUE)

Check warning on line 161 in R/check_if_installed.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/check_if_installed.R,line=161,col=5,[object_name_linter] Variable and function name style should match snake_case or symbols.

Check warning on line 161 in R/check_if_installed.R

View workflow job for this annotation

GitHub Actions / lint / lint

file=R/check_if_installed.R,line=161,col=5,[object_name_linter] Variable and function name style should match snake_case or symbols.
dep.string <- unlist(strsplit(dep.string, ">", fixed = TRUE))

Check warning on line 162 in R/check_if_installed.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/check_if_installed.R,line=162,col=5,[object_name_linter] Variable and function name style should match snake_case or symbols.

Check warning on line 162 in R/check_if_installed.R

View workflow job for this annotation

GitHub Actions / lint / lint

file=R/check_if_installed.R,line=162,col=5,[object_name_linter] Variable and function name style should match snake_case or symbols.
out <- gsub("[^0-9.]+", "", dep.string[2])
out
gsub("[^0-9.]+", "", dep.string[2])
})
out <- unlist(out)
if (all(is.na(out))) {
Expand Down

0 comments on commit a823ed5

Please sign in to comment.