Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(foieGras)
  > 
  > test_check("foieGras")
  
  prefiltering data...
  proj_create: init=epsg:/init=IGNF: syntax not supported in non-PROJ4 emulation mode
  OGR: Corrupt data
  ── 1. Error: (unknown) (@test-fit_ssm.R#13)  ───────────────────────────────────
  OGR error
  1: fit_ssm(dkf, model = "crw", time.step = 24) at testthat/test-fit_ssm.R:13
  2: d %>% group_by(id) %>% do(pf = prefilter(., vmax = vmax, ang = ang, distlim = distlim, 
         spdf = spdf, min.dt = min.dt))
  3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: eval(quote(`_fseq`(`_lhs`)), env, env)
  6: `_fseq`(`_lhs`)
  7: freduce(value, `_function_list`)
  8: withVisible(function_list[[k]](value))
  9: function_list[[k]](value)
  10: do(., pf = prefilter(., vmax = vmax, ang = ang, distlim = distlim, spdf = spdf, min.dt = min.dt))
  ...
  18: `_fseq`(`_lhs`)
  19: freduce(value, `_function_list`)
  20: withVisible(function_list[[k]](value))
  21: function_list[[k]](value)
  22: st_transform(., crs = prj)
  23: st_transform.sf(., crs = prj)
  24: st_transform(st_geometry(x), crs, ...)
  25: st_transform.sfc(st_geometry(x), crs, ...)
  26: structure(CPL_transform(x, crs$proj4string), single_type = NULL, crs = crs)
  27: CPL_transform(x, crs$proj4string)
  
  
  prefiltering data...
  proj_create: init=epsg:/init=IGNF: syntax not supported in non-PROJ4 emulation mode
  OGR: Corrupt data
  ── 2. Error: (unknown) (@test-grab.R#6)  ───────────────────────────────────────
  OGR error
  1: fit_ssm(dkf, model = "crw", time.step = 24) at testthat/test-grab.R:6
  2: d %>% group_by(id) %>% do(pf = prefilter(., vmax = vmax, ang = ang, distlim = distlim, 
         spdf = spdf, min.dt = min.dt))
  3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: eval(quote(`_fseq`(`_lhs`)), env, env)
  6: `_fseq`(`_lhs`)
  7: freduce(value, `_function_list`)
  8: withVisible(function_list[[k]](value))
  9: function_list[[k]](value)
  10: do(., pf = prefilter(., vmax = vmax, ang = ang, distlim = distlim, spdf = spdf, min.dt = min.dt))
  ...
  18: `_fseq`(`_lhs`)
  19: freduce(value, `_function_list`)
  20: withVisible(function_list[[k]](value))
  21: function_list[[k]](value)
  22: st_transform(., crs = prj)
  23: st_transform.sf(., crs = prj)
  24: st_transform(st_geometry(x), crs, ...)
  25: st_transform.sfc(st_geometry(x), crs, ...)
  26: structure(CPL_transform(x, crs$proj4string), single_type = NULL, crs = crs)
  27: CPL_transform(x, crs$proj4string)
  
  
  prefiltering data...
  proj_create: init=epsg:/init=IGNF: syntax not supported in non-PROJ4 emulation mode
  OGR: Corrupt data
  ── 3. Error: (unknown) (@test-plot.R#6)  ───────────────────────────────────────
  OGR error
  1: fit_ssm(dkf, model = "crw", time.step = 24) at testthat/test-plot.R:6
  2: d %>% group_by(id) %>% do(pf = prefilter(., vmax = vmax, ang = ang, distlim = distlim, 
         spdf = spdf, min.dt = min.dt))
  3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: eval(quote(`_fseq`(`_lhs`)), env, env)
  6: `_fseq`(`_lhs`)
  7: freduce(value, `_function_list`)
  8: withVisible(function_list[[k]](value))
  9: function_list[[k]](value)
  10: do(., pf = prefilter(., vmax = vmax, ang = ang, distlim = distlim, spdf = spdf, min.dt = min.dt))
  ...
  18: `_fseq`(`_lhs`)
  19: freduce(value, `_function_list`)
  20: withVisible(function_list[[k]](value))
  21: function_list[[k]](value)
  22: st_transform(., crs = prj)
  23: st_transform.sf(., crs = prj)
  24: st_transform(st_geometry(x), crs, ...)
  25: st_transform.sfc(st_geometry(x), crs, ...)
  26: structure(CPL_transform(x, crs$proj4string), single_type = NULL, crs = crs)
  27: CPL_transform(x, crs$proj4string)
  
  proj_create: init=epsg:/init=IGNF: syntax not supported in non-PROJ4 emulation mode
  OGR: Corrupt data
  ── 4. Error: (unknown) (@test-prefilter.R#24)  ─────────────────────────────────
  OGR error
  1: sf::st_transform(ellie_sf, crs = "+init=epsg:3031 + units=m") at testthat/test-prefilter.R:24
  2: st_transform.sf(ellie_sf, crs = "+init=epsg:3031 + units=m")
  3: st_transform(st_geometry(x), crs, ...)
  4: st_transform.sfc(st_geometry(x), crs, ...)
  5: structure(CPL_transform(x, crs$proj4string), single_type = NULL, crs = crs)
  6: CPL_transform(x, crs$proj4string)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 4 | SKIPPED: 0 | WARNINGS: 4 | FAILED: 4 ]
  1. Error: (unknown) (@test-fit_ssm.R#13) 
  2. Error: (unknown) (@test-grab.R#6) 
  3. Error: (unknown) (@test-plot.R#6) 
  4. Error: (unknown) (@test-prefilter.R#24) 
  
  Error: testthat unit tests failed
  Execution halted