This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Do I need to install.packages every time I use Rscript in linux command line?

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

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

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

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

0 answers

No answers yet.

Log in to answer this question.