I want to run R codes on HPC, and the premise is that I need to install a local package, which is written by another author (for windows and mac versions). So I could not use the command 'install.packages()'.
I tried dragging the local package into my environment in SSH Secure File Transfer, but when I library the package, I got errors as below.
(for windows version packages)Error: package or namespace load failed for 鈉zfactor?in library.dynam(lib, package, package.lib): shared object 鈉zfactor.so?not found
or:
(for mac version packages)Error: package or namespace load failed for 鈉zfactor?in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/data/home/y/R/x86_64-pc-linux-gnu-library/libs/鈉zfactor/libs/鈉zfactor.so': /data/home/y/R/x86_64-pc-linux-gnu-library/libs/鈉zfactor/libs/czfactor.so: invalid ELF header
In addition: Warning message:
package 鈉zfactor?was built under R version 4.1.1
So how could I library that local package using SSH? Which version should I choose?
Thank you very much.