jak zainstalować pakiety R „RNetCDF” i „ncdf” na Ubuntu?

Chciałbym użyć pakietów R RNetCDF i ncdf w Ubuntu.

Kiedy próbujęinstall.packages('RNetCDF') lubinstall.packages('ncdf'), Dostaję podobne błędy:

...
ncdf.c:3:20: fatal error: netcdf.h: No such file or directory
compilation terminated.
make: *** [ncdf.o] Error 1
ERROR: compilation failed for package ‘ncdf’
...
Warning message:
In install.packages("ncdf") :
  installation of package ‘ncdf’ had non-zero exit status

Pakietylibnetcdf6 inetcdf-bin z repozytorium Ubuntu są zainstalowane. Czy muszę zrobić coś innego?

questionAnswers(3)

yourAnswerToTheQuestion