similar to: Consistency of variable storage in R and Sys.setlocale (is this a feature or bug)?

Displaying 20 results from an estimated 3000 matches similar to: "Consistency of variable storage in R and Sys.setlocale (is this a feature or bug)?"

2010 Dec 07
1
Encoding problem - I fails to read Hebrew text from online
Hello all, # I am trying to read the text in this URL: u <- http://google.com/complete/search?output=toolbar&q=%d7%a9%d7%9c%d7%95%d7%9d # By using this command: readLines(u) And no matter what variation I tried, I keep getting this output: [1] "<?xml version=\"1.0\"?><toplevel><CompleteSuggestion><suggestion
2011 May 05
1
issue with "strange" characters (readHTMLTable)
Thank you. The line of code you give certainly resolves several of the issues. I didn't realize that font support is such a tough matter to realize. Let me express my gratitude to those who provide this for us in R. On 04-05-11, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote: Oh, please! This is about the contributed package XML, not R and not Windows. Some of
2010 Oct 06
1
How to read a matrix with Hebrew row names?
Hello all, I am trying to read a matrix with row names in Hebrew, but I am unable to read the Hebrew words, e.g.: להחזיק -1.544317e-02 -2.398621e-01 9.854603e-01 1.111321e+00 שאחרי -1.544317e-02 -2.398621e-01 7.421092e-01 3.439690e-01 היישוב -1.544317e-02 -2.398621e-01 1.050982e+00 1.125970e+00 בתים -1.544317e-02
2010 Mar 18
1
How to read.table with “Hebrew” column names (in R)?
(I am reposting this question after a few months without a solution...) Hi all, I am trying to read a .txt file, with Hebrew column names, but without success. I uploaded an example file to: http://www.talgalili.com/files/aa.txt And tried the command: read.table("http://www.talgalili.com/files/aa.txt", header = T, sep = "\t") This returns me with: X.....ª X...ª......
2017 Jun 23
2
LC_TIME not set correctly by Sys.setlocale() ?
Related to the following question on Stackoverflow: https://stackoverflow.com/questions/44723690/unexpected-behavior-of-sys-setlocale#44723690 It appears as if Sys.setlocale() does not update LC_TIME correctly for use in date formatting. Although R reports that LC_TIME is changed to the new setting after use of Sys.setlocale(), as.Date() still uses the old settings. The only way to update this is
2018 Mar 20
1
WISH: Sys.setlocale() to return value invisibly
Contrary to, say, Sys.setenv(), Sys.setlocale() returns it's value visibly. This means that if you for instance add: Sys.setlocale("LC_COLLATE", "C") to your .Rprofile file, it will print: [1] "C" at startup. The workaround is to wrap the call in invisible(), but I'd argue that any "setter" function should return invisibly. Some more details:
2013 Jan 27
2
[LLVMdev] problem with setLocale
In order to print unicode characters with llvm, I used setLocale in llvm ir: call i8* @setlocale(i32 6, i8* getelementptr inbounds ([1 x i8]* @pe, i32 0, i32 0)) nounwind where @pe is defined as follows: @pe = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 However, I got the following error: *** glibc detected *** ./test/bin/executable: free(): invalid next size
2003 Dec 05
1
How to use Sys.setlocale("LC_NUMERIC")?
Can you help me to use Sys.setlocale("LC_NUMERIC", "cs_CZ") (comma as a decimal point) in some useful way, without all the workarounds? After switching to Sys.setlocale("LC_NUMERIC", "cs_CZ"): -- How do I set attributes in read.csv2() not to get columns of real numbers (decimal point = comma, field separator = semicolon) as factors? Wokrkaround: I can go
2007 Mar 11
1
Sys.setlocale("LC_CTYPE","fr_FR.UTF-8")
Dear R users, I'm trying to have a gWiddgetsRGtk2 script run under R-2.4.1. The script run OK under Linux but all accentuated characters appear as "?" when the script is run under Windows. As Gtk+ requires UTF-8, I thought it was the source of the problem and tried to change the default encoding (1252) in the following way:
2013 Jan 28
0
[LLVMdev] problem with setLocale
Hi Ali, On 28/01/13 06:38, ali_sedaghat wrote: > Hi Ciao, my compiler is written in java and generates some .ll files as its > output. Each of these .ll files is converted to an object file using llc. > Then, I use clang++ to link them and generate an executable file without > linking with any external libraries, so I cannot understand what you mean. > Sorry, if my question sounds
2014 Jul 19
1
[PATCH] don't always call setlocale() on Windows
Windows (MSVC, MinGW) version of setlocale don't care about LC_* environment variables. For example, flac cannot pass the test for --until and --skip options the script calls it with --skip=0:01.1001 and it expects decimal comma (--skip=0:01,1001) on my system. One solution is to write a local version of strtod that always accepts both decimal comma and decimal point. Another solution is not
2009 Jul 28
1
Sys.setlocale
When checking an R package of mine, I get * checking R files for syntax errors ... WARNING Warning in Sys.setlocale("LC_CTYPE", "en_US") : OS reports request to set locale to "en_US" cannot be honored 'Sys.setlocale' is not used in any of my R functions. What should I do to fix the Warning? I have never seen this before. My locale is "sv_SE",
2013 Jan 28
2
[LLVMdev] problem with setLocale
Hi Ciao, my compiler is written in java and generates some .ll files as its output. Each of these .ll files is converted to an object file using llc. Then, I use clang++ to link them and generate an executable file without linking with any external libraries, so I cannot understand what you mean. Sorry, if my question sounds silly to you -- View this message in context:
2013 Jan 27
0
[LLVMdev] problem with setLocale
Hi Ali, did you link your program statically? Try linking it dynamically. Ciao, Duncan. On 27/01/13 07:36, Ali Sedaghat wrote: > In order to print unicode characters with llvm, I used setLocale in llvm ir: > > call i8* @setlocale(i32 6, i8* getelementptr inbounds ([1 x i8]* @pe, i32 > 0, i32 0)) nounwind > > where @pe is defined as follows: > > @pe = private
2006 May 22
4
Sys.setlocale upsets windows graphics device (PR#8887)
Full_Name: Edward McNeil Version: 2.3.0 OS: Widows XP Submission from: (NULL) (203.170.234.5) Type the following: > Sys.setlocale("LC_ALL","C") > hist(1:10) CRASH
2020 Feb 03
2
Error de caracteres al ejecutar un script en Windows
Buenas tardes, Tengo un problema al ejecutar un script de R desde la consola de Windows 8.1. El código desde RStudio funciona perfectamente, pero al ejecutarlo desde la consola peta al hacer una cambio de caracteres. El error que da en la consola es: Error in chartr("áéíóúà èìòùâêîôû", "aeiouaeiouaeiou", xpeliculas) : 'old' es más largo que
2010 Jan 01
4
How to use read.table with Hebrew column names ?
Hello dear R help group, I am trying to read a .txt file, with Hebrew column names, while keeping the column names looking well in R - but without success. I uploaded an example file to: http://www.talgalili.com/files/aa.txt And am trying the command: read.table("http://www.talgalili.com/files/aa.txt", header = T, sep = "\t") This returns me with: X.....ª X...ª......
2011 Dec 29
3
Is it possible to "right align" text in R graphics?
Hello all, The following line of code includes a right-to-left language text, yet the R graphics engine displays it from left to right. One problem this causes is when there are parenthesis in the test, here is a basic example? plot(1:10, main = "שלום (טקסט)") Is there a way to make sure the text is displayed from right to left? Many thanks for any suggestions, Tal
2017 Jun 23
0
LC_TIME not set correctly by Sys.setlocale() ?
On 23/06/2017 15:35, Joris Meys wrote: > Related to the following question on Stackoverflow: > https://stackoverflow.com/questions/44723690/unexpected-behavior-of-sys-setlocale#44723690 > > It appears as if Sys.setlocale() does not update LC_TIME correctly for use > in date formatting. Although R reports that LC_TIME is changed to the new > setting after use of Sys.setlocale(),
2008 Dec 08
4
Removing string's accents
Hi, I''m pretty sure to have seen a new method ''remove_accents'' in Rails 2.2 but I can''t find it again. Is it me or does this method exists for good ? Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"