Error: object 'en' not found

rstudio

#1

Whenever I start, after the stadnard header, I keep getting

Error: object ‘en’ not found
[Workspace loaded from ~/.RData]

whenever I start Rstudio :frowning: , and it stops me from doing a series of things, including package installation:

> install.packages("RODBC")
Installing package into ‘/home/eric/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/RODBC_1.3-15.tar.gz'
Content type 'application/x-gzip' length 1163967 bytes (1.1 MB)
==================================================
downloaded 1.1 MB

/usr/lib/R/bin/Rcmd: 56: /usr/lib/R/etc/Renviron: language: not found
Error: object 'en' not found
Execution halted
Warning in install.packages :
  installation of package ‘RODBC’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/Rtmpd4oCQ1/downloaded_packages’

My locale looks like this:

> Sys.getlocale(category = "LC_ALL")
[1] "LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=es_ES.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=es_ES.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=es_ES.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=es_ES.UTF-8;LC_IDENTIFICATION=C"

R version 3.4.2 (2017-09-28)
Ubuntu 14.0 LTS
Rstudio Version 1.1.383

Any suggestions greatly appreciated :slight_smile:


#2

The answer.

(The problem was caused by “language = en” inserted into the Rprofile.site-file instead of in the Renviron.site-file instead.)