search for: lc_time

Displaying 20 results from an estimated 2771 matches for "lc_time".

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 by specifically using LC_TIME. Is this a bug or am I overlooking something? Example: > Sys.se...
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(), as.Date() still uses the old > settings. The only way to update this is by specifically using LC_TIME. > > Is this a bug or am I overlooking somethin...
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 line for windows on R windows (Sys.setlocale("...
2006 Oct 26
1
Error: invalid multibyte string
..... > parse(text='"\\xFF"') Error: invalid multibyte string However, cat("\x7F\n\x80\n...\xFF\n") works. Using R --vanilla. SYSTEMS GIVING THE ERROR: > sessionInfo() R version 2.4.0 (2006-10-03) x86_64-unknown-linux-gnu locale: LC_CTYPE=en_AU.UTF-8;LC_NUMERIC=C;LC_TIME=en_AU.UTF-8;LC_COLLATE=en_AU.UTF-8;LC_MONETARY=en_AU.UTF-8;LC_MESSAGES=en_AU.UTF-8;LC_PAPER=en_AU.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_AU.UTF-8;LC_IDENTIFICATION=C R version 2.4.0 Patched (2006-10-03 r39576) i686-pc-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TI...
2010 Oct 08
4
Bug in as.POSIXct regarding AM/PM
Dear All, I encounted in a problem with as.POSIXct() function. > as.POSIXct("2009/03/26 01:00:00 AM" , format="%Y/%m/%d %I:%M:%S %p") [1] NA > as.POSIXct("2009/03/26 02:00:00 PM" , format="%Y/%m/%d %I:%M:%S %p") [1] NA I have tried this in the R version 2.11.1, R version 2.10.1 and R version 2.9.2 . They all does not work. The operation system is
2019 Oct 07
2
R from EPEL 8 missing dependency on glibc-langpack
...n in docker: yum install epel-release yum config-manager --set-enabled PowerTools yum install R-devel Installation succeeds but when I start R: 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" 5: Setting LC_MONETARY failed, using "C" 6: Setting LC_PAPER failed, using "C" 7: Setting LC_MEASUREMENT failed, using "C" Installing glibc-langpack-en fixes the problem. Took me a while to...
2015 Jan 22
1
R CMD check: Locale not set to C?
...(on Windows 7): ---------------------------------------------------- > sessionInfo() R version 3.1.2 (2014-10-31) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=German_Switzerland.1252 LC_CTYPE=German_Switzerland.1252 [3] LC_MONETARY=German_Switzerland.1252 LC_NUMERIC=C [5] LC_TIME=German_Switzerland.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base ---------------------------------------------------- The problem are the locale settings. In the "demo1.txt" the months are abbreviated in English; while my environment w...
2014 Sep 25
4
Campo Fecha y paquete openair
Eduardo, Me parece que el problema es el locale para TIME y la interpretación de %p, para no tener ese problema lo que tengo que hacer en mi caso es cambiar LC_TIME: > Sys.getlocale() [1] "LC_COLLATE=Spanish_Argentina.1252;LC_CTYPE=Spanish_Argentina.1252;LC_MONETARY=Spanish_Argentina.1252;LC_NUMERIC=C;LC_TIME=Spanish_Argentina.1252" > Sys.setlocale("LC_TIME", "C") [1] "C" > strptime("19/02/2014 12:42 pm&qu...
2006 Oct 27
2
POSIXct time zone and daylight savings issues
...ect to the system's locale, and I can't understand what the function of the 'tzone' attribute is in these calculations. ?strptime has information on how to change the locale for some operations, which in this case didn't change the outcome: R> lct <- Sys.getlocale("LC_TIME"); Sys.setlocale("LC_TIME", "C") [1] "C" R> gmtDiff(as.POSIXct("2006-10-27", tz="GMT")) [1] -5 R> gmtDiff(as.POSIXct(Sys.time())) [1] -6 R> Sys.setlocale("LC_TIME", lct) [1] "en_CA.UTF-8" R> sessionInfo() R versi...
2016 Apr 05
2
Under Windows, Rgui and Rterm crash if one tries to close the graphic device while identify or locator are running
...elow) WINDOWS ************** > sessionInfo() R version 3.3.0 beta (2016-04-04 r70420) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 10586) locale: [1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252 [3] LC_MONETARY=Italian_Italy.1252 LC_NUMERIC=C [5] LC_TIME=Italian_Italy.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base > sessionInfo() R version 3.2.2 Patched (2015-09-29 r69441) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 10240) locale: [1] LC_COLLATE=Italian_Ital...
2002 Feb 26
1
Locale problems on Solaris
Hi there. With OpenSSH 3.0.2p1 on Solaris, the locale does not appear to get set correctly at login, as it does with, say telnet: /etc/default/init: TZ=GB CMASK=022 LC_COLLATE=en_GB.ISO8859-1 LC_CTYPE=en_GB.ISO8859-1 LC_MESSAGES=C LC_MONETARY=en_GB.ISO8859-1 LC_NUMERIC=en_GB.ISO8859-1 LC_TIME=en_GB.ISO8859-1 When logging in via SSH: scot /home/scot > locale LANG= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_ALL= When logging in via telnet: scot /home/scot > locale...
2016 Apr 05
3
Fwd: as.Date gives NAs when transforming from factor
...ns out as: NA 03/04/2016 turns out as: 2016-03-04. Code: a <- read.csv("dates.csv", stringsAsFactors = F) a$Date <- as.Date(a$Date, format = "%m/%d/%Y") Posible Solutions: I?ve read here that it has to do with the Sys Locale, and the solution was using: ?LC_TIME?, ?C?. But I didn?t have success. http://stackoverflow.com/questions/15566875/as-date-returning-na-in-r # Sys.getlocale("LC_TIME") # # Sys.setlocale("LC_TIME", "C") Slds, ------------------------------------------------------------------...
2014 Sep 25
4
Campo Fecha y paquete openair
...t; > > El 25 de septiembre de 2014, 12:00, daniel <daniel319 en gmail.com> escribió: > > Eduardo, >> >> Me parece que el problema es el locale para TIME y la interpretación de >> %p, para no tener ese problema lo que tengo que hacer en mi caso es cambiar >> LC_TIME: >> >> > Sys.getlocale() >> [1] >> "LC_COLLATE=Spanish_Argentina.1252;LC_CTYPE=Spanish_Argentina.1252;LC_MONETARY=Spanish_Argentina.1252;LC_NUMERIC=C;LC_TIME=Spanish_Argentina.1252" >> > Sys.setlocale("LC_TIME", "C") >> [1] &qu...
2014 Nov 22
3
R string comparisons may vary with platform (plain text)
...ng I?m unaware of, maybe someone should look into it. Sorry I haven?t taken the time to read the source code myself. Thanks, Stuart R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Platform: x86_64-unknown-linux-gnu (64-bit) Sys.getlocale() [1] "LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF -8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_ NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICA TION=C" "-1" > "1" [1] TRUE "-1" <"1" [1] FALSE "1&quot...
2007 Oct 10
2
download.file not working
...t2006_demographics.xls' Content type 'application/vnd.ms-excel' length 77824 bytes opened URL downloaded 76Kb > sessionInfo() R version 2.5.0 (2007-04-23) i386-pc-mingw32 locale: LC_COLLATE=Swedish_Sweden.1252;LC_CTYPE=Swedish_Sweden.1252;LC_MONETARY=Swedish_Sweden.1252;LC_NUMERIC=C;LC_TIME=Swedish_Sweden.1252 attached base packages: [1] "stats" "graphics" "grDevices" "utils" "datasets" "methods" [7] "base" other attached packages: RWinEdt "1.7-5" > Sys.getlocale() [1] "LC_COLLATE=Swedi...
2007 Aug 16
0
Customizing locale settings in CentOS-4.5
...ave traced the login locale processing through /etc/profile /etc/profile.s/*.sh and ~/.bash_profile and have decided to work backwards from ~/.bash_profile. What I initially wish to accomplish is to set the date and time display (only) to iso-8601 format. I infer from what I have read that setting LC_TIME to "i18n.UTF-8" "should" accomplish this (presumably referring to /usr/share/i18n/locales/i18n). But when I add the following two lines to ~/.bash_profile I do not get any change to the date and time display in ls and further I get an error when I run locale saying that the la...
2007 Aug 17
2
Date format on x-axis
Dear R users, Plotting question from a R beginner... When I try to plot a response through time, for example: >Date<-c("2006-08-17", "2006-08-18", "2006-08-19", "2006-08-20") >response<-c(4,4,8,12) >as.Date(Date) >plot(Date,response) The dates on the graphic appear in spanish. This I guess is the default way of plotting because my
2009 Jul 01
2
locale changing on Windows
Dear r-helpers, This is a little bit more of a Windows problem than an R problem, but ... any idea how to query the *available* locales from within R (or otherwise) on a Windows system? Teaching in a Spanish-language setting and would like to do something like Sys.setlocale("LC_TIME","en_US") (for example so that we can convert dates like "1970-jan-01" with as.Date(x,"%Y-%b-%d") but keep getting reports that this is not honored by the OS. Does anyone have useful pointers? thanks Ben Bolker [[alternative HTML version deleted]]
2013 Feb 04
4
rJava works with 32-bit but not 64
...r: package/namespace load failed for 'rJava' > sessionInfo() R version 2.15.2 (2012-10-26) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base > ########################## > library(rJava) > sessionInfo() R version 2.15.2 (2012-10-26) Platform: i386-w64-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_...
2009 Dec 29
1
problem reading from serial connection since 2.10.0
...erently when calling scan since 2.10.0. Any ideas what this behaviour comes from? Here the sessionInfo() for the three cases I have tested: R version 2.9.2 (2009-08-24) i386-pc-mingw32 locale: LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252 attached base packages: [1] stats graphics grDevices utils datasets [6] methods base respectively: R version 2.10.1 (2009-12-14) i386-pc-mingw32 locale: [1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 [3] LC_MONETARY=German_Germany.1252 LC_NUMERIC...