Open andrew-edwards opened 1 year ago
Okay, I think data
just can't get printed simply (as it's a list, though they usually can be). The actual error when running the vignette comes further down, in chunk choosing-pistar
:
label: choosing-pistar (with options)
List of 4
$ cache : logi FALSE
$ warning: logi FALSE
$ message: logi FALSE
$ eval : logi TRUE
Quitting from lines 898-1097 (Case_Study_Analysis_Standalone_After_Revisions.Rmd)
Error in `vec_size()`:
! `x` must be a vector, not a <sfc_POINT/sfc> object.
Backtrace:
1. Reduced_data_sp %>% filter(year >= 1998)
11. vctrs:::stop_scalar_type(`<fn>`(`<sf_POINT>`), "x", `<fn>`(vec_size()))
12. vctrs:::stop_vctrs(...)
Hard to tell exactly where (as a big chunk) without more detective work....
Seems to be an issue with your sf package version: see https://github.com/r-spatial/sf/issues/1387
From my base R:
ylab=expression( paste("Log (prop. of ", values >= italic(x), ")")),
mgp=mgpVals)
In case someone else needs this info, I needed to set sf::sf_use_s2(FALSE)
to avoid this error.
Specifically, checking I can run
Case_Study_Analysis_Standalone_After_Revisions.Rmd
vignette (to check if I can tweak axis labels regarding> \phatpistar
). But it can't read in the data:Checking the error: