Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7069

Error in installing packages for R, "Error: package or namespace load failed for ‘RJSONIO’ in dyn.load(file, DLLpath = DLLpath, ...)"

$
0
0

I am trying to batch download files from a figshare collection with around 70 files. I want to do this with the "rfigshare" package in R. However when I try to install the package in RStudio, I have repeatedly not been able to install one of the dependencies, "RJSONIO".

This is the error message I receive every time I try to install this dependency:

Error: package or namespace load failed for ‘RJSONIO’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/username/R/x86_64-pc-linux-gnu-library/4.4/00LOCK-RJSONIO/00new/RJSONIO/libs/RJSONIO.so':  /home/username/R/x86_64-pc-linux-gnu-library/4.4/00LOCK-RJSONIO/00new/RJSONIO/libs/RJSONIO.so: undefined symbol: VECTOR_PTR_ROError: loading failedExecution halted

Also earlier in the console during the installation procedure there is a section which says:

RJSON.c: In function ‘R_readFromJSON’:RJSON.c:73:28: warning: implicit declaration of function ‘VECTOR_PTR_RO’; did you mean ‘VECTOR_PTR’? [-Wimplicit-function-declaration]   73 |             ptr = (void *) VECTOR_PTR_RO(tmp);      |                            ^~~~~~~~~~~~~      |                            VECTOR_PTRRJSON.c:73:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]   73 |             ptr = (void *) VECTOR_PTR_RO(tmp);      |          

I have tried numerous other suggestions that were posted previously online, and have also tried to install the package on a fresh install of R. However none of those have worked.

    OS: Ubuntu 22.04

    R Version: 4.4.3

    RStudio Version: 2024.12.1

Will provide more information as required.


Viewing all articles
Browse latest Browse all 7069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>