RStudio Server: ncdf4 error "R_nc4_open" not available for .C() for package "ncdf4"

Hi everyone,

I've encountered a similar problem as in this topic (https://support.rstudio.com/hc/en-us/community/posts/115009083388-Rstudio-1-1-372-and-ncdf4-error-R-nc4-open-not-available-for-C-for-package-ncdf4).

In short, I'm trying to open a NetCDF file using the ncdf4-package which works perfectly on the desktop version of RStudio on my laptop, but gives me the following error message if I use nc_open() in the RStudio Server of my organization:

Error in .C("R_nc4_open", as.character(filename), as.integer(rv$cmode), :
"R_nc4_open" not available for .C() for package "ncdf4"

Does anyone know a solution/work around to get nc_open/ncdf4 to work on the RStudio Server?

Below is my session info. Thanks a lot for the help!

RStudio.Version()
$citation

To cite RStudio in publications use:

RStudio Team (2016). RStudio: Integrated Development for R. RStudio, Inc., Boston, MA

A BibTeX entry for LaTeX users is

@Manual{,
title = {RStudio: Integrated Development Environment for R},
author = {{RStudio Team}},
organization = {RStudio, Inc.},
address = {Boston, MA},
year = {2016},
url = {http://www.rstudio.com/},
}

$mode
[1] "server"

$version
[1] ‘1.1.442’

sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base

other attached packages:
[1] ncdf4_1.16 snow_0.4-2 doParallel_1.0.11 iterators_1.0.9 foreach_1.4.4 rgeos_0.3-26 foreign_0.8-69
[8] rgdal_1.2-18 raster_2.6-7 sp_1.2-7

loaded via a namespace (and not attached):
[1] Rcpp_0.12.16 lattice_0.20-35 codetools_0.2-15 grid_3.4.3 tools_3.4.3 yaml_2.1.18 compiler_3.4.3