[Rd] R-devel r73293 and the testthat package

Duncan Murdoch murdoch.duncan at gmail.com
Mon Sep 18 11:10:39 CEST 2017


On 17/09/2017 6:25 PM, Will Landau wrote:
> Hello,
> 
> 
> Windows R-devel no longer lets me use testthat even though the CRAN checks are pretty much clean. I have copied my session output below.

There was a recent change in R-devel that means all packages with 
compiled code need to be re-installed from source.  Apparently the 
mirror you're using hasn't done that yet.  (Binary packages, i.e. .zip 
files, are essentially copies of installed packages.)

So you may be able to get it using

install.packages("testthat", type = "source")

if you have the tools installed.  Otherwise, you'll just need to wait 
until the new version shows up on your mirror.

Duncan Murdoch

> 
> Will
> 
> 
> R Under development (unstable) (2017-09-16 r73293) -- "Unsuffered Consequences"
> Copyright (C) 2017 The R Foundation for Statistical Computing
> Platform: x86_64-w64-mingw32/x64 (64-bit)
> 
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
> 
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
> 
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
> 
>> library(testthat)
> Error: package 'testthat' was installed by an R version with different internals; it needs to be reinstalled for use with this R version
>> remove.packages("testthat")
> Removing package from 'C:/Users/c240390/Documents/R/win-library/3.5'
> (as 'lib' is unspecified)
>> library(testthat)
> Error in library(testthat) : there is no package called 'testthat'
>> install.packages("testthat")
> Installing package into 'C:/Users/c240390/Documents/R/win-library/3.5'
> (as 'lib' is unspecified)
> Warning in install.packages :
>    unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5:
>    cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5/PACKAGES'
> trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/testthat_1.0.2.zip'
> Content type 'application/zip' length 1057889 bytes (1.0 MB)
> downloaded 1.0 MB
> 
> package 'testthat' successfully unpacked and MD5 sums checked
> 
> The downloaded binary packages are in
> 	C:\Users\c240390\AppData\Local\Temp\RtmpS0Se9u\downloaded_packages
>> library(testthat)
> Error: package 'testthat' was installed by an R version with different internals; it needs to be reinstalled for use with this R version
>> sessionInfo()
> R Under development (unstable) (2017-09-16 r73293)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
> Running under: Windows 7 x64 (build 7601) Service Pack 1
> 
> Matrix products: default
> 
> locale:
> [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252
> [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
> [5] LC_TIME=English_United States.1252
> 
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
> 
> loaded via a namespace (and not attached):
> [1] compiler_3.5.0 tools_3.5.0
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



More information about the R-devel mailing list