Re: [R] [Rd] I do not want that R CMD build removes temp directory

2022-12-15 Thread Witold E Wolski
Thank you Simon, It seems not to be related to the R package but rather to the OS, (just got the same error when installing the shiny R package from CRAN). I am on an M1 mac running Windows ARM in Parallels. Installed a x86_64-w64 R version. "** byte-compile and prepare package for lazy loading

Re: [R] [Rd] I do not want that R CMD build removes temp directory

2022-12-15 Thread Simon Urbanek
Yes: $ R CMD INSTALL --help | grep error --no-clean-on-error do not remove installed package on error But probably more commonly used way is to install the package from its unpacked directory as that avoids the use of temporary directories in the first place. In you case you can als

[R] I do not want that R CMD build removes temp directory

2022-12-15 Thread Witold E Wolski
I am getting a package build error, and can not figure out the problem. The error is " ERROR: lazy loading failed for package 'prolfqua' * removing 'C:/Users/ " However since R CMD build removes the temp directory and does not give any other errors how can I find out what the build problem is? Is

Re: [R] Get data from a list of data frames

2022-12-15 Thread Bert Gunter
Well, just for giggles, Gerrit's solution can be easily vectorized (i.e. no apply()-type stuff needed) IFF the structure of all the data frames are identical so that rbind() works: d <-do.call('rbind',Total[select.stat]) ## one data frame to combine them all ;-) d[d$sensor == 'thermometer','code']

Re: [R] library(tseries) - spellng error in output

2022-12-15 Thread peter dalgaard
And normalTest is not in tseries, but in fBasics. - pd > On 15 Dec 2022, at 04:11 , Jeff Newmiller wrote: > > Contact the package maintainer. See maintainer(). > > On December 14, 2022 7:04:28 PM PST, roslinazairimah zakaria > wrote: >> Hi R-users, >> >> Just to inform that there is one spe

Re: [R] Get data from a list of data frames

2022-12-15 Thread Gerrit Eichner
Hello, Stefano, maybe the following example contains what you want to achieve: Station1 <- data.frame(sensor = c("thermometer", "raingauge", "snowgauge", "anemometer"), code = c(2583, 1478, 3178, NA)) Station2 <- data.frame(sensor = c("thermometer", "raingauge", "snowga

[R] Get data from a list of data frames

2022-12-15 Thread Stefano Sofia
Dear R-list users, I have a list of n data frames built as follows: Station1 <- data.frame(sensor = c("thermometer", "raingauge", "snowgauge", "anemometer"), code = c(2583, 1478, 3178, NA)) Station2 <- data.frame(sensor = c("thermometer", "raingauge", "snowgauge", "anemometer"), code = c(2584,