Re: [R] as.POSIXct character string is not in a standard unambiguous format

2017-04-06 Thread Sebastien Moretti
, "%Y-%m-%d %H:%M")) or Sys.setenv( TZ="Etc/GMT+5" ) instead of ambiguous x <- as.POSIXct("2002-02-02 02:02") Sébastien I cannot imagine a less desirable solution. This is the opposite of portable programming. -- Sent from my phone. Please excuse my brevity. On

Re: [R] as.POSIXct character string is not in a standard unambiguous format

2017-04-06 Thread Sebastien Moretti
x <- as.POSIXct("2002-02-02 02:02", format = "%Y-%m-%d %H:%M") Ben On Apr 5, 2017, at 11:21 AM, Sebastien Moretti wrote: Hi I have lots of issues when I try to install R 3.3.3 during the "make check" step. Every time a call to as.POSIXct is

Re: [R] as.POSIXct character string is not in a standard unambiguous format

2017-04-05 Thread Sebastien Moretti
anything in the update notes. http://mirror.its.dal.ca/cran/doc/manuals/r-release/NEWS.html In the meantime, would it skirt your issue if you explicitly stated the format? x <- as.POSIXct("2002-02-02 02:02", format = "%Y-%m-%d %H:%M") Ben On Apr 5, 2017, at 11:21 AM

[R] as.POSIXct character string is not in a standard unambiguous format

2017-04-05 Thread Sebastien Moretti
Hi I have lots of issues when I try to install R 3.3.3 during the "make check" step. Every time a call to as.POSIXct is done in test scripts, I got the same error message: e.g. x <- as.POSIXct("2002-02-02 02:02") Error in as.POSIXlt.character(x, tz, ...) : character string is not in a stan

Re: [R] .Call works in R 2 not in R 3

2016-03-10 Thread Sebastien Moretti
n R call and not using .Call is the preferred solution. On Mar 8, 2016, at 14:55, Sebastien Moretti wrote: Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Sebastien Moretti
Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call("R_cutree", tree$merge, k, PACKAGE = "stats") "R_

[R] .Call works in R 2 not in R 3

2016-03-08 Thread Sebastien Moretti
Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call("R_cutree", tree$merge, k, PACKAGE = "stats")

Re: [R] Namespace problem with pre-R 3.0.0 package

2016-03-03 Thread Sebastien Moretti
Le 03/03/2016 03:02 PM, Marc Schwartz a écrit : On Mar 3, 2016, at 7:40 AM, Sebastien Moretti wrote: Hi I have issues with an R package developed in 2004. It works perfectly in R < 3. It can be installed in R > 3 but functions are not in the namespace. Do you know a good - and

[R] Namespace problem with pre-R 3.0.0 package

2016-03-03 Thread Sebastien Moretti
Hi I have issues with an R package developed in 2004. It works perfectly in R < 3. It can be installed in R > 3 but functions are not in the namespace. Do you know a good - and simple - documentation to help me to solve that? I have already fixed some problems with R CMD check but remaining one