I am trying to install rethinking
httr::set_config( httr::config( ssl_verifypeer = 0L ) )
with_config(use_proxy("http://myco.com:5555"), install_github("rmcelreath/rethinking", lib ="C://TOOLS/R-3.4.0/library"))
I get the error messages:
Downloading GitHub repo rmcelreath/rethinking@master
from URL https://api.github.com/repos/rmcelreath/rethinking/zipball/master
Installing rethinking
Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) && :
missing value where TRUE/FALSE needed
Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) && :
missing value where TRUE/FALSE needed
some info on my versions:
> packageVersion("devtools")
[1] ‘1.12.0’
> packageVersion("httr")
[1] ‘1.2.1’
> R.Version()$version.string
[1] "R version 3.4.0 (2017-04-21)"
Can you advise how to get the install to work?
Thank you.
++++++++++++++ WHEN I RUN TRACEBACK() I get
3: installed.packages()
2: as.data.frame(installed.packages(), stringsAsFactors = F)
1: (function ()
{
uniqueLibPaths <- .rs.uniqueLibraryPaths()
x <- suppressWarnings(library(lib.loc = uniqueLibPaths))
x <- x$results[x$results[, 1] != "base", ]
pkgs.name <- x[, 1]
pkgs.library <- x[, 2]
pkgs.desc <- x[, 3]
pkgs.url <- file.path("help/library", pkgs.name, "html",
"00Index.html")
loaded.pkgs <- .rs.pathPackage()
pkgs.loaded <- !is.na(match(normalizePath(paste(pkgs.library,
pkgs.name, sep = "/")), loaded.pkgs))
instPkgs <- as.data.frame(installed.packages(), stringsAsFactors = F)
pkgs.version <- character(length = length(pkgs.name))
for (i in 1:length(pkgs.name)) {
pkgs.version[[i]] <- .rs.packageVersion(pkgs.name[[i]],
pkgs.library[[i]], instPkgs)
}
pkgs.library <- .rs.createAliasedPath(pkgs.library)
packages = data.frame(name = pkgs.name, library = pkgs.library,
version = pkgs.version, desc = pkgs.desc, url = pkgs.url,
loaded = pkgs.loaded, check.rows = TRUE, stringsAsFactors = FALSE)
packages[order(packages$name), ]
})()
This seems to be a general bug with 3.4.0. under Windows.
Try reinstalling the patched version, see if that helps..
https://cran.r-project.org/bin/windows/base/rpatched.html
Update: R 3.4.1. has been released. This might fix your problem as well. https://cran.r-project.org/bin/windows/base/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With