how to install R packages “RNetCDF” and “ncdf” on Ubuntu?

后端 未结 3 954
情书的邮戳
情书的邮戳 2021-01-02 09:31

I would like to use the R packages RNetCDF and ncdf in Ubuntu.

When I try install.packages(\'RNetCDF\') or install.packages(\'ncdf\'), I ge

3条回答
  •  天命终不由人
    2021-01-02 10:16

    Just to clarify, since your initial issue is in R, and the fix is applied outside of R. I initially was trying to do

    install.packages("libnetcdf-dev"), which didn't work.

    instead, from outside of R: sudo apt-get install libnetcdf-dev

    That fixed it for me.

提交回复
热议问题