Do I need to install.packages every time I use Rscript in linux command line?
0
1
Entering edit mode
3.8 years ago
npeng ▴ 10

Hi,

I am using bio3d package in R and use Rscript to run it in the linux command line. Do I need to install packages every time I run the R file or only library it after the first time of installation like what we used to do in the Rstudio?

Thank you.

R linux command line • 993 views
ADD COMMENT
0
Entering edit mode

You should only need to install a package one-time unless you are doing it on a RAM disk or some non-persistent storage.

ADD REPLY
0
Entering edit mode

Thank you. But I received this error after the first time installation:

Error: package or namespace load failed for ‘bio3d’ in library.dynam(lib, package, package.lib):
 shared object ‘bio3d.so’ not found
In addition: Warning message:
S3 methods ‘as.pdb.default’, ‘as.pdb.mol2’, ‘as.pdb.prmtop’, ‘atom2ele.default’, ‘atom2ele.pdb’, ‘atom2mass.default’, ‘atom2mass.pdb’, ‘atom.select.pdb’, ‘atom.select.mol2’, ‘atom.select.prmtop’, ‘bhattacharyya.array’, ‘bhattacharyya.enma’, ‘bhattacharyya.matrix’, ‘bhattacharyya.nma’, ‘bhattacharyya.pca’, ‘cmap.default’, ‘cmap.pdb’, ‘cmap.xyz’, ‘cna.dccm’, ‘cna.ensmb’, ‘com.pdb’, ‘com.xyz’, ‘core.find.default’, ‘core.find.pdb’, ‘core.find.pdbs’, ‘covsoverlap.enma’, ‘covsoverlap.nma’, ‘dccm.enma’, ‘dccm.nma’, ‘dccm.pca’, ‘dccm.xyz’, ‘dccm.gnm’, ‘dccm.egnm’, ‘dm.pdb’, ‘dm.xyz’, ‘dm.pdbs’, ‘dssp.pdb’, ‘dssp.pdbs’, ‘dssp.xyz’, ‘geostas.default’, ‘geostas.enma’, ‘geostas.nma’, ‘geostas.pdb’, ‘geostas.pdbs’, ‘geostas.xyz’, ‘pdbfit.pdb’, ‘pdbfit.pdbs’, ‘identify.cna’, ‘mktrj.enma’, ‘mktrj.nma’, � [... truncated]
Execution halted
ADD REPLY
0
Entering edit mode

Are you loading the library in your R file? I assume bio3d package is installed in your personal space?

ADD REPLY

Login before adding your answer.

Traffic: 2480 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6