moveVis icon indicating copy to clipboard operation
moveVis copied to clipboard

namespace:terra issue

Open andrewdigby opened this issue 2 years ago • 0 comments

When running the example from df2move I get the error:

Error: 'same.crs' is not an exported object from 'namespace:terra'

I've installed moveVis from tarball since I'm running an older version R and can't change that (locked-down computer).

Any suggestions would be much appreciated!

Thanks.

> library(moveVis)
> library(move)
> 
> # load the example data and convert them into a data.frame
> data("move_data")
> move_df <- methods::as(move_data, "data.frame")
> 
> # use df2move to convert the data.frame into a moveStack
> df2move(move_df,
+         proj = "+init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0", 
+         x = "coords.x1", y = "coords.x2", time = "timestamps", track_id = "trackId")
Error: 'same.crs' is not an exported object from 'namespace:terra'
> sessionInfo()
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=English_New Zealand.utf8  LC_CTYPE=English_New Zealand.utf8    LC_MONETARY=English_New Zealand.utf8 LC_NUMERIC=C                        
[5] LC_TIME=English_New Zealand.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] move_4.2.4       raster_3.6-14    sp_1.6-0         geosphere_1.5-18 moveVis_0.10.5  

loaded via a namespace (and not attached):
 [1] httr_1.4.4          tidyr_1.3.0         jsonlite_1.8.0      highr_0.9           yaml_2.3.5          pillar_1.9.0        lattice_0.20-45     glue_1.6.2         
 [9] digest_0.6.29       colorspace_2.0-3    cowplot_1.1.1       htmltools_0.5.3     plyr_1.8.7          slippymath_0.3.1    pkgconfig_2.0.3     ggspatial_1.1.9    
[17] gifski_1.12.0-2     magick_2.8.0        purrr_1.0.2         scales_1.2.1        terra_1.7-3         jpeg_0.1-10         ggmap_3.0.2         tibble_3.2.1       
[25] proxy_0.4-27        aws.s3_0.3.21       generics_0.1.3      ggplot2_3.4.3       lemon_0.4.5         cachem_1.0.6        pbapply_1.7-2       cli_3.6.1          
[33] magrittr_2.0.3      memoise_2.0.1       evaluate_0.16       fansi_1.0.3         xml2_1.3.3          lwgeom_0.2-13       class_7.3-21        av_0.8.6           
[41] tools_4.2.2         RgoogleMaps_1.4.5.3 lifecycle_1.0.3     stringr_1.4.1       duskyAnalysis_1.27  munsell_0.5.0       writexl_1.4.2       compiler_4.2.2     
[49] e1071_1.7-13        rlang_1.1.1         classInt_0.4-8      units_0.8-1         grid_4.2.2          rstudioapi_0.14     aws.signature_0.6.0 bitops_1.0-7       
[57] base64enc_0.1-3     rmarkdown_2.20      proj4_1.0-12        gtable_0.3.0        codetools_0.2-19    DBI_1.1.3           curl_4.3.2          R6_2.5.1           
[65] gridExtra_2.3       lubridate_1.8.0     knitr_1.40          dplyr_1.1.3         rgdal_1.6-4         fastmap_1.1.0       utf8_1.2.2          KernSmooth_2.23-20 
[73] stringi_1.7.8       parallel_4.2.2      Rcpp_1.0.9          vctrs_0.6.3         sf_1.0-14           png_0.1-8           tidyselect_1.2.0    xfun_0.37  

andrewdigby avatar Oct 18 '23 02:10 andrewdigby