Displaying 20 results from an estimated 10000 matches similar to: "R CMD BATCH: set locale?"
2010 Apr 15
1
Changing locale?
Hi
I need for a specific application to change the locale of R 2.9.2 in
Ubuntu 9.04. Trying the example in ?Sys.setlocale:
Sys.setlocale("LC_TIME", "de_DE.utf8")
[1] ""
Warning message:
In Sys.setlocale("LC_TIME", "de_DE.utf8") :
la requ?te OS pour sp?cifier la localisation ? "de_DE.utf8" n'a pas pu
?tre honor?e
I tried the code
2010 Jul 03
2
pkg/tests: how to run them with --vanilla
Hello
I recently submitted an update of a package, and received error reports
from CRAN maintainers concerning the pkg/tests section:
> Next time you update, can you please ensure that the .Rout.save files
> are generated in English (with LANGUAGE=en set). R 2.12.x will ensure
> that the tests are run in English, and it saves a lot of unnecessary
> chatter if the reference
2012 Jan 30
1
zip() containing windows specific code?
Dear R devel list
I was wondering whether zip() contains a windows specific call to
system(), as the argument "invisible" seems to be windows specific, yet
is used anytime by zip:
invisible(system2(zip, args, invisible = TRUE))
Indeed, calling zip() on Linux results in a warning message:
> file.create("try")
[1] TRUE
> zip("try.zip", "try")
2015 Jan 22
1
R CMD check: Locale not set to C?
Dear All
The "R CMD check" on the "zoo" (1.7-11) package results in an error on my
environment. It can be reduced to the following example:
----------------------------------------------------
> require(zoo)
> read.zoo(system.file("doc", "demo1.txt", package = "zoo"), sep = "|",
format="%d %b %Y")
Error in
2010 Dec 10
1
Consistency of variable storage in R and Sys.setlocale (is this a feature or bug)?
<I was not sure if this should go to R-devel or R-help. If I e-mailed this
to the wrong place, please let me know.>
Hello dear R-devel members,
I came by an oddity, with regards to how character variables are being
transformed when they are in Hebrew, and when Sys.setlocale is changed.
Here is an example:
# first, let's set the locale to Hebrew
Sys.setlocale("LC_ALL",
2014 Apr 30
2
make fullcheck fails: strtod/atof and locale
make fullcheck fails on my computer: flac cannot recognize --skip option
that contains decimal point, e.g. "--skip=1.234".
System locale uses comma as a separator, so strtod/atof expect comma, not point,
and "make fullcheck" fails.
Here's what I can see in FLAC source code:
atof() function found in:
file: src/share/grabbag/seektable.c
function:
2011 Nov 23
1
gsub, utf-8 replacements and the C-locale
Hi all,
I'd like to discuss a infelicity/possible bug with gsub. Take the
following function:
f <- function(x) {
gsub("\u{A0}", " ", gsub(" ", "\u{A0}", x))
}
As you might expect, in utf-8 locales it is idempotent:
Sys.setlocale("LC_ALL", "UTF-8")
f("x y")
# [1] "x y"
But in the C locale it is not:
2011 May 04
1
issue with "strange" characters (locale settings)
WinXP-x32, R-21.13.0
Dear list,
I have a problem that (I think) relates to the interaction between Windows
and R.
I am trying to scrape a table with data on the Hawai'ian Islands, This is my
code:
library(XML)
u <- "http://en.wikipedia.org/wiki/Hawaii"
tables <- readHTMLTable(u)
Islands <- tables[[5]]
The output is (first set of columns):
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
2023 May 30
3
why does [A-Z] include 'T' in an Estonian locale?
Inspired by this old Stack Overflow question
https://stackoverflow.com/questions/19765610/when-does-locale-affect-rs-regular-expressions
I was wondering why this is TRUE:
Sys.setlocale("LC_ALL", "et_EE")
grepl("[A-Z]", "T")
TRE's documentation at
<https://laurikari.net/tre/documentation/regex-syntax/> says that a
range "is shorthand for
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
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...ª......
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
2010 Nov 24
4
R encoding question
Hi,
I am using RpgSQL to retrieve data from a PostgreSQL database wich is
with encoding UTF8, and I have some Chinese character in one of the
columns, unfortunately R can't show it correctly.
> df <- dbGetQuery(con, "select * from test")
> df
a b
1 1 ????????\xa2
2 2 ???? EURO\xa1
I see the following option, do I need to change the encoding option to
show
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
2019 Aug 05
1
R CMD check: should .Rout.save contain the new "Registered S3 method overwritten by" message?
Hi
Since I believe 3.6, there is a message when loading a package that
overwrites S3 methods, reading like "Registered S3 method overwritten
by...". Should this message be included in the xxx.Rout.save files saved in
the tests/ folder of a package? It seems R CMD check is not happy about it?
I simply ran R CMD BATCH xxx.R xxx.Rout.save but running later on R CMD
check on the package
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
2009 Mar 04
2
R CMD check detects parse error, but in which file?
Hello
I looked on the archives but did not find answer for that...
Running R CMD check for a package, i get an error:
Error in parse(n = -1, file = file) : unexpected symbol at
3341: }
But how can I find which file is guilty? What is this 3342 referring to?
Finally the solution I found is to source() every file until I find the
file where the problem is... Is there some better way to do it?
2015 Apr 09
5
A vueltas con los UTF-8 en RStudio
Hola, otra vez a vueltas con los UTF8, seguro que es un tema sempiterno de esta lista y que ya se ha contestado, regannadme por ello (y por escribir sin acentos).
Genero un .rda en unix con el system default UTF8 y me lo traigo a un windows.
Tengo el Rstudio en windows configurado con Global Options > Default text encoding UTF8.
Cargo el .rda con load y nada, los acentos a la porra. Vamos, que
2010 Jul 01
2
dovecot 1.2.11/ thunderbird 3.1 - moving folders
Hello List,
customers telled me problem when moving folders in thunderbird which i can confirm. Following setup on my side:
dovecot 1.2.11 with mbox.
Thunderbird 3.1 with ready mailaccount and "Server supports folders that contain sub-folders and messages" is disabled.
i create folder1 for subfolders and in folder1 a folder2 for mails.
Now i create folder3 on toplevel like just like