Re: [R] Problem installing some r-packages via spack

2024-11-26 Thread Eric Berger
I have never used Spack but I took a quick look at their website. They have the option to install binaries. Perhaps this could work for you and avoid the compilation error. Here is where they describe how to do it: https://spack.io/spack-binary-packages/ On Wed, Nov 27, 2024 at 9:29 AM Oren Shani

[R] Problem installing some r-packages via spack

2024-11-26 Thread Oren Shani
Hi All, This occurs when I try to install certain r packages via the Spack package manager (the example is for DelayedArray): 70** R 71** inst 72** byte-compile and prepare package for lazy loading >> 73Error: objects 'crossprod', 'tcrossprod' are not exported by

Re: [R] Convert string to date time

2024-11-26 Thread Rui Barradas
Às 00:53 de 27/11/2024, Sorkin, John escreveu: I am reading a string that has the following form: "2020-08-26_05:15:01" I want to convert the string to a date-time variable. I tired: x <- "2007-02-01_10:10:30" x <- as.POSIXct(x,tz=Sys.timezone()) x but this did not work; the time portion was

Re: [R] [External] Convert string to date time

2024-11-26 Thread Richard M. Heiberger
> as.POSIXct(x, tz=Sys.timezone(), format="%Y-%m-%d_%H:%M:%OS") [1] "2007-02-01 10:10:30 EST" > On Nov 26, 2024, at 19:53, Sorkin, John wrote: > > x <- "2007-02-01_10:10:30" > x <- as.POSIXct(x,tz=Sys.timezone()) __ R-help@r-project.org mailing list

Re: [R] Convert string to date time

2024-11-26 Thread David Winsemius via R-help
On 11/26/24 16:53, Sorkin, John wrote: I am reading a string that has the following form: "2020-08-26_05:15:01" I want to convert the string to a date-time variable. I tired: x <- "2007-02-01_10:10:30" That underscore is what's causing your problems. If it needs to stay in there because y

[R] Convert string to date time

2024-11-26 Thread Sorkin, John
I am reading a string that has the following form: "2020-08-26_05:15:01" I want to convert the string to a date-time variable. I tired: x <- "2007-02-01_10:10:30" x <- as.POSIXct(x,tz=Sys.timezone()) x but this did not work; the time portion was ignored. I suspect the problem is the _ between