Skip to content

Commit

Permalink
proper cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Dec 19, 2023
1 parent d5ce7e1 commit ef0d4fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion man/mirror.packages.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ localrepos <- file.path("file:", normalizePath(repodir))
available.packages(type="source", repos=localrepos)[,c("Package","Repository","File")]
available.packages(type="win.binary", repos=localrepos)[,c("Package","Repository","File")]
unlink(repodir)
unlink(repodir, recursive=TRUE)
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/localdir-repos.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,6 @@ stopifnot(
# a matter of switch to contriburl at start of install.packages/update.packages?
# switch using contrib.url() for cran and localcran, as is for localdir

unlink(td)
unlink(td, recursive=TRUE)
options(.op)
if (!interactive()) q("no")

0 comments on commit ef0d4fb

Please sign in to comment.