Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in R how to get error messages in english

Tags:

r

bioconductor

I am trying some tutorials on bioconductor; but I get error messages, that I would like to search/submit; unfortunately, since R is installed on a system configured in french, R returns me messages in french; how could I have these messages in english.

My system: Ubuntu 10.04 runing gnome 3; R version is the last (2.15.1) Bioconductor have been updated to 2.10,

and I try to download/use datasets GSE20986 (but I have had a similar error with another dataset GSE2034, while following the procedure given in "R in a nutshell"); to those of you speaking french the error message that I get is:

> getGEOSuppFiles("GSE20986")
[1] "ftp://ftp.ncbi.nlm.nih.gov/pub/geo/DATA/supplementary/series/GSE20986/"
Erreur dans scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
  la ligne 1 n'avait pas 6 éléments

Thanks for your help.

like image 284
user1706600 Avatar asked Sep 28 '12 15:09

user1706600


2 Answers

I think you need to set the LANGUAGE environment variable when you start R. try starting R like this:

$ LANGUAGE=en R
like image 148
GSee Avatar answered Oct 04 '22 00:10

GSee


In general, on linux, try at the command line

locale -a

to get a list of locales, maybe you want en_US.utf8, and then

LC_ALL=en_US.utf8 R

but it's often better to opt for "C" locale, which is plain old text.

LC_ALL=C R

In an R session, Sys.setlocale("LC_ALL", "en_US.utf8") or other components from Sys.getlocale() and the locales supported on your system and reported from locale -a.

like image 45
Martin Morgan Avatar answered Oct 04 '22 00:10

Martin Morgan