Logan's Blog
  • English
    简体中文
  • Posts
  • Linux
    • R-packages-install
      • R packages install_hdf5r
      • R packages install_nloptr
Hero Image
R packages install_nloptr

Create Time: 2022-02-11 Update Time: 2022-02-18 Processes mkdir -p $HOME/pkgconfig $HOME/softwares $HOME/tmp cd $HOME/tmp wget https://github.com/stevengj/nlopt/archive/refs/tags/v2.7.1.tar.gz tar -zxvf v2.7.1.tar.gz cd nlopt-2.7.1 mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=$HOME/softwares/nlopt .. make make install cp $HOME/softwares/nlopt/lib/pkgconfig/nlopt.pc $HOME/pkgconfig export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/pkgconfig # Then you could install the package: nloptr in the R environment In the R environment install.packages('nloptr') Issues I am not sure if everyone will get this kind of issue Error: package or namespace load failed for ‘nloptr’ in dyn.

February 18, 2022 Read
Hero Image
R packages install_hdf5r

Create Time: 2022-02-11 Update Time: 2022-02-11 Processes mkdir -p $HOME/lib $HOME/softwares $HOME/tmp export LD_LIBRARY_PATH=$HOME/lib/:${LD_LIBRARY_PATH} cd $HOME/tmp wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.4/src/hdf5-1.10.4.tar.gz tar -zxvf hdf5-1.10.4.tar.gz cd hdf5-1.10.4 ./configure --prefix=$HOME/softwares/hdf5 make make install cd $HOME/lib ln -s $HOME/softwares/hdf5/lib/* ./ # Then you could install the package: hdf5r in the R environment In the R environment install.packages('hdf5r') TL;DR The R package, hdf5r, is the interface of hdf5, so it is necessary to have the hdf5, without r in the name, package installed.

February 11, 2022 Read
Navigation
  • About
  • Skills
  • Experiences
  • Projects
  • Recent Posts
  • Achievements
Contact me:
  • loganylchen@gmail.com
  • Private

Stay up to date with email notification


By entering your email address, you agree to receive the newsletter of this website.

Toha Theme Logo Toha
©2022 Copyright.
Powered by Hugo Logo