Skip to content

Commit

Permalink
Path check error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Aug 26, 2022
1 parent 82f5a0e commit a2ef3b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Install dependencies
run: |
install.packages(c("remotes", "curl"), dependencies = TRUE)
remotes::install_local(path = ".")
remotes::install_local(path = ".", INSTALL_opts = "--no-test-load")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("covr")
remotes::install_cran("gridExtra")
Expand Down
5 changes: 0 additions & 5 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,6 @@ check_file_exists <- function(files, access = NULL, ...) {
wsl_user <- gsub("\n", "", wsl_user, fixed = TRUE)

path_metadata <- grep(wsl_user, path_metadata, value = TRUE)
if (is_dir) {
if (any(substr(path_metadata, 1, 1) != "d")) {
return(paste0("Provided path: ", path, " is not a directory!"))
}
}

if (!is.null(access)) {
path_permissions <- strsplit(path_metadata, " ", fixed = TRUE)[[1]][1]
Expand Down

0 comments on commit a2ef3b9

Please sign in to comment.