Skip to content

citation() command doesn't work in R.3.1.1

4 messages · Sverre Stausland, Igor Sosa Mayor, Rui Barradas +1 more

#
Error: $ operator is invalid for atomic vectors
In addition: Warning message:
In packageDescription(pkg = package, lib.loc = dirname(dir)) :
  no package 'base' was found
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=Norwegian (Bokm?l)_Norway.1252
[2] LC_CTYPE=Norwegian (Bokm?l)_Norway.1252
[3] LC_MONETARY=Norwegian (Bokm?l)_Norway.1252
[4] LC_NUMERIC=C
[5] LC_TIME=Norwegian (Bokm?l)_Norway.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_3.1.1
[1] "LC_COLLATE=Norwegian (Bokm?l)_Norway.1252;LC_CTYPE=Norwegian
(Bokm?l)_Norway.1252;LC_MONETARY=Norwegian
(Bokm?l)_Norway.1252;LC_NUMERIC=C;LC_TIME=Norwegian
(Bokm?l)_Norway.1252"
#
Sverre Stausland <stausland.johnsen at iln.uio.no> writes:
strange... I think something is wrong with the compilation, since as far
as I know, the package `base' should be loaded automatically by starting
R...
#
Works with me. And the OS seems to be the same.

 > citation()

To cite R in publications use:

   R Core Team (2014). R: A language and environment for statistical
   computing. R Foundation for Statistical Computing, Vienna, Austria.
   URL http://www.R-project.org/.

A BibTeX entry for LaTeX users is

   @Manual{,
     title = {R: A Language and Environment for Statistical Computing},
     author = {{R Core Team}},
     organization = {R Foundation for Statistical Computing},
     address = {Vienna, Austria},
     year = {2014},
     url = {http://www.R-project.org/},
   }

We have invested a lot of time and effort in creating R, please cite it
when using it for data analysis. See also ?citation("pkgname")? for
citing R packages.

 > sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=Portuguese_Portugal.1252 
LC_CTYPE=Portuguese_Portugal.1252
[3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C 

[5] LC_TIME=Portuguese_Portugal.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_3.1.1

Rui Barradas

Em 06-08-2014 16:24, Sverre Stausland escreveu:
#
> Sverre Stausland <stausland.johnsen at iln.uio.no> writes:
    >>> citation()
    >> Error: $ operator is invalid for atomic vectors In
    >> addition: Warning message: In packageDescription(pkg =
    >> package, lib.loc = dirname(dir)) : no package 'base' was
    >> found

    > strange... I think something is wrong with the
    > compilation, since as far as I know, the package `base'
    > should be loaded automatically by starting R...

Even more: 
R cannot be working at all without the base package. It's not a
package you can be without, ever.
So indeed, the error message maybe a teeny tiny tad misleading.
But to reiterate: It's only the broken state of your R,
not at all R 3.1.1  with this problem.

Please do note that we have tens of thousands of tests that must
have run without fault before R is released.  Calling citation()
and >= 99% of all other base R functions is among these quality
assurance tests of an R release.

Martin Maechler (R core team)