"Rappdirs" error when using System R from Jamovi

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
caminoodle
Posts: 2
Joined: Wed Aug 10, 2022 8:30 am

"Rappdirs" error when using System R from Jamovi

Post by caminoodle »

Hi,

I've been trying to use Rj to run analyses not yet included in jamovi (careless package). I'm following the instructions here https://blog.jamovi.org/2018/07/30/rj.html and have installed jmvconnect.
"
But when I try to run anything in Jamovi from the system R it comes up with the error message "there is no package called rappdirs". I've installed rappdirs in the system R, but it doesn't go away and I can't seem to be able to run anything still.

As an alternative approach, I've tried accessing my jamovi dataset from R using jmvconnect, but that returns the error message "Error in dataset$title : object of type 'externalptr' is not subsettable". (the title of my dataset is all lower case letters and numbers - what does subsettable mean then?)

Ideally I'd want to access R from Jamovi so as not to lose the information in the dataset, but either option would work. Does anyone have any idea of how to solve this?
Thank you!
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: "Rappdirs" error when using System R from Jamovi

Post by jonathon »

yeah, the challenge with using system R is that there's a lot of quirks and peculiarities of people's individual systems which can be difficult to work out.

an easy work around might be to use the jmvReadWrite package.

https://cran.r-project.org/package=jmvReadWrite

cheers

jonathon
caminoodle
Posts: 2
Joined: Wed Aug 10, 2022 8:30 am

Re: "Rappdirs" error when using System R from Jamovi

Post by caminoodle »

That worked, thanks Jonathon!
MelWK
Posts: 1
Joined: Thu Feb 16, 2023 8:41 pm

Re: "Rappdirs" error when using System R from Jamovi

Post by MelWK »

Hi,
I have the same error as the previous posts mention : when I try to run anything in Jamovi from the system R it comes up with the error message "there is no package called rappdirs". I've installed rappdirs in the system R, but it doesn't go away and I can't seem to be able to run anything still.

I tried installing the jmvReadWrite package but it still returns the same error "there is no package called rappdirs".

I saw in an older post that you mentioned that international symbols in the username may be a problem. That is my case :
‘C:/Users/Mélanie/AppData/Local/R/win-library/4.2’ but I don't know if and how that can be changed.

I also tried writing .libPaths('C:/Users/Mélanie/AppData/Local/R/win-library/4.2') in Rj in Jamovi but that doesn''t seem to help.

Is there another workaround?

Many thanks.
Post Reply