Displaying 20 results from an estimated 4000 matches similar to: "Cryptic error message from namespaceExport"
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
2019 Sep 06
0
Cryptic error message from namespaceExport
Just to clarify, your package is exporting a class that is not
defined? Or is it exporting a class that is defined by a dependency
and then masked by setOldClass()? A simple reproducible example would
help.
On Fri, Sep 6, 2019 at 7:48 AM Thierry Onkelinx via R-devel
<r-devel at r-project.org> wrote:
>
> Dear all,
>
> Today I got this error message (R 3.6.1) when installing my
2018 Nov 20
2
problematic dev.off() after running examples without plots
Dear all,
When running R CMD check on our package, we get an error on the examples.
Error in grDevices::dev.off() :
cannot shut down device 1 (the null device)
None of the examples in our package generates plots. grDevices::dev.off()
is code added by R CMD check. A workaround is to have at least one example
which has some plot. Is there a better solution? We are using R 3.5.1
Best
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
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
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 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 /
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 = ".....................",
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
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 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
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
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
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,
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
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:
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 Mar 14
1
Problem with reading data from an UTF-16 database
Dear all,
We have a problem with reading some characters correctly from an UTF-16
encoded database. The code below givens the correct characters on Ubuntu
with the_driver = {ODBC Driver 13 for SQL Server}. On Windows (with
the_driver = {SQL Server}), special characters like '?' and '?' are
returned as '?'. I've added the sessionInfo() output from both machines.
Any