Package: ncdfCF Check: examples New result: ERROR Running examples in ‘ncdfCF-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: [.CFVariable > ### Title: Extract data for a variable > ### Aliases: [.CFVariable bracket_select > > ### ** Examples > > fn <- system.file("extdata", + "pr_day_EC-Earth3-CC_ssp245_r1i1p1f1_gr_20230101-20231231_vncdfCF.nc", + package = "ncdfCF") > ds <- open_ncdf(fn) > pr <- ds[["pr"]] > > # How are the dimensions organized? > dimnames(pr) [1] "lon" "lat" "time" > > # Precipitation data for March for a single location > x <- pr[5, 12, 61:91] Error in indexOf(ex[1L]:ex[2L], ax$time(), "constant") : could not find function "indexOf" Calls: [ -> [.CFVariable Execution halted Package: ncdfCF Check: R code for possible problems New result: NOTE [.CFVariable: no visible global function definition for ‘indexOf’ Undefined global functions or variables: indexOf Package: ncdfCF Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘Using_ncdfCF.Rmd’ using rmarkdown Quitting from lines 209-216 [extract] (Using_ncdfCF.Rmd) Error: processing vignette 'Using_ncdfCF.Rmd' failed with diagnostics: could not find function "indexOf" --- failed re-building ‘Using_ncdfCF.Rmd’ SUMMARY: processing the following file failed: ‘Using_ncdfCF.Rmd’ Error: Vignette re-building failed. Execution halted