Closed basille closed 4 years ago
After our previous discussions on this and looking into it further as I cant reproduce it. I couldn't really prove anything without me reinstalling R as 3.3.3 on my system. I definitely agree its likely some change around 3.4 as no other users above that seem to be having an issue.
The code 'snags' during check_NA_burst, but only when constructing a burst from an ltraj. The problem comes down to that your R believes it can't convert our character vector to a factor without it becoming malformed, which it does automatically when unlisting the burst list at that stage. However, your R never snagged check_NA_burst while building an as_sftrack.data.frame. And theres nothing overly amiss in the code. I suspect theres just some attribute thats getting held over in the character vector from R <3.4 that wont allow it to auto convert. But I can't prove what it is.
I remade the check_NA_burst to contain a vapply (instead of unlist) which should bypass the requirement to convert anything to a factor. Let me know if this hotfix worked. This is an equally if not more efficient operation than the unlist anyway.
We'll keep this in mind and let me know if it ever snags again on 3.3.3.
Thanks for tracking it down! I remember now it has something to do with factors, and how they changed around 3.4…
The fix did the work: I could install the master
branch with vignettes (with the code above), and all 5 vignettes now show properly. Thanks!
Installing with
remotes
with vignettes throws an error:Simple install without vignettes runs fine (
remotes::install_github("mablab/sftrack")
).Session info: