Running ‘winpath.R’ [12s/16s]
Running the tests in ‘tests/winpath.R’ failed.
Complete output:
  > library(switchr)
  Warning: namespace 'RCurl' is not available and has been replaced
  by .GlobalEnv when processing object ''
  Warning: namespace 'RCurl' is not available and has been replaced
  by .GlobalEnv when processing object ''
  Warning: namespace 'RCurl' is not available and has been replaced
  by .GlobalEnv when processing object ''
  Warning: namespace 'RCurl' is not available and has been replaced
  by .GlobalEnv when processing object ''
  Warning: namespace 'RCurl' is not available and has been replaced
  by .GlobalEnv when processing object ''
  Warning: namespace 'RCurl' is not available and has been replaced
  by .GlobalEnv when processing object ''
  > if(getOption("repos")["CRAN"] == "@CRAN@")
  +     chooseCRANmirror(ind=2)
  > 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\\")
  > 
  > ## regreossion test to ensure that package dependencies
  > ## are added to the dontunload list when a package
  > ## is specified
  > bef = switchrDontUnload()
  > af = switchrDontUnload("knitr")
  > 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)
  Loading required namespace: RCurl
  Failed with error:  'unable to load shared object '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so':
    /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so: failed to map segment from shared object'
  Loading required namespace: RCurl
  Failed with error:  'unable to load shared object '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so':
    /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so: failed to map segment from shared object'
  In addition: There were 50 or more warnings (use warnings() to see the first 50)
  Loading required namespace: RCurl
  Failed with error:  'unable to load shared object '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so':
    /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so: failed to map segment from shared object'
  In addition: There were 50 or more warnings (use warnings() to see the first 50)
  Loading required namespace: RCurl
  Failed with error:  'unable to load shared object '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so':
    /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so: failed to map segment from shared object'
  In addition: There were 50 or more warnings (use warnings() to see the first 50)
  trying URL 'http://cloud.r-project.org/src/contrib/switchr_0.13.5.tar.gz'
  Content type 'application/x-gzip' length 495923 bytes (484 KB)
  ==================================================
  downloaded 484 KB
  
  * installing *source* package 'switchr' ...
  ** package 'switchr' successfully unpacked and MD5 sums checked
  ** R
  ** inst
  ** byte-compile and prepare package for lazy loading
  Failed with error:  'unable to load shared object '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so':
    /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so: failed to map segment from shared object'
  Warning in readLines(con) :
    cannot open URL 'http://bioconductor.org/packages/3.7/extra': HTTP status was '404 Not Found'
  ** help
  *** installing help indices
  ** building package indices
  ** installing vignettes
  ** testing if installed package can be loaded
  Error in file(filename, "r", encoding = encoding) : 
    cannot open the connection
  Calls: local ... eval.parent -> eval -> eval -> eval -> eval -> source -> file
  In addition: Warning message:
  In file(filename, "r", encoding = encoding) :
    cannot open file 'startup.Rs': No such file or directory
  Execution halted
  ERROR: loading failed
  * removing '/tmp/Rtmp86UCB1/switchr'
  
  The downloaded source packages are in
  	'/tmp/Rtmp86UCB1/downloaded_packages'
  character(0)
  There were 50 or more warnings (use warnings() to see the first 50)
  > untrace("lazyRepo", where = getNamespace("switchr"))
  Untracing function "lazyRepo" in package "namespace:switchr"
  > 
  > ## regression test for DESCRIPTION annotation with dups in manifest
  > ## This fails on the CRAN build systems but works locally, so disabled
  > ## man = PkgManifest(name = c("fastdigest", "fastdigest"), type = "cran")
  > ## install_packages("fastdigest", man, lib = tmplib)
  > 
  > 
  > ## regression test for generating empty manifest df and empty manifest
  > mandf = ManifestRow()
  > stopifnot(nrow(mandf) == 0)
  > 
  > man = PkgManifest()
  > stopifnot(nrow(manifest_df(man)) == 0)
  > 
  > sman = SessionManifest(man)
  > stopifnot(nrow(manifest_df(sman)) == 0 && nrow(versions_df(sman)) == 0)
  > 
  > ## make sure bioc version stuff works
  > thing = switchr:::develVers
  > stopifnot(is(thing, "character"))
  > 
  > #stopifnot(nrow(available.packages(contrib.url(switchr:::highestBiocVers())))>0)
  > 
  > ## regression test for publishManifest
  > mantests = function(man) {
  +     tmpdir = tempdir()
  +     manfil = publishManifest(man, file.path(tmpdir, "sman.rman"))
  +     mantab = read.csv(manfil, comment.char="#")
  +     stopifnot(nrow(mantab) > 0)
  +     man2 = loadManifest(manfil)
  +     stopifnot(identical(man, man2))
  + }
  > 
  > 
  > ## this tests the ability to make a seedManifest
  > ## including looking up the types
  > sman = makeSeedMan()
  > man = manifest(sman)
  > mantests(sman)
  Loading required namespace: RCurl
  Failed with error:  'unable to load shared object '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so':
    /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/bitops/libs/bitops.so: failed to map segment from shared object'
  Error in url(x) : URL scheme unsupported by this method
  Calls: mantests -> loadManifest -> url.exists -> url
  Execution halted