Running 'winpath.R'
Running the tests in 'tests/winpath.R' failed.
Complete output:
  > library(switchr)
  > ## if(getOption("repos")["CRAN"] == "@CRAN@")
  > ##     chooseCRANmirror(ind=1L)
  > graceful_inet(TRUE)
  [1] TRUE
  > checkUrlRoundtrip = function(pth) {
  +     pth = switchr:::normalizePath2(pth)
  +     furl = switchr:::makeFileURL(pth)
  +     pth2 = switchr:::fileFromFileURL(furl)
  +     if(pth != pth2)
  +         stop("Round trip result (", pth2, ") does not match original (", pth, ") when creating file URLs")
  + }
  > 
  > ## regression test to ensure that the roundtrip
  > ## between path and file url is working properly
  > checkUrlRoundtrip(getwd())
  > checkUrlRoundtrip(tempdir())
  > if(switchr:::isWindows())
  +     checkUrlRoundtrip("\\\\laptop\\My Documents\\")
  Warning messages:
  1: In normalizePath(path.expand(path), winslash, mustWork) :
    path[1]="\\laptop\My Documents\": The network path was not found
  2: In normalizePath(path.expand(path), winslash, mustWork) :
    path[1]="\\laptop\My Documents\": The network path was not found
  3: In normalizePath(path.expand(path), winslash, mustWork) :
    path[1]="\\laptop/My Documents/": The network path was not found
  > 
  > ## regreossion test to ensure that package dependencies
  > ## are added to the dontunload list when a package
  > ## is specified
  > bef = switchrDontUnload()
  > af = switchrDontUnload("knitr")
  caught error: Error: Bioconductor version '3.13' requires R version '4.1'; use
    `BiocManager::install(version = '3.15')` with R version 4.2; see
    https://bioconductor.org/install
  
  Switchr needs a default CRAN mirror set via R options. Using the cloud mirror. This happens only when no CRAN mirror is selected *and* the BiocInstaller package is not installed.
  > stopifnot(all(c("stringr", "stringi", "magrittr") %in% af))
  > 
  > 
  > ## regression test for unnecessary (and expensive)
  > ## lazy repo construction when install_packages
  > ## is passed urls for existing repos (the default
  > ## behavior).
  > tmplib = tempdir()
  > trace(lazyRepo, stop)
  Tracing function "lazyRepo" in environment <namespace:switchr>
  Warning: Tracing only in the namespace; to untrace you will need:
  untrace("lazyRepo", where = getNamespace("switchr"))
  [1] "lazyRepo"
  attr(,"package")
  [1] "switchr"
  > install_packages("switchr", repos = defaultRepos(), lib = tmplib)
  caught error: Error: Bioconductor version '3.13' requires R version '4.1'; use
    `BiocManager::install(version = '3.15')` with R version 4.2; see
    https://bioconductor.org/install
  
  Error in getStringType(repos) : 
    Got mixed string types (likely in seed). This shouldn't happen.
  Calls: install_packages -> install_packages -> getStringType
  Execution halted