[R] R error

16 views
Skip to first unread message

Hood, Kyle (CDC/OCOO/OCIO/ITSO) (CTR)

unread,
Aug 3, 2015, 1:27:30 PM8/3/15
to r-h...@r-project.org
Good afternoon,

I recently received a ticket from a customer to upgrade from 3.1.1. to 3.2.1. After the upgrade, when he tries to install a package he receives the error below. Could you please advise as to what is wrong? Thank you.

Kyle

--- Please select a CRAN mirror for use in this session ---
Warning in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
'lib = "C:/Program Files/R/R-3.2.1/library"' is not writable
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
unable to create '\\cdc.gov\private\M328\ygv7/R/win-library/3.2'
In addition: Warning message:
In dir.create(userdir, recursive = TRUE) :
cannot create dir '\\cdc.gov\private', reason 'Permission denied'

[[alternative HTML version deleted]]

______________________________________________
R-h...@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

peter dalgaard

unread,
Aug 3, 2015, 2:20:24 PM8/3/15
to Hood, Kyle (CDC/OCOO/OCIO/ITSO) (CTR), r-h...@r-project.org

> On 03 Aug 2015, at 18:00 , Hood, Kyle (CDC/OCOO/OCIO/ITSO) (CTR) <ye...@cdc.gov> wrote:
>
> Good afternoon,
>
> I recently received a ticket from a customer to upgrade from 3.1.1. to 3.2.1. After the upgrade, when he tries to install a package he receives the error below. Could you please advise as to what is wrong? Thank you.

It's not too easy to tell given the number of ways large networked installs can be configured, but the logic is that if the R installation directory is write protected (which is usually a good thing), the packages go into a subdirectory of the user's home dir. The output suggests that R believes that this is \\cdc.gov\private\M328\ygv7, but apparently that doesn't exist since it tries to create \\cdc.gov\private which it can't.

Apart from that, try digging around in

https://cran.r-project.org/bin/windows/base/rw-FAQ.html

-pd

>
> Kyle
>
> --- Please select a CRAN mirror for use in this session ---
> Warning in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
> 'lib = "C:/Program Files/R/R-3.2.1/library"' is not writable
> Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
> unable to create '\\cdc.gov\private\M328\ygv7/R/win-library/3.2'
> In addition: Warning message:
> In dir.create(userdir, recursive = TRUE) :
> cannot create dir '\\cdc.gov\private', reason 'Permission denied'
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-h...@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd....@cbs.dk Priv: PDa...@gmail.com

andymac

unread,
Aug 6, 2015, 11:08:55 PM8/6/15
to r-h...@r-project.org
Hi,

I had a similar problem running the 32-bit version of 3.2.0 on Windows 8.1.
For me the problem was user permissions. I re-ran the R program as an
administrator rather than a user and it now installs packages just fine.

Cheers,
Andy




--
View this message in context: http://r.789695.n4.nabble.com/R-error-tp4710696p4710847.html
Sent from the R help mailing list archive at Nabble.com.
Reply all
Reply to author
Forward
0 new messages