Running ‘spelling.R’
  Comparing ‘spelling.Rout’ to ‘spelling.Rout.save’ ...6c6
< NULL
---
> All Done!
  Running ‘testthat.R’ [9s/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!
  Backtrace:
   1. cmsaf::box_mergetime("SIS", data_dir, "ex_normal", file_out)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  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/Rtmp3Qa4Uf/working_dir/RtmpmlaWyw/change_att_2cc614283698.nc
  Backtrace:
   1. cmsaf::change_att("SIS", file_out)
   2. ncdf4::nc_open(infile, write = TRUE)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 3. Error: (unknown) (@test_cmsaf.add.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::cmsaf.add(...)
   2. cmsaf:::arith_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 4. Error: (unknown) (@test_cmsaf.addc.R#10)  ────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::cmsaf.addc(...)
   2. cmsaf:::arithc_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 5. Error: (unknown) (@test_cmsaf.cat.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::cmsaf.cat(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 6. Error: (unknown) (@test_cmsaf.div.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::cmsaf.div(...)
   2. cmsaf:::arith_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 7. Error: (unknown) (@test_cmsaf.divc.R#10)  ────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::cmsaf.divc(...)
   2. cmsaf:::arithc_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 8. Error: (unknown) (@test_cmsaf.mul.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::cmsaf.mul(...)
   2. cmsaf:::arith_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 9. Error: (unknown) (@test_cmsaf.mulc.R#10)  ────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::cmsaf.mulc(...)
   2. cmsaf:::arithc_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 10. Error: (unknown) (@test_cmsaf.sub.R#10)  ────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::cmsaf.sub(...)
   2. cmsaf:::arith_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 11. Error: (unknown) (@test_cmsaf.subc.R#10)  ───────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::cmsaf.subc(...)
   2. cmsaf:::arithc_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 12. Error: (unknown) (@test_dayrange.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::dayrange(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 13. Error: (unknown) (@test_divdpm.R#10)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::divdpm("SIS", file.path(data_dir, "ex_divdpm.nc"), file_out)
   2. cmsaf:::xdpm_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 14. Error: (unknown) (@test_extract.level.R#10)  ────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::extract.level(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 15. Error: (unknown) (@test_extract.period.R#10)  ───────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::extract.period(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 16. Error: (unknown) (@test_fldmax.R#10)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::fldmax("SIS", file.path(data_dir, "ex_fld.nc"), file_out)
   2. cmsaf:::fldx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 17. Error: (unknown) (@test_fldmean.R#10)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::fldmean("SIS", file.path(data_dir, "ex_fld.nc"), file_out)
   2. cmsaf:::fldx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 18. Error: (unknown) (@test_fldmin.R#10)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::fldmin("SIS", file.path(data_dir, "ex_fld.nc"), file_out)
   2. cmsaf:::fldx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 19. Error: (unknown) (@test_levbox_mergetime.R#10)  ─────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::levbox_mergetime("SIS", 1, data_dir, "ex_lev", file_out)
   2. cmsaf::box_mergetime(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 20. Error: (unknown) (@test_mon.anomaly.R#15)  ──────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::mon.anomaly(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 21. Error: (unknown) (@test_monmax.R#10)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::monmax("SIS", file.path(data_dir, "ex_mon.nc"), file_out)
   2. cmsaf:::monx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 22. Error: (unknown) (@test_monmean.R#10)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::monmean("SIS", file.path(data_dir, "ex_mon.nc"), file_out)
   2. cmsaf:::monx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 23. Error: (unknown) (@test_monmin.R#10)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::monmin("SIS", file.path(data_dir, "ex_mon.nc"), file_out)
   2. cmsaf:::monx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 24. Error: (unknown) (@test_monsd.R#10)  ────────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::monsd("SIS", file.path(data_dir, "ex_mon.nc"), file_out)
   2. cmsaf:::monx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 25. Error: (unknown) (@test_monsum.R#10)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::monsum("SIS", file.path(data_dir, "ex_mon.nc"), file_out)
   2. cmsaf:::monx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 26. Error: (unknown) (@test_muldpm.R#13)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::muldpm("SIS", file.path(data_dir, "ex_mon2.nc"), file_out)
   2. cmsaf:::xdpm_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 27. Error: (unknown) (@test_multimonmean.R#13)  ─────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::multimonmean(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 28. Error: (unknown) (@test_multimonsum.R#13)  ──────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::multimonsum(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 29. Error: (unknown) (@test_seasmean.R#13)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::seasmean("SIS", file.path(data_dir, "ex_mon2.nc"), file_out)
   2. cmsaf:::seasx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 30. Error: (unknown) (@test_seassum.R#13)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::seassum("SIS", file.path(data_dir, "ex_mon2.nc"), file_out)
   2. cmsaf:::seasx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 31. Error: (unknown) (@test_sellonlatbox.R#12)  ─────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::sellonlatbox("SIS", file_in, file_out)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 32. Error: (unknown) (@test_selmon.R#12)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::selmon("SIS", 1, file_in, file_out)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 33. Error: (unknown) (@test_selperiod.R#12)  ────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::selperiod(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 34. Error: (unknown) (@test_selpoint.R#15)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::selpoint("SIS", file_in, file_out, 6.2, 46.7)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 35. Error: (unknown) (@test_selpoint.multi.R#38)  ───────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::selpoint.multi(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 36. Error: (unknown) (@test_seltime.R#12)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::seltime("SIS", "12:00:00", file_in, file_out)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 37. Error: (unknown) (@test_selyear.R#12)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::selyear("SIS", 2000, file_in, file_out)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 38. Error: (unknown) (@test_timmax.R#11)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::timmax("SIS", file_in, file_out)
   2. cmsaf:::timx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 39. Error: (unknown) (@test_timmean.R#11)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::timmean("SIS", file_in, file_out)
   2. cmsaf:::timx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 40. Error: (unknown) (@test_timmin.R#11)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::timmin("SIS", file_in, file_out)
   2. cmsaf:::timx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 41. Error: (unknown) (@test_timpctl.R#11)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::timpctl("SIS", p = 0.95, file_in, file_out)
   2. cmsaf:::timx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 42. Error: (unknown) (@test_timsd.R#11)  ────────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::timsd("SIS", file_in, file_out)
   2. cmsaf:::timx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 43. Error: (unknown) (@test_timsum.R#11)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::timsum("SIS", file_in, file_out)
   2. cmsaf:::timx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 44. Error: (unknown) (@test_wfldmean.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::wfldmean(...)
   2. cmsaf:::fldx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 45. Error: (unknown) (@test_ydaymean.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::ydaymean("SIS", file.path(data_dir, "ex_yday.nc"), file_out)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 46. Error: (unknown) (@test_year.anomaly.R#10)  ─────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::year.anomaly(...)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 47. Error: (unknown) (@test_yearmean.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::yearmean("SIS", file.path(data_dir, "ex_year.nc"), file_out)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 48. Error: (unknown) (@test_yearsum.R#10)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::yearsum("SIS", file.path(data_dir, "ex_year.nc"), file_out)
   2. cmsaf:::write_output_file(...)
   3. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 49. Error: (unknown) (@test_ymonmax.R#10)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::ymonmax("SIS", file.path(data_dir, "ex_ymon.nc"), file_out)
   2. cmsaf:::ymonx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 50. Error: (unknown) (@test_ymonmean.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::ymonmean("SIS", file.path(data_dir, "ex_ymon.nc"), file_out)
   2. cmsaf:::ymonx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 51. Error: (unknown) (@test_ymonmin.R#10)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::ymonmin("SIS", file.path(data_dir, "ex_ymon.nc"), file_out)
   2. cmsaf:::ymonx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 52. Error: (unknown) (@test_ymonsd.R#10)  ───────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::ymonsd("SIS", file.path(data_dir, "ex_ymon.nc"), file_out)
   2. cmsaf:::ymonx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 53. Error: (unknown) (@test_ymonsum.R#10)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::ymonsum("SIS", file.path(data_dir, "ex_ymon.nc"), file_out)
   2. cmsaf:::ymonx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 54. Error: (unknown) (@test_yseasmax.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::yseasmax("SIS", file.path(data_dir, "ex_yseas.nc"), file_out)
   2. cmsaf:::yseasx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 55. Error: (unknown) (@test_yseasmean.R#10)  ────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::yseasmean("SIS", file.path(data_dir, "ex_yseas.nc"), file_out)
   2. cmsaf:::yseasx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 56. Error: (unknown) (@test_yseasmin.R#10)  ─────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::yseasmin("SIS", file.path(data_dir, "ex_yseas.nc"), file_out)
   2. cmsaf:::yseasx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  Error in R_nc4_create: Permission denied (creation mode was 4096)
  ── 57. Error: (unknown) (@test_yseassd.R#10)  ──────────────────────────────────
  Error in nc_create!
  Backtrace:
   1. cmsaf::yseassd("SIS", file.path(data_dir, "ex_yseas.nc"), file_out)
   2. cmsaf:::yseasx_wrapper(...)
   3. cmsaf:::write_output_file(...)
   4. ncdf4::nc_create(outfile, c(vars, grid_vars), force_v4 = force_v4)
  
  ══ 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