我正在尝试安装一个名为“ncdf4”的 R 软件包。\n我已尝试将其安装在 R-studio 界面的“packages”部分,但也尝试输入install.packages("ncdf4")控制台。
这是我在两种情况下得到的输出:
\n\nInstalling package into \xe2\x80\x98/home/user/R/x86_64-pc-linux-gnu-library/3.6\xe2\x80\x99\n(as \xe2\x80\x98lib\xe2\x80\x99 is unspecified)\ntrying URL \'https://cloud.r-project.org/src/contrib/ncdf4_1.17.tar.gz\'\nContent type \'application/x-gzip\' length 124458 bytes (121 KB)\n==================================================\ndownloaded 121 KB\n\n* installing *source* package \xe2\x80\x98ncdf4\xe2\x80\x99 ...\n** package \xe2\x80\x98ncdf4\xe2\x80\x99 successfully unpacked and MD5 sums checked\n** using staged installation\nconfigure.ac: starting\nchecking for nc-config... no\n-----------------------------------------------------------------------------------\nError, nc-config not found or not executable. This is a script that comes with the\nnetcdf library, version 4.1-beta2 or later, and must be present for configuration\nto succeed.\n\nIf you installed the netcdf library (and …Run Code Online (Sandbox Code Playgroud)