[R] Error with installed.packages with R 3.4.0 on Windows

Thierry Onkelinx thierry.onkelinx at inbo.be
Fri Apr 28 07:47:57 CEST 2017

We have several computers with the same problem.

Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut" <arbautjc op gmail.com>:


I am currently getting a strange error when I call installed.packages():

Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) &&  :
  missing value where TRUE/FALSE needed
Calls: installed.packages

I am working with R 3.4.0 on Windows. I didn't get this error with R 3.3.3.
Apparently, file.mtime() is returning NA well applied to a directory, and
this causes the entire && expression to be NA, then the "if" fails because
it needs either T or F.
The source of "installed.packages" seems to be roughly the same as in R
3.3.3, so I wonder if there have been other changes in R, maybe the logical
operators, that would make this function fail.

Any idea?

Best regards,

Jean-Claude Arbaut

        [[alternative HTML version deleted]]

R-help op r-project.org mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]

More information about the R-help mailing list