Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal RStudio error when loading {qdap} #265

Open
AlexChristensen opened this issue Jul 4, 2022 · 5 comments
Open

Fatal RStudio error when loading {qdap} #265

AlexChristensen opened this issue Jul 4, 2022 · 5 comments

Comments

@AlexChristensen
Copy link

Problem

Loading {qdap} causes RStudio to crash

Versions

qdap: 2.4.4
qdapDictionaries: 1.0.8
qdapRegex: 0.7.6
qdapTools: 1.3.4

R: 4.2.0
RStudio: 2022.2.1.461
Windows: 10 x64 build 22000

Things I've Tried

Removing and installing {qdap} from CRAN using (restarting R/RStudio in-between remove and install):

remove.packages("qdap")
install.packages("qdap")

Removing and installing {qdap} from GitHub using (restarting R/RStudio in-between remove and install):

devtools::install_github("trinker/qdap")

Loading required packages before loading {qdap} (all packages load OK until {qdap})

library(qdapDictionaries)
library(qdapRegex)
library(qdapTools)
library(RColorBrewer)

Loading {qdap} in R (not RStudio): Works! But not my preferred R GUI

@emartlyn
Copy link

I am having the same error

@mjaniec2013
Copy link

mjaniec2013 commented Oct 19, 2022

Same here.

Tried loading qdap with empty environment.

qdap 2.4.3

RStudio 2022.07.1+554 "Spotted Wakerobin"
Release (7872775ebddc40635780ca1ed238934c3345c5de, 2022-07-22) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

R version 4.2.0 (2022-04-22 ucrt) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

Java Version 8 Update 351

JAVA_HOME set before loading qdap:

> Sys.setenv(JAVA_HOME="C:/Program Files/Java/jre1.8.0_351")
> 
> Sys.getenv("JAVA_HOME")
[1] "C:/Program Files/Java/jre1.8.0_351"

64-bit versions R and JAVA used.

Just like mentioned in the initial post, qdap loads outside RStudio. Below warnings are returned in this case:

Warning messages:
1: package 'qdap' was built under R version 4.2.1
2: package 'qdapRegex' was built under R version 4.2.1
3: package 'qdapTools' was built under R version 4.2.1

Will try updating R from 4.2.0 to 4.2.1.

@mjaniec2013
Copy link

mjaniec2013 commented Oct 20, 2022

Attempt to add qdap:: prefix to one of the qdap functions in my code resulted in a FATAL RStudio crash - IDE become unusable.

RStudio kept crashing after restart and removal of .Rhistory and .RData files.

Reinstalling...

@smcinerney
Copy link

@mjaniec2013 : you mean you're reinstalling, RStudio, all of R, qdap, or some combination of those?

@mjaniec2013
Copy link

@mjaniec2013 : you mean you're reinstalling, RStudio, all of R, qdap, or some combination of those?

Both, actually + updating R & refreshing all packages installed.

Cleaning RStudio required deleting user files in AppData folders, etc.

All the above should be completed now. Will test qdap again, soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants