Re: [R] [Rd] I do not want that R CMD build removes temp directory
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 ERROR: lazy loading failed for package 'shiny' * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/shiny' Warning in install.packages :" On Thu, 15 Dec 2022 at 19:09, Simon Urbanek wrote: > > 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 also use --no-test-load and the non-functional package > will still be installed so you can inspect it. > > Cheers, > Simon > > PS: please don't cross-post > > > > On Dec 16, 2022, at 7:01 AM, Witold E Wolski wrote: > > > > 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 there a way to disable the temp directory removal? > > > > Best Regards > > Witek > > -- > > Witold Eryk Wolski > > > > __ > > r-de...@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > > -- Witold Eryk Wolski __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] [Rd] I do not want that R CMD build removes temp directory
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 also use --no-test-load and the non-functional package will still be installed so you can inspect it. Cheers, Simon PS: please don't cross-post > On Dec 16, 2022, at 7:01 AM, Witold E Wolski wrote: > > 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 there a way to disable the temp directory removal? > > Best Regards > Witek > -- > Witold Eryk Wolski > > __ > r-de...@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] I do not want that R CMD build removes temp directory
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 there a way to disable the temp directory removal? Best Regards Witek -- Witold Eryk Wolski __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Get data from a list of data frames
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'] Whether this is better, worse, or unneeded, I cannot say. Cheers, Bert On Thu, Dec 15, 2022 at 6:11 AM Gerrit Eichner < gerrit.eich...@math.uni-giessen.de> wrote: > 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", > "snowgauge", "anemometer"), > code = c(2584, 1479, 3179, 4453)) > Station3 <- data.frame(sensor = c("thermometer", "raingauge", > "snowgauge", "anemometer"), > code = c(2584, 1479, 3179, 4453)) > Station4 <- data.frame(sensor = rev(c("thermometer", "raingauge", > "snowgauge", "anemometer")), > code = c(2584, 1479, 3179, 4453)) > Station5 <- data.frame(sensor = c("raingauge", "snowgauge", > "thermometer", "anemometer"), > code = c(2584, 1479, 3179, 4453)) > > Total <- list("Station1"=Station1, "Station2"=Station2, >Station3 = Station3, Station4 = Station4, >Station5 = Station5) > > select.stat <- paste0("Station", c(1, 4, 5)) > select.sens <- "thermometer" > > sapply(Total[select.stat], function(x, sens) >x$code[x$sensor == sens], sens = select.sens) > > > > Hth -- Gerrit > > - > Dr. Gerrit Eichner Mathematical Institute, Room 212 > gerrit.eich...@math.uni-giessen.de Justus-Liebig-University Giessen > Tel: +49-(0)641-99-32104 Arndtstr. 2, 35392 Giessen, Germany > http://www.uni-giessen.de/eichner > - > > Am 15.12.2022 um 14:52 schrieb 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, 1479, 3179, 4453)) > > > > > > Total <- list("Station1"=Station1, "Station2"=Station2, ...) > > > > I would need to have a vector with the sensor codes of the thermometers > of some stations, let's say of Station1, Station2 and Station5 (i.e. > c(2583, 2584, 2587)). > > I tried with lapply, but I have not been able to get what I need. > > Could you please help me? > > > > Thank you > > > > Stefano > > > > > > > > (oo) > > --oOO--( )--OOo-- > > Stefano Sofia PhD > > Civil Protection - Marche Region - Italy > > Meteo Section > > Snow Section > > Via del Colle Ameno 5 > > 60126 Torrette di Ancona, Ancona (AN) > > Uff: +39 071 806 7743 > > E-mail: stefano.so...@regione.marche.it > > ---Oo-oO > > > > > > > > AVVISO IMPORTANTE: Questo messaggio di posta elettronica pu� contenere > informazioni confidenziali, pertanto � destinato solo a persone autorizzate > alla ricezione. I messaggi di posta elettronica per i client di Regione > Marche possono contenere informazioni confidenziali e con privilegi legali. > Se non si � il destinatario specificato, non leggere, copiare, inoltrare o > archiviare questo messaggio. Se si � ricevuto questo messaggio per errore, > inoltrarlo al mittente ed eliminarlo completamente dal sistema del proprio > computer. Ai sensi dell'art. 6 della DGR n. 1394/2008 si segnala che, in > caso di necessit� ed urgenza, la risposta al presente messaggio di posta > elettronica pu� essere visionata da persone estranee al destinatario. > > IMPORTANT NOTICE: This e-mail message is intended to be received only by > persons entitled to receive the confidential information it may contain. > E-mail messages to clients of Regione Marche may contain information that > is confidential and legally privileged. Please do not read, copy, forward, > or store this message unless you are an intended recipient of it. If you > have received this message in error, please forward it to the sender and > delete it completely from your computer system. > > > > -- > > > > Questo messaggio stato analizzato da Libraesva ESG ed risultato non > infetto. > > > > This message was scanned by Libraesva ESG and is believed to be clean. > > > > > > [[alternative HTML version deleted]] > > > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do
Re: [R] library(tseries) - spellng error in output
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 spelling error in the output for >> *Jarque-Bera >> test in R.* >> >> *library(tseries)* >> >> >> >> >> >> >> >> >> >> >> >> *> #Jarque-Bera normality test> normalTest(dt_i, method='jb')Title: Jarque >> - Bera Normalality TestTest Results: STATISTIC:X-squared: 16.8853 P >> VALUE:Asymptotic p Value: 0.0002155 * >> > > -- > Sent from my phone. Please excuse my brevity. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Get data from a list of data frames
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", "snowgauge", "anemometer"), code = c(2584, 1479, 3179, 4453)) Station3 <- data.frame(sensor = c("thermometer", "raingauge", "snowgauge", "anemometer"), code = c(2584, 1479, 3179, 4453)) Station4 <- data.frame(sensor = rev(c("thermometer", "raingauge", "snowgauge", "anemometer")), code = c(2584, 1479, 3179, 4453)) Station5 <- data.frame(sensor = c("raingauge", "snowgauge", "thermometer", "anemometer"), code = c(2584, 1479, 3179, 4453)) Total <- list("Station1"=Station1, "Station2"=Station2, Station3 = Station3, Station4 = Station4, Station5 = Station5) select.stat <- paste0("Station", c(1, 4, 5)) select.sens <- "thermometer" sapply(Total[select.stat], function(x, sens) x$code[x$sensor == sens], sens = select.sens) Hth -- Gerrit - Dr. Gerrit Eichner Mathematical Institute, Room 212 gerrit.eich...@math.uni-giessen.de Justus-Liebig-University Giessen Tel: +49-(0)641-99-32104 Arndtstr. 2, 35392 Giessen, Germany http://www.uni-giessen.de/eichner - Am 15.12.2022 um 14:52 schrieb 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, 1479, 3179, 4453)) Total <- list("Station1"=Station1, "Station2"=Station2, ...) I would need to have a vector with the sensor codes of the thermometers of some stations, let's say of Station1, Station2 and Station5 (i.e. c(2583, 2584, 2587)). I tried with lapply, but I have not been able to get what I need. Could you please help me? Thank you Stefano (oo) --oOO--( )--OOo-- Stefano Sofia PhD Civil Protection - Marche Region - Italy Meteo Section Snow Section Via del Colle Ameno 5 60126 Torrette di Ancona, Ancona (AN) Uff: +39 071 806 7743 E-mail: stefano.so...@regione.marche.it ---Oo-oO AVVISO IMPORTANTE: Questo messaggio di posta elettronica pu� contenere informazioni confidenziali, pertanto � destinato solo a persone autorizzate alla ricezione. I messaggi di posta elettronica per i client di Regione Marche possono contenere informazioni confidenziali e con privilegi legali. Se non si � il destinatario specificato, non leggere, copiare, inoltrare o archiviare questo messaggio. Se si � ricevuto questo messaggio per errore, inoltrarlo al mittente ed eliminarlo completamente dal sistema del proprio computer. Ai sensi dell'art. 6 della DGR n. 1394/2008 si segnala che, in caso di necessit� ed urgenza, la risposta al presente messaggio di posta elettronica pu� essere visionata da persone estranee al destinatario. IMPORTANT NOTICE: This e-mail message is intended to be received only by persons entitled to receive the confidential information it may contain. E-mail messages to clients of Regione Marche may contain information that is confidential and legally privileged. Please do not read, copy, forward, or store this message unless you are an intended recipient of it. If you have received this message in error, please forward it to the sender and delete it completely from your computer system. -- Questo messaggio stato analizzato da Libraesva ESG ed risultato non infetto. This message was scanned by Libraesva ESG and is believed to be clean. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Get data from a list of data frames
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, 1479, 3179, 4453)) Total <- list("Station1"=Station1, "Station2"=Station2, ...) I would need to have a vector with the sensor codes of the thermometers of some stations, let's say of Station1, Station2 and Station5 (i.e. c(2583, 2584, 2587)). I tried with lapply, but I have not been able to get what I need. Could you please help me? Thank you Stefano (oo) --oOO--( )--OOo-- Stefano Sofia PhD Civil Protection - Marche Region - Italy Meteo Section Snow Section Via del Colle Ameno 5 60126 Torrette di Ancona, Ancona (AN) Uff: +39 071 806 7743 E-mail: stefano.so...@regione.marche.it ---Oo-oO AVVISO IMPORTANTE: Questo messaggio di posta elettronica pu� contenere informazioni confidenziali, pertanto � destinato solo a persone autorizzate alla ricezione. I messaggi di posta elettronica per i client di Regione Marche possono contenere informazioni confidenziali e con privilegi legali. Se non si � il destinatario specificato, non leggere, copiare, inoltrare o archiviare questo messaggio. Se si � ricevuto questo messaggio per errore, inoltrarlo al mittente ed eliminarlo completamente dal sistema del proprio computer. Ai sensi dell'art. 6 della DGR n. 1394/2008 si segnala che, in caso di necessit� ed urgenza, la risposta al presente messaggio di posta elettronica pu� essere visionata da persone estranee al destinatario. IMPORTANT NOTICE: This e-mail message is intended to be received only by persons entitled to receive the confidential information it may contain. E-mail messages to clients of Regione Marche may contain information that is confidential and legally privileged. Please do not read, copy, forward, or store this message unless you are an intended recipient of it. If you have received this message in error, please forward it to the sender and delete it completely from your computer system. -- Questo messaggio stato analizzato da Libraesva ESG ed risultato non infetto. This message was scanned by Libraesva ESG and is believed to be clean. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.