Running ‘spelling.R’
  Comparing ‘spelling.Rout’ to ‘spelling.Rout.save’ ...6c6
< NULL
---
> All Done!
  Running ‘testthat.R’ [8s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cmsaf)
  > 
  > test_check("cmsaf")
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 1. Error: (unknown) (@test_box_mergetime.R#10)  ─────────────────────────────
  Error in nc_create!
  1: box_mergetime("SIS", data_dir, "ex_normal", file_out) at testthat/test_box_mergetime.R:10
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_open: NetCDF: HDF error
  ── 2. Error: (unknown) (@test_change_att.R#524)  ───────────────────────────────
  Error in nc_open trying to open file /tmp/RtmptmaiEW/working_dir/Rtmp8Daiwd/change_att_6b167694a84.nc
  1: change_att("SIS", file_out) at testthat/test_change_att.R:524
  2: nc_open(infile, write = TRUE)
  3: stop(paste("Error in nc_open trying to open file", filename))
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 3. Error: (unknown) (@test_cmsaf.add.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: cmsaf.add("SIS", "SIS", file.path(data_dir, "ex_normal1.nc"), file.path(data_dir, 
         "ex_normal2.nc"), file_out) at testthat/test_cmsaf.add.R:10
  2: arith_wrapper(1, vari1, vari2, infile1, infile2, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data1$variable$name, 
         file_data1$grid$vars, file_data1$grid$vars_data, cmsaf_info, file_data1$time_info$calendar, 
         file_data1$variable$attributes, global_attributes, with_time_bnds = FALSE)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 4. Error: (unknown) (@test_cmsaf.addc.R#10)  ────────────────────────────────
  Error in nc_create!
  1: cmsaf.addc("SIS", 4, file.path(data_dir, "ex_normal1.nc"), file_out) at testthat/test_cmsaf.addc.R:10
  2: arithc_wrapper(1, var, const, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 5. Error: (unknown) (@test_cmsaf.cat.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: cmsaf.cat("SIS", c(file.path(data_dir, "ex_normal1.nc"), file.path(data_dir, "ex_normal2.nc")), 
         file_out) at testthat/test_cmsaf.cat.R:10
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 6. Error: (unknown) (@test_cmsaf.div.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: cmsaf.div("SIS", "SIS", file.path(data_dir, "ex_normal1.nc"), file.path(data_dir, 
         "ex_normal2.nc"), file_out) at testthat/test_cmsaf.div.R:10
  2: arith_wrapper(4, vari1, vari2, infile1, infile2, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data1$variable$name, 
         file_data1$grid$vars, file_data1$grid$vars_data, cmsaf_info, file_data1$time_info$calendar, 
         file_data1$variable$attributes, global_attributes, with_time_bnds = FALSE)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 7. Error: (unknown) (@test_cmsaf.divc.R#10)  ────────────────────────────────
  Error in nc_create!
  1: cmsaf.divc("SIS", 4, file.path(data_dir, "ex_normal1.nc"), file_out) at testthat/test_cmsaf.divc.R:10
  2: arithc_wrapper(4, var, const, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 8. Error: (unknown) (@test_cmsaf.mul.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: cmsaf.mul("SIS", "SIS", file.path(data_dir, "ex_normal1.nc"), file.path(data_dir, 
         "ex_normal2.nc"), file_out) at testthat/test_cmsaf.mul.R:10
  2: arith_wrapper(3, vari1, vari2, infile1, infile2, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data1$variable$name, 
         file_data1$grid$vars, file_data1$grid$vars_data, cmsaf_info, file_data1$time_info$calendar, 
         file_data1$variable$attributes, global_attributes, with_time_bnds = FALSE)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 9. Error: (unknown) (@test_cmsaf.mulc.R#10)  ────────────────────────────────
  Error in nc_create!
  1: cmsaf.mulc("SIS", 4, file.path(data_dir, "ex_normal1.nc"), file_out) at testthat/test_cmsaf.mulc.R:10
  2: arithc_wrapper(3, var, const, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 10. Error: (unknown) (@test_cmsaf.sub.R#10)  ────────────────────────────────
  Error in nc_create!
  1: cmsaf.sub("SIS", "SIS", file.path(data_dir, "ex_normal1.nc"), file.path(data_dir, 
         "ex_normal2.nc"), file_out) at testthat/test_cmsaf.sub.R:10
  2: arith_wrapper(2, vari1, vari2, infile1, infile2, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data1$variable$name, 
         file_data1$grid$vars, file_data1$grid$vars_data, cmsaf_info, file_data1$time_info$calendar, 
         file_data1$variable$attributes, global_attributes, with_time_bnds = FALSE)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 11. Error: (unknown) (@test_cmsaf.subc.R#10)  ───────────────────────────────
  Error in nc_create!
  1: cmsaf.subc("SIS", 4, file.path(data_dir, "ex_normal1.nc"), file_out) at testthat/test_cmsaf.subc.R:10
  2: arithc_wrapper(2, var, const, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 12. Error: (unknown) (@test_dayrange.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: dayrange("SIS", file.path(data_dir, "ex_dayrange.nc"), file_out) at testthat/test_dayrange.R:10
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 13. Error: (unknown) (@test_divdpm.R#10)  ───────────────────────────────────
  Error in nc_create!
  1: divdpm("SIS", file.path(data_dir, "ex_divdpm.nc"), file_out) at testthat/test_divdpm.R:10
  2: xdpm_wrapper("div", var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 14. Error: (unknown) (@test_extract.level.R#10)  ────────────────────────────
  Error in nc_create!
  1: extract.level("SIS", file.path(data_dir, "ex_extract.level.nc"), file_out) at testthat/test_extract.level.R:10
  2: write_output_file(outfile1, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 15. Error: (unknown) (@test_extract.period.R#10)  ───────────────────────────
  Error in nc_create!
  1: extract.period("SIS", "2000-02-01", "2000-04-01", file.path(data_dir, "ex_extract_period.nc"), 
         file_out) at testthat/test_extract.period.R:10
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 16. Error: (unknown) (@test_fldmax.R#10)  ───────────────────────────────────
  Error in nc_create!
  1: fldmax("SIS", file.path(data_dir, "ex_fld.nc"), file_out) at testthat/test_fldmax.R:10
  2: fldx_wrapper(1, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 17. Error: (unknown) (@test_fldmean.R#10)  ──────────────────────────────────
  Error in nc_create!
  1: fldmean("SIS", file.path(data_dir, "ex_fld.nc"), file_out) at testthat/test_fldmean.R:10
  2: fldx_wrapper(3, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 18. Error: (unknown) (@test_fldmin.R#10)  ───────────────────────────────────
  Error in nc_create!
  1: fldmin("SIS", file.path(data_dir, "ex_fld.nc"), file_out) at testthat/test_fldmin.R:10
  2: fldx_wrapper(2, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 19. Error: (unknown) (@test_levbox_mergetime.R#10)  ─────────────────────────
  Error in nc_create!
  1: levbox_mergetime("SIS", 1, data_dir, "ex_lev", file_out) at testthat/test_levbox_mergetime.R:10
  2: box_mergetime(var, path, pattern, outfile, lon1, lon2, lat1, lat2, level, nc34, overwrite, 
         verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 20. Error: (unknown) (@test_mon.anomaly.R#15)  ──────────────────────────────
  Error in nc_create!
  1: mon.anomaly("SIS", file.path(data_dir, testdata_filename), file_out) at testthat/test_mon.anomaly.R:15
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 21. Error: (unknown) (@test_monmax.R#10)  ───────────────────────────────────
  Error in nc_create!
  1: monmax("SIS", file.path(data_dir, "ex_mon.nc"), file_out) at testthat/test_monmax.R:10
  2: monx_wrapper(1, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 22. Error: (unknown) (@test_monmean.R#10)  ──────────────────────────────────
  Error in nc_create!
  1: monmean("SIS", file.path(data_dir, "ex_mon.nc"), file_out) at testthat/test_monmean.R:10
  2: monx_wrapper(3, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 23. Error: (unknown) (@test_monmin.R#10)  ───────────────────────────────────
  Error in nc_create!
  1: monmin("SIS", file.path(data_dir, "ex_mon.nc"), file_out) at testthat/test_monmin.R:10
  2: monx_wrapper(2, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 24. Error: (unknown) (@test_monsd.R#10)  ────────────────────────────────────
  Error in nc_create!
  1: monsd("SIS", file.path(data_dir, "ex_mon.nc"), file_out) at testthat/test_monsd.R:10
  2: monx_wrapper(5, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 25. Error: (unknown) (@test_monsum.R#10)  ───────────────────────────────────
  Error in nc_create!
  1: monsum("SIS", file.path(data_dir, "ex_mon.nc"), file_out) at testthat/test_monsum.R:10
  2: monx_wrapper(4, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 26. Error: (unknown) (@test_muldpm.R#13)  ───────────────────────────────────
  Error in nc_create!
  1: muldpm("SIS", file.path(data_dir, "ex_mon2.nc"), file_out) at testthat/test_muldpm.R:13
  2: xdpm_wrapper("mul", var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 27. Error: (unknown) (@test_multimonmean.R#13)  ─────────────────────────────
  Error in nc_create!
  1: multimonmean("SIS", c(6, 6, 7, 7), file.path(data_dir, "ex_mon2.nc"), file_out) at testthat/test_multimonmean.R:13
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 28. Error: (unknown) (@test_multimonsum.R#13)  ──────────────────────────────
  Error in nc_create!
  1: multimonsum("SIS", c(5, 6, 7, 8), file.path(data_dir, "ex_mon2.nc"), file_out) at testthat/test_multimonsum.R:13
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 29. Error: (unknown) (@test_seasmean.R#13)  ─────────────────────────────────
  Error in nc_create!
  1: seasmean("SIS", file.path(data_dir, "ex_mon2.nc"), file_out) at testthat/test_seasmean.R:13
  2: seasx_wrapper(1, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 30. Error: (unknown) (@test_seassum.R#13)  ──────────────────────────────────
  Error in nc_create!
  1: seassum("SIS", file.path(data_dir, "ex_mon2.nc"), file_out) at testthat/test_seassum.R:13
  2: seasx_wrapper(2, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 31. Error: (unknown) (@test_sellonlatbox.R#12)  ─────────────────────────────
  Error in nc_create!
  1: sellonlatbox("SIS", file_in, file_out) at testthat/test_sellonlatbox.R:12
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 32. Error: (unknown) (@test_selmon.R#12)  ───────────────────────────────────
  Error in nc_create!
  1: selmon("SIS", 1, file_in, file_out) at testthat/test_selmon.R:12
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 33. Error: (unknown) (@test_selperiod.R#12)  ────────────────────────────────
  Error in nc_create!
  1: selperiod("SIS", "2000-01-01", "2000-01-05", file_in, file_out) at testthat/test_selperiod.R:12
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 34. Error: (unknown) (@test_selpoint.R#15)  ─────────────────────────────────
  Error in nc_create!
  1: selpoint("SIS", file_in, file_out, 6.2, 46.7) at testthat/test_selpoint.R:15
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 35. Error: (unknown) (@test_selpoint.multi.R#38)  ───────────────────────────
  Error in nc_create!
  1: selpoint.multi(var = "SIS", file.path(data_dir, "ex_selpoint2.nc"), outpath = output_dir, 
         lon1 = c(5.5, 6.5), lat1 = c(45.5, 46.5), station_names = c(fileNameA, fileNameB), 
         format = "nc") at testthat/test_selpoint.multi.R:38
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 36. Error: (unknown) (@test_seltime.R#12)  ──────────────────────────────────
  Error in nc_create!
  1: seltime("SIS", "12:00:00", file_in, file_out) at testthat/test_seltime.R:12
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 37. Error: (unknown) (@test_selyear.R#12)  ──────────────────────────────────
  Error in nc_create!
  1: selyear("SIS", 2000, file_in, file_out) at testthat/test_selyear.R:12
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 38. Error: (unknown) (@test_timmax.R#11)  ───────────────────────────────────
  Error in nc_create!
  1: timmax("SIS", file_in, file_out) at testthat/test_timmax.R:11
  2: timx_wrapper("max", var, infile, outfile, nc34, overwrite, verbose = verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 39. Error: (unknown) (@test_timmean.R#11)  ──────────────────────────────────
  Error in nc_create!
  1: timmean("SIS", file_in, file_out) at testthat/test_timmean.R:11
  2: timx_wrapper("mean", var, infile, outfile, nc34, overwrite, verbose = verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 40. Error: (unknown) (@test_timmin.R#11)  ───────────────────────────────────
  Error in nc_create!
  1: timmin("SIS", file_in, file_out) at testthat/test_timmin.R:11
  2: timx_wrapper("min", var, infile, outfile, nc34, overwrite, verbose = verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 41. Error: (unknown) (@test_timpctl.R#11)  ──────────────────────────────────
  Error in nc_create!
  1: timpctl("SIS", p = 0.95, file_in, file_out) at testthat/test_timpctl.R:11
  2: timx_wrapper("pctl", var, infile, outfile, nc34, overwrite, p = p, verbose = verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 42. Error: (unknown) (@test_timsd.R#11)  ────────────────────────────────────
  Error in nc_create!
  1: timsd("SIS", file_in, file_out) at testthat/test_timsd.R:11
  2: timx_wrapper("sd", var, infile, outfile, nc34, overwrite, verbose = verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 43. Error: (unknown) (@test_timsum.R#11)  ───────────────────────────────────
  Error in nc_create!
  1: timsum("SIS", file_in, file_out) at testthat/test_timsum.R:11
  2: timx_wrapper("sum", var, infile, outfile, nc34, overwrite, verbose = verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 44. Error: (unknown) (@test_wfldmean.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: wfldmean("SIS", file.path(data_dir, "ex_wfldmean.nc"), file_out) at testthat/test_wfldmean.R:10
  2: fldx_wrapper(4, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes, with_time_bnds = file_data$time_info$has_time_bnds)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 45. Error: (unknown) (@test_ydaymean.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: ydaymean("SIS", file.path(data_dir, "ex_yday.nc"), file_out) at testthat/test_ydaymean.R:10
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 46. Error: (unknown) (@test_year.anomaly.R#10)  ─────────────────────────────
  Error in nc_create!
  1: year.anomaly("SIS", file.path(data_dir, "ex_year.nc"), file_out) at testthat/test_year.anomaly.R:10
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 47. Error: (unknown) (@test_yearmean.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: yearmean("SIS", file.path(data_dir, "ex_year.nc"), file_out) at testthat/test_yearmean.R:10
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 48. Error: (unknown) (@test_yearsum.R#10)  ──────────────────────────────────
  Error in nc_create!
  1: yearsum("SIS", file.path(data_dir, "ex_year.nc"), file_out) at testthat/test_yearsum.R:10
  2: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  3: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  4: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 49. Error: (unknown) (@test_ymonmax.R#10)  ──────────────────────────────────
  Error in nc_create!
  1: ymonmax("SIS", file.path(data_dir, "ex_ymon.nc"), file_out) at testthat/test_ymonmax.R:10
  2: ymonx_wrapper(1, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 50. Error: (unknown) (@test_ymonmean.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: ymonmean("SIS", file.path(data_dir, "ex_ymon.nc"), file_out) at testthat/test_ymonmean.R:10
  2: ymonx_wrapper(3, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 51. Error: (unknown) (@test_ymonmin.R#10)  ──────────────────────────────────
  Error in nc_create!
  1: ymonmin("SIS", file.path(data_dir, "ex_ymon.nc"), file_out) at testthat/test_ymonmin.R:10
  2: ymonx_wrapper(2, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 52. Error: (unknown) (@test_ymonsd.R#10)  ───────────────────────────────────
  Error in nc_create!
  1: ymonsd("SIS", file.path(data_dir, "ex_ymon.nc"), file_out) at testthat/test_ymonsd.R:10
  2: ymonx_wrapper(5, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 53. Error: (unknown) (@test_ymonsum.R#10)  ──────────────────────────────────
  Error in nc_create!
  1: ymonsum("SIS", file.path(data_dir, "ex_ymon.nc"), file_out) at testthat/test_ymonsum.R:10
  2: ymonx_wrapper(4, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 54. Error: (unknown) (@test_yseasmax.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: yseasmax("SIS", file.path(data_dir, "ex_yseas.nc"), file_out) at testthat/test_yseasmax.R:10
  2: yseasx_wrapper(1, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 55. Error: (unknown) (@test_yseasmean.R#10)  ────────────────────────────────
  Error in nc_create!
  1: yseasmean("SIS", file.path(data_dir, "ex_yseas.nc"), file_out) at testthat/test_yseasmean.R:10
  2: yseasx_wrapper(3, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 56. Error: (unknown) (@test_yseasmin.R#10)  ─────────────────────────────────
  Error in nc_create!
  1: yseasmin("SIS", file.path(data_dir, "ex_yseas.nc"), file_out) at testthat/test_yseasmin.R:10
  2: yseasx_wrapper(2, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 57. Error: (unknown) (@test_yseassd.R#10)  ──────────────────────────────────
  Error in nc_create!
  1: yseassd("SIS", file.path(data_dir, "ex_yseas.nc"), file_out) at testthat/test_yseassd.R:10
  2: yseasx_wrapper(4, var, infile, outfile, nc34, overwrite, verbose)
  3: write_output_file(outfile, nc_format$force_v4, vars, vars_data, file_data$variable$name, 
         file_data$grid$vars, file_data$grid$vars_data, cmsaf_info, file_data$time_info$calendar, 
         file_data$variable$attributes, global_attributes)
  4: nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  5: stop("Error in nc_create!")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 207 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 57 ]
  1. Error: (unknown) (@test_box_mergetime.R#10) 
  2. Error: (unknown) (@test_change_att.R#524) 
  3. Error: (unknown) (@test_cmsaf.add.R#10) 
  4. Error: (unknown) (@test_cmsaf.addc.R#10) 
  5. Error: (unknown) (@test_cmsaf.cat.R#10) 
  6. Error: (unknown) (@test_cmsaf.div.R#10) 
  7. Error: (unknown) (@test_cmsaf.divc.R#10) 
  8. Error: (unknown) (@test_cmsaf.mul.R#10) 
  9. Error: (unknown) (@test_cmsaf.mulc.R#10) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted