Error when I try creating a module in jmvtools using RStudio

Discuss the jamovi platform, possible improvements, etc.
Post Reply
Shahip
Posts: 1
Joined: Sun Aug 01, 2021 2:25 pm

Error when I try creating a module in jmvtools using RStudio

Post by Shahip »

Version I am using:
RStudio 1.4.1717
R 3.6.3
Jamovi 1.2.27.0

I am trying to create a module in jmvtools using Rstudio, I am getting this error below when I run the command: jmvtools::install()

ERROR:
TypeError [ERR_INVALID_ARG_TYPE]: The "buffer" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of TypeError
at Object.writeSync (fs.js:704:5)
at C:\Users\shahi\OneDrive\Documents\R\win-library\3.6\jmvtools\node_modules\jamovi-compiler\index.js:488:12
at processTicksAndRejections (internal/process/task_queues.js:93:5)

The "buffer" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of TypeError

I have also tried using different versions of R and I end up receiving the same error.
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Error when I try creating a module in jmvtools using RSt

Post by jonathon »

hi,

just double check you're using the latest version of jmvtools, and i'd suggest updating to a recent version of jamovi too.

cheers

jonathon
decaux
Posts: 27
Joined: Wed Feb 19, 2020 1:35 pm

Re: Error when I try creating a module in jmvtools using RSt

Post by decaux »

Hello

I am getting exactly the same error, using latest versions
jamovi 2.2.2.0
jmvtools 2.2
RStudio 2021.09.0 Build 351
R-4.1.1
Grateful for any suggestions

Peter
sbalci
Posts: 124
Joined: Sat Jan 06, 2018 10:25 pm
Contact:

Re: Error when I try creating a module in jmvtools using RSt

Post by sbalci »

did you install jmvtools as described in the dev.jamovi.org?
I recommend not putting libraries in onedrive folder. it may be trying to keep some files online only.
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Error when I try creating a module in jmvtools using RSt

Post by jonathon »

hi decaux,

could you attach here a screenshot of the commands you're running and the errors they produce?

kind regards
decaux
Posts: 27
Joined: Wed Feb 19, 2020 1:35 pm

Re: Error when I try creating a module in jmvtools using RSt

Post by decaux »

sbalci wrote:did you install jmvtools as described in the dev.jamovi.org?
I recommend not putting libraries in onedrive folder. it may be trying to keep some files online only.
Religiously following the tutorial. :grin:
Not using Onedrive.
Used PC laptop. Will try again on my desk machine.
sbalci
Posts: 124
Joined: Sat Jan 06, 2018 10:25 pm
Contact:

Re: Error when I try creating a module in jmvtools using RSt

Post by sbalci »

Your library path contains OneDrive: C:\Users\shahi\OneDrive\Documents\R\win-library\
Probably you have activated OneDrive to backup your documents folder.
User avatar
MAgojam
Posts: 421
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: Error when I try creating a module in jmvtools using RSt

Post by MAgojam »

sbalci wrote:Your library path contains OneDrive: C:\Users\shahi\OneDrive\Documents\R\win-library\
Probably you have activated OneDrive to backup your documents folder.
Hi @sbalci,
you're probably right, but I don't think @decaux uses @Shahip's PC. :stuck_out_tongue_winking_eye:

We are waiting for decaux to give us some further information.
I am heavily using jmvtools with the same software versions without encountering any issues.

Cheers,
Maurizio
decaux
Posts: 27
Joined: Wed Feb 19, 2020 1:35 pm

Re: Error when I try creating a module in jmvtools using RSt

Post by decaux »

No problem with my office desk machine.
Probably time to get a new laptop!
Thanks for comments
sbalci
Posts: 124
Joined: Sat Jan 06, 2018 10:25 pm
Contact:

Re: Error when I try creating a module in jmvtools using RSt

Post by sbalci »

MAgojam wrote: you're probably right, but I don't think @decaux uses @Shahip's PC. :stuck_out_tongue_winking_eye:
Oh, well then, there seems to be different problems :')
Post Reply