qdap icon indicating copy to clipboard operation
qdap copied to clipboard

Fatal RStudio error when loading {qdap}

Open AlexChristensen opened this issue 2 years ago • 5 comments

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

AlexChristensen avatar Jul 04 '22 17:07 AlexChristensen

I am having the same error

emartlyn avatar Sep 30 '22 06:09 emartlyn

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 avatar Oct 19 '22 16:10 mjaniec2013

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...

mjaniec2013 avatar Oct 20 '22 01:10 mjaniec2013

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

smcinerney avatar Oct 21 '22 02:10 smcinerney

@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.

mjaniec2013 avatar Oct 22 '22 03:10 mjaniec2013