similar to: problematic dev.off() after running examples without plots

Displaying 20 results from an estimated 7000 matches similar to: "problematic dev.off() after running examples without plots"

2019 Sep 06
2
Cryptic error message from namespaceExport
Dear all, Today I got this error message (R 3.6.1) when installing my package: Error: package or namespace load failed for ?inlatools? in namespaceExport(ns, exports): undefined exports: .__C__inla My package was using setOldClass("inla") and exported the "inla" class via the NAMESPACE. It imports functions from the INLA package. Older versions of the INLA package did not
2019 Sep 06
1
Cryptic error message from namespaceExport
Dear Michael, my package has setOldClass("inla") and the NAMESPACE contains exportClasses(inla) and importFrom(INLA, inla.posterior.sample) the old version of INLA uses the S3 class "inla" but does not export it. the new version of INLA has setOldClass("inla") and the NAMESPACE contains exportClasses(inla) installing my package in combination with an older INLA
2017 Sep 21
0
Add wrapper to Shiny in R package
Dear Axel, I've used environment for such problems. assign("xs", xs, envir = my.env) in the myApp function get("xs", envir = my.env) in the server function Best regards, ir. Thierry Onkelinx Statisticus/ Statiscian Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie &
2017 Sep 21
3
Add wrapper to Shiny in R package
Dear List, I'm trying to add a function that calls a Shiny App in my R package. The issue is that within my function, I'm creating objects that I'd like to pass to the app. For instance, from the example below, I'm getting "Error: object 'xs' not found". How can I pass "xs" explicitly to shinyApp()? *Under R directory:* myApp <- function(x, ...) {
2018 Apr 24
0
Copy text from Script syntax into .txt
Dear Roberto, The easiest way IMHO is to convert your script into an R markdown document. See https://rmarkdown.rstudio.com/ Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
2018 Aug 28
3
build package with unicode (farsi) strings
Hi, I have a R script file with Persian letters in it defined as a variable: #' @export letters_fa <- c('???','?','?','?','?','?','?','?','?','?','?','?') I have specified the encoding field in my DESCRIPTION file of my package. ... Encoding: UTF-8 ... I also included
2018 May 08
2
Dinamic variables in loop
Hello, I am a newbie in R and I have a problem. I want this line: newMyData <-MyData[!(is.na(col1)) | !(is.na(col2)) | !(is.na(col3)) | !( is.na(col4)) | !(is.na(col5)),] write in for loop. The number of col[number] may be different from 3 to 8 Is there any ideas? Thank you Laura [[alternative HTML version deleted]]
2018 Feb 26
0
glm package - Negative binomial regression model - Error
Dear Paula, There are probably missing observations in your data set. Read the na.action part of the glm help file. na.exclude is most likely what you are looking for. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & Kwaliteitszorg /
2017 Sep 21
2
Keep on getting message errors when trying to install and load packages
Hi Paul, I recently ran into file path conflicts and found the following useful (looks like you already know the answer to 1.): 1. Use .libPaths() to find where packages are being stored. 2. To change this path: Control Panel > search ?View advanced system settings? > Environment Variables *button *> a. *Edit* current R_LIBS_USER to new file path b. *New*
2018 Feb 26
2
glm package - Negative binomial regression model - Error
HI there I am running this model in negative binomial regression, using glm. I had no problems with running the model with a set of data, but now that i'm trying to run if for new one. I always have this same error when running the regression: > > #Run Regression > x=cbind(factor2ind(d$year),factor2ind(d$month_week)) > > out<- glm(cbind(influenza, n_sample) ~ x,
2023 Feb 16
1
GAM with binary predictors
Dear Sacha, use glm() in this case. I'd rather code the covariable as TRUE / FALSE or as a factor. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance thierry.onkelinx at inbo.be
2017 Nov 09
1
weighted average grouped by variables
Dear Massimo, It seems straightforward to use weighted.mean() in a dplyr context library(dplyr) mydf %>% group_by(date_time, type) %>% summarise(vel = weighted.mean(speed, n_vehicles)) Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team
2023 Jun 03
1
bug in utils:::format.person
Thierry, thanks for this, this is a bug in utils:::.format_person_as_R_code(). This calls deparse() on the elements of the person object with the default width.cutoff = 60. As your comment exceeds this width, the erroneous formatting is produced. The simplest reproducible example I could come up with was: p <- person(".", comment = c(foo = ".....................",
2018 Jan 16
2
Packages couldn't load
Dear All, I have been trying to install Xlsx package in R but i have been getting this error after the installation. Please can anyone help? > any(grepl("xlsx",installed.packages())) [1] TRUE > library("xlsx") Loading required package: rJava Error: package or namespace load failed for ?rJava?: .onLoad failed in loadNamespace() for 'rJava', details: call:
2018 Feb 01
3
Error while working with png output on linux server
Thanks for your reply. I searched for the error on Google before resorting to the R forum (help group). I tried Sys.env(...) too, but didn't resolve the error I get. Hence I am looking for solution. -- -----Original Message----- From: Thierry Onkelinx [mailto:thierry.onkelinx at inbo.be] Sent: Thursday, February 01, 2018 10:57 AM To: Sariya, Sanjeev <ss5505 at cumc.columbia.edu>
2017 Sep 21
1
Keep on getting message errors when trying to install and load packages
Dear Paul, We install R in C:/R/R-x.y.z and packages in C:/R/library. This makes the packages location independent from the R version. Best regards, ir. Thierry Onkelinx Statisticus/ Statiscian Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
2023 Jun 02
2
bug in utils:::format.person
Dear all, I think I found a bug in utils::format.person when using style = "R" with a vector of comments. The comment section is not parsed properly. Please find below the mwe and the session info. Best regards, Thierry maintainer <- person( given = "Thierry", family = "Onkelinx", role = c("aut", "cre"), email = "thierry.onkelinx at
2018 May 08
0
Dinamic variables in loop
Dear Laura, It looks like you want to remove all rows for which each column is NA. You can to that with the code below. na.matrix <- is.na(MyData) all.na.row <- apply(na.matrix, 1, all) MyData[!all.na.row, ] Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND
2017 Sep 21
0
Keep on getting message errors when trying to install and load packages
Dear Leslie and Thierry, Thank you so much for your kind and extremely valuable replies. Only one doubt remains, which path do you think is the best option to store downloaded packages? Should I set it up so that all installed packages are in the same folder (path) that I installed R? Or can I simply set it up so that all installed packages are stored in a different path? Again, thank you guys
2018 Jan 16
0
Packages couldn't load
You need to make sure that the rJava package is working. Consider using the readxl package instead of xlsx. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance thierry.onkelinx at