Skip to content

UTF8

4 messages · Norma, David Winsemius

#
As far as I can see it, those are two problems. The "default locale" and the
language problem. I have exactly the same, I am using Mac OSX 10.6.8. 

I have also tried installation of packages. When installing a package I get
a related error message: 

*tar: Failed to set default locale*

if I enter
* Sys.getlocale()* 
the results is 
*[1]="C"*

so, I guess I have to tell R that the default system disk it shall work with
is "Macintosh HD" ... but how do I do that? 

Additionally I have this language/ASCII problem, and the help suggested by
the R Cran Project (to enter

 *defaults write org.R-project.R force.LANG 'en_US'.UTF-8*) 

does not work. I get the message 

*Error: unexpected symbol in "defaults write"*

I am new to R and just installed it onto my computer, after a basic training
course ... maybe someone could help us? 
Thank you,
Norma

--
View this message in context: http://r.789695.n4.nabble.com/UTF8-tp873280p4361777.html
Sent from the R help mailing list archive at Nabble.com.
#
On Feb 6, 2012, at 11:26 AM, Norma wrote:

            
You are confused about what the locale setting is used for. They are  
for your geographic location (to have reasonable defaults for language  
and character sets), not for manipulating your hardware settings.

?locales

You should also post Mac-specific questipn to the Mac-SIG list ....  
and even more important describe what you are trying to do.

--
David Winsemius, MD
West Hartford, CT
#
On Feb 6, 2012, at 11:18 AM, Norma wrote:

            
You should include details about the name of the package , the  
repository where you got it and the R console commands you issued. The  
error message makes me wonder if you are trying to install a source  
package without the correct settings and software, but that is very  
much a wild guess in the absence of those missing elements.
It would be much better if you abandoned the convention of sticking  
asterisks at the ends of output. People cannot tell whether those are  
actually there. (I suspect not on the basis of my experience.)
My settings do not have the single quotes around:   en_US.UTF-8
Tjat looks like an R message. It appears you are entering that string  
at the R console. It is only going to work if you use it in a Terminal  
session ( _without_ the asterisks and probably _without_ the  
unnecessary single quotes.)
You appear to also need to spend time studying the Mac OS, since you  
are conflating OS commands with R commands. I suggest you first  read  
through the Mac R FAQ before doing anything more to alter your system  
settings.
David Winsemius, MD
West Hartford, CT