Running examples in ‘stars-Ex.R’ failed
The error most likely occurred in:

> ### Name: read_ncdf
> ### Title: Read NetCDF into stars object
> ### Aliases: read_ncdf
> 
> ### ** Examples
> 
> f <- system.file("nc/reduced.nc", package = "stars")
> read_ncdf(f)
stars object with 4 dimensions and 4 attributes
attribute(s):
      sst            anom               err             ice       
 Min.   :-1.80   Min.   :-10.160   Min.   :0.110   Min.   :0.010  
 1st Qu.:-0.03   1st Qu.: -0.580   1st Qu.:0.160   1st Qu.:0.470  
 Median :13.65   Median : -0.080   Median :0.270   Median :0.920  
 Mean   :12.99   Mean   : -0.186   Mean   :0.263   Mean   :0.718  
 3rd Qu.:24.81   3rd Qu.:  0.210   3rd Qu.:0.320   3rd Qu.:0.960  
 Max.   :32.97   Max.   :  2.990   Max.   :0.840   Max.   :1.000  
 NA's   :4448    NA's   :4448      NA's   :4448    NA's   :13266  
dimension(s):
     from  to offset delta refsys point values    
lon     1 180     -1     2     NA    NA   NULL [x]
lat     1  90    -90     2     NA    NA   NULL [y]
zlev    1   1     NA    NA     NA    NA      0    
time    1   1     NA    NA     NA    NA   1460    
> read_ncdf(f, var = c("anom"))
stars object with 4 dimensions and 1 attribute
attribute(s):
     anom         
 Min.   :-10.160  
 1st Qu.: -0.580  
 Median : -0.080  
 Mean   : -0.186  
 3rd Qu.:  0.210  
 Max.   :  2.990  
 NA's   :4448     
dimension(s):
     from  to offset delta refsys point values    
lon     1 180     -1     2     NA    NA   NULL [x]
lat     1  90    -90     2     NA    NA   NULL [y]
zlev    1   1     NA    NA     NA    NA      0    
time    1   1     NA    NA     NA    NA   1460    
> read_ncdf(f, ncsub = cbind(start = c(1, 1, 1, 1), count = c(10, 12, 1, 1)))
stars object with 4 dimensions and 4 attributes
attribute(s):
      sst             anom                err             ice        
 Min.   :-1.390   Min.   :-1.07000   Min.   :0.300   Min.   :0.0100  
 1st Qu.:-0.720   1st Qu.:-0.36250   1st Qu.:0.300   1st Qu.:0.1100  
 Median :-0.515   Median : 0.19500   Median :0.300   Median :0.1700  
 Mean   :-0.534   Mean   : 0.05867   Mean   :0.303   Mean   :0.2094  
 3rd Qu.:-0.275   3rd Qu.: 0.55500   3rd Qu.:0.300   3rd Qu.:0.2550  
 Max.   : 0.030   Max.   : 0.92000   Max.   :0.320   Max.   :0.5200  
 NA's   :90       NA's   :90         NA's   :90      NA's   :104     
dimension(s):
     from to offset delta refsys point values    
lon     1 10     -1     2     NA    NA   NULL [x]
lat     1 12    -90     2     NA    NA   NULL [y]
zlev    1  1     NA    NA     NA    NA      0    
time    1  1     NA    NA     NA    NA   1460    
> 
> 
> #' precipitation data in a curvilinear NetCDF
> prec_file = system.file("nc/test_stageiv_xyt.nc", package = "stars")
> prec = read_ncdf(prec_file, curvilinear = c("lon", "lat"))
Error in nc_meta.character(.x) : 
  failed to open 'x', value given was: "/home/ripley/R/Lib32/stars/nc/test_stageiv_xyt.nc"
Calls: read_ncdf -> <Anonymous> -> nc_meta.character
Execution halted