Re: [R] UTF8

2012-02-07 Thread Norma
Hi, 

I just found the solution to the problem in the following posts: 

https://stat.ethz.ch/pipermail/r-sig-mac/2008-October/005395.html

AND

https://stat.ethz.ch/pipermail/r-sig-mac/2010-February/007106.html

Now everything works. 

cheers
Norma




--
View this message in context: 
http://r.789695.n4.nabble.com/UTF8-tp873280p4365624.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] UTF8

2012-02-06 Thread Norma
trying to change the locale like this

* Sys.setlocale(Macintosh HD)*

failed with the following error: 

*Error in Sys.setlocale(Macintosh HD) : invalid 'category' argument*



--
View this message in context: 
http://r.789695.n4.nabble.com/UTF8-tp873280p4361803.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] UTF8

2012-02-06 Thread Norma
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.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] UTF8

2012-02-06 Thread David Winsemius


On Feb 6, 2012, at 11:26 AM, Norma wrote:


trying to change the locale like this

* Sys.setlocale(Macintosh HD)*

failed with the following error:

*Error in Sys.setlocale(Macintosh HD) : invalid 'category' argument*


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

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] UTF8

2012-02-06 Thread David Winsemius


On Feb 6, 2012, at 11:18 AM, Norma wrote:

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*


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.




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


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.)




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*)


My settings do not have the single quotes around:   en_US.UTF-8



does not work. I get the message

*Error: unexpected symbol in defaults write*


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.)




I am new to R and just installed it onto my computer, after a basic  
training

course ... maybe someone could help us?


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.





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.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


David Winsemius, MD
West Hartford, CT

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] utf8 postscript cyrillic

2009-12-20 Thread Martin Ivanov
 Dear R users,

I am running R version 2.10.0 (2009-10-26). I need to prepare an eps
graphic with a legend with cyrillic words. I tried setting the encoding
parameter of the postscript command, but in vain, nothing seems to work. I
tried with CP1251, KOI8-R, UTF-8 and Cyrillic (UTF-8 turned out to not be
available under /usr/lib/R/library/grDevices/enc). All I get is 
in the final inscription.

Has someone been successful in producing postscript legends with cyrillic
words and how? Is the encoding the only thing to be tweaked?

I would be glad if you share your experience.

Regards,
Martin

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] utf8 postscript cyrillic

2009-12-20 Thread Prof Brian Ripley

'Nothing seems to work' is not at all helpful, and you seem under the
misconception that PostScript supports UTF-8 (sic): life would be much 
easier for device writers if it did.


The postscript() help page says

 More details of font families and encodings and especially
 handling text in a non-Latin-1 encoding and embedding fonts can be
 found in

 Paul Murrell and Brian Ripley (2006) Non-standard fonts in
 PostScript and PDF graphics. _R News_, 6(2):41-47.  URL:
 http://cran.r-project.org/doc/Rnews/Rnews_2006-2.pdf.

which shows Cyrillic examples.  We can write documentation for you, 
but you have to read it for yourself 


On Sun, 20 Dec 2009, Martin Ivanov wrote:


Dear R users,

I am running R version 2.10.0 (2009-10-26). I need to prepare an eps
graphic with a legend with cyrillic words. I tried setting the encoding
parameter of the postscript command, but in vain, nothing seems to work. I
tried with CP1251, KOI8-R, UTF-8 and Cyrillic (UTF-8 turned out to not be
available under /usr/lib/R/library/grDevices/enc). All I get is 
in the final inscription.

Has someone been successful in producing postscript legends with cyrillic
words and how? Is the encoding the only thing to be tweaked?

I would be glad if you share your experience.

Regards,
Martin


--
Brian D. Ripley,  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] utf8 encoding and postscript

2009-08-11 Thread Alexandros Droseltis
Hello!

I wrote a script file with the following commands

postscript()
[...]
barplot(pr, xlab=Länge)

In the output file (Rplots.ps) the german umlaut is printed as L..nge.
How could I set the encoding correctly?

Thanks for any help or tip. I am using R version 2.8.0 (2008-10-20) on
openSuSE.

Alexandros

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] UTF8

2008-11-07 Thread Denise Duarte
Hi,

I am trying to get R 2.8.0 for Mac OS from CRAN, but I thing I am
doing something wrong because when R starts I have annoying error
messages:

During startup - Warning messages:
1: Setting LC_CTYPE failed, using C
2: Setting LC_COLLATE failed, using C
3: Setting LC_TIME failed, using C
4: Setting LC_MESSAGES failed, using C
WARNING: You're using a non-UTF8 locale, therefore only ASCII
characters will work.
Please read R for Mac OS X FAQ (see Help) section 9 and adjust your
system preferences accordingly.

I have tried all suggestions in such section 9 but still get the same
error message. If you can give me some another suggestion It would be
very nice.

Sincerely,

Denise Duarte
UFMG- MG- Brazil

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.