Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix directory separator for Windows
  • Loading branch information
kos59125 committed Apr 28, 2020
commit d3d8ce5a0ac8cd8e08f41ff0b0f91e9d17cd9897
4 changes: 2 additions & 2 deletions tests/testthat/test-install-version.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ test_that("install_version with specific version on duplicating repository", {
# set CRAN mirror
repos <- getOption("repos")
if (length(repos) == 0) repos <- character()
repos[repos == "@CRAN@"] <- sprintf("file://%s", local_cran)
repos[repos == "@CRAN@"] <- sprintf("file://%s", gsub("\\\\", "/", local_cran))

# run test
install_version("rstudioapi", lib = lib, repos = repos, quiet = TRUE)
Expand Down Expand Up @@ -207,7 +207,7 @@ test_that("install_version latest version on duplicating repository", {
# set CRAN mirror
repos <- getOption("repos")
if (length(repos) == 0) repos <- character()
repos[repos == "@CRAN@"] <- sprintf("file://%s", local_cran)
repos[repos == "@CRAN@"] <- sprintf("file://%s", gsub("\\\\", "/", local_cran))

# run test
install_version("rstudioapi", "0.3.1", lib = lib, repos = repos, quiet = TRUE)
Expand Down