[R] install.packages() can't find install.packages() ?

Rolf Turner r.turner at auckland.ac.nz
Fri Oct 30 03:23:05 CET 2015



Have you tried this after starting R in a "clean" workspace?
Or perhaps after starting R --vanilla?

It sounds to me like something is corrupted in your install.packages() 
function --- or possible somewhere else --- which could be induced by 
having some ghosts lurking about in .RData.

(After all, it is getting close to Hallowe'en. :-) )

cheers,

Rolf

-- 
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

On 30/10/15 14:17, Boris Steipe wrote:
> We are seeing the following problem when trying to install magrittr on Ubuntu 14.04
>
>
> install.packages("magrittr")
>
>
> Installing package into ‘/home/ehsueh/R/x86_64-pc-linux-gnu-library/3.0’
> (as ‘lib’ is unspecified)
> --- Please select a CRAN mirror for use in this session ---
> trying URL 'http://lib.ugent.be/CRAN/src/contrib/magrittr_1.5.tar.gz'
> Content type 'application/x-gzip' length 200504 bytes (195 Kb)
> opened URL
> ==================================================
> downloaded 195 Kb
>
>
> R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
> Copyright (C) 2013 The R Foundation for Statistical Computing
> Platform: x86_64-pc-linux-gnu (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.
>
>    Natural language support but running in an English locale
>
> 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.
>
> Error in eval(expr, envir, enclos) :
>    could not find function "install.packages"
> In addition: Warning message:
> In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
>    there is no package called ‘magrittr’
>
>
>
>
> I don't understand why install.packages() executes, then can't find install.packages().
> I also don't understand why R gives us the startup message at that point.
>
> Installation of other packages fails as well.
> Installation of magrittr my Mac works without issues.
>
> Version info below.
>
> Thanks!
> Boris
>
>
>
>
> =============================================
> R version 3.0.2 (2013-09-25)
> Platform: x86_64-pc-linux-gnu (64-bit)
>
> locale:
>   [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C
>   [3] LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8
>   [5] LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8
>   [7] LC_PAPER=en_CA.UTF-8       LC_NAME=C
>   [9] LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] plot3D_1.0-2
>
> loaded via a namespace (and not attached):
> [1] misc3d_0.8-4 tcltk_3.0.2  tools_3.0.2



More information about the R-help mailing list