Re: [R] Errors in R package installation

2019-12-13 Thread Ivan Krylov
On Fri, 13 Dec 2019 14:21:06 + David Stevens wrote: > ** byte-compile and prepare package for lazy loading > Fatal error: cannot open file 'C:\Users\David': No such file or > directory > > ERROR: lazy loading failed for package 'rmarkdown' Oh. Sorry, that seems to be yet another place where

Re: [R] Errors in R package installation

2019-12-13 Thread David Stevens
I started a new session and entered > rm(list=ls()) > install.packages( + c('lmerTest', 'quantreg', 'rmarkdown', 'SparseM'), + lib = .libPaths()[1L], + destdir = 'c:/myRLib' + ) And this is the result: There are binary versions available but the source versions are later: binary

Re: [R] Errors in R package installation

2019-12-13 Thread Ivan Krylov
On Fri, 13 Dec 2019 13:19:54 + David Stevens wrote: > There are binary versions available but the source versions are > later: Okay, that would be the reason why would R on Windows try to install a source package instead of a binary package. One can also see that callr has just been succ

Re: [R] Errors in R package installation

2019-12-13 Thread David Stevens
Ivan Here's a longer list. RStudio checked for what needs updating, I select all of them, and enter. The following is the console output (FYI - I tried this in plain Rgui.exe and got the same result - I don't think it's an RStudio issue). The failed installs are toward the bottom. Best David

Re: [R] Errors in R package installation

2019-12-13 Thread David Stevens
Ivan - thanks for looking into this. My answers to your comments are below. Cheers David On 12/13/2019 1:46 AM, Ivan Krylov wrote: On Thu, 12 Dec 2019 15:48:13 + David Stevens wrote: Certain R packages will not install properly on my Windows 10 computer.

Re: [R] Errors in R package installation

2019-12-13 Thread Ivan Krylov
On Thu, 12 Dec 2019 15:48:13 + David Stevens wrote: > Certain R packages will not install properly on my Windows 10 > computer. Certain, but not all? Which packages are you able to install on that computer? > Warning: invalid package 'C:\Users\David' > Warning: invalid package > 'Stevens\Ap

Re: [R] Errors in R package installation

2019-12-12 Thread Eric Berger
And a low-tech approach: how about renaming "C:\Users\David Stevens" to "C:\Users\DavidStevens" (i.e. remove the blank in the name). A few years ago I did the equivalent "C:\Program Files" --> "C:\ProgramFiles" to avoid similar installation problems. On Thu, Dec 12, 2019 at 9:06 PM Richard M. Heib

Re: [R] Errors in R package installation

2019-12-12 Thread Richard M. Heiberger
Directory and file names with embedded blanks frequently don't work on WIndows. Use the 8.3 version of the name. Since you were able to get the package onto your machine, you can install it from there. The downloaded source packages are in ‘C:\Users\David Stevens\AppData\Local\Temp\Rtmpk5

Re: [R] Errors in R package installation

2019-12-12 Thread David Stevens
Thanks Eric - I'll follow up with this link. I'd tried some of these things before but I'll keep after it. Best David On 12/12/2019 9:52 AM, Eric Berger wrote: > Actually there was progress as after it failed it removed the folder > c:/myRlib/callr, which means it had used it. Seems good. > I t

Re: [R] Errors in R package installation

2019-12-12 Thread Eric Berger
Actually there was progress as after it failed it removed the folder c:/myRlib/callr, which means it had used it. Seems good. I think you might find the discussion here to be relevant https://community.rstudio.com/t/cant-install-package-remotes-when-trying-to-install-devtools/34121 Good luck, Eri

Re: [R] Errors in R package installation

2019-12-12 Thread David Stevens
Thanks Eric - I had tried this and failed with install.packages('callr',destdir='c:/myRLib') Installing package into ‘C:/myRLib’ (as ‘lib’ is unspecified) There is a binary version available but the source version is later: binary source needs_compilation callr 3.3.2 3.4.0

Re: [R] Errors in R package installation

2019-12-12 Thread Eric Berger
Apparently it does not like that the fact that your user 'David Stevens' has a blank. Looking at the documentation ?install.packages it seems that if you modify your call to something like install.packages('callr',destdir='C:\tmp') you might be ok. (caveat: I did not try this) You should make th

[R] Errors in R package installation

2019-12-12 Thread David Stevens
Certain R packages will not install properly on my Windows 10 computer. For example, if I install.packages('callr') The result is trying URL 'https://cloud.r-project.org/src/contrib/callr_3.4.0.tar.gz' Content type 'application/x-gzip' length 100129 bytes (97 KB) downloaded 97 KB Warning: inva