mablab / sftrack

sftrack: Modern classes for tracking and movement data
https://mablab.org/sftrack/
Other
53 stars 2 forks source link

loading failed #38

Closed anniewlx1118 closed 2 years ago

anniewlx1118 commented 3 years ago

Error keeps coming up when loading sftrack after installation:

library(sftrack) Error: package or namespace load failed for ‘sftrack’ in library.dynam(lib, package, package.lib): DLL ‘units’ not found: maybe not installed for this architecture?

basille commented 3 years ago

Hi @anniewlx1118, thanks for reporting! Could you give us your system information so we can investigate? What's the output of:

sessionInfo()

Also, which version of sftrack did you install, and from where (CRAN or GitHub)? Thanks in advance!

anniewlx1118 commented 2 years ago

Hi Mathieu,

Apologies for the late reply. Here is the output when I load sftrack:

Error: package or namespace load failed for ‘sftrack’ in library.dynam(lib, package, package.lib): DLL ‘units’ not found: maybe not installed for this architecture?In addition: Warning message:package ‘sftrack’ was built under R version 4.0.5

The version installed is 0.5.3. [image: image.png] I'm still new to R so I'm not sure if I provided the right information. Please let me know if any other details are needed. Also, I'm wondering if the problem will be fixed if I reinstall R?

Thanks and regards, Lixian Wu

On Sat, Sep 18, 2021 at 2:09 AM Mathieu Basille @.***> wrote:

Hi @anniewlx1118 https://github.com/anniewlx1118, thanks for reporting! Could you give us your system information so we can investigate? What's the output of:

sessionInfo()

Also, which version of sftrack did you install, and from where (CRAN or GitHub)? Thanks in advance!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mablab/sftrack/issues/38#issuecomment-921915247, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATMDPVW7FYB6ILABWQZPKKDUCNR4LANCNFSM5ECL5QSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

anniewlx1118 commented 2 years ago

Hi Mathieu,

I guess the sessionInfo for sftrack that I installed is displayed as below:

R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale: [1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 [3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C [5] LC_TIME=English_Australia.1252

attached base packages: character(0)

other attached packages: [1] sftrack_0.5.3

loaded via a namespace (and not attached): [1] Rcpp_1.0.7 magrittr_2.0.1 hms_1.1.0 grDevices_4.0.2 [5] bit_4.0.4 tidyselect_1.1.1 munsell_0.5.0 colorspace_2.0-2 [9] lattice_0.20-41 R6_2.5.0 rlang_0.4.11 fansi_0.5.0 [13] blob_1.2.2 dplyr_1.0.7 RPostgres_1.3.3 tools_4.0.2 [17] utils_4.0.2 grid_4.0.2 data.table_1.14.0 gtable_0.3.0 [21] utf8_1.2.1 DBI_1.1.1 stats_4.0.2 ellipsis_0.3.2 [25] datasets_4.0.2 bit64_4.0.5 assertthat_0.2.1 tibble_3.1.2 [29] base_4.0.2 lifecycle_1.0.0 crayon_1.4.1 purrr_0.3.4 [33] ggplot2_3.3.5 graphics_4.0.2 vctrs_0.3.8 glue_1.4.2 [37] sp_1.4-5 compiler_4.0.2 pillar_1.6.2 methods_4.0.2 [41] generics_0.1.0 scales_1.1.1 pkgconfig_2.0.3

Regards, Lixian Wu

On Sat, Sep 18, 2021 at 2:09 AM Mathieu Basille @.***> wrote:

Hi @anniewlx1118 https://github.com/anniewlx1118, thanks for reporting! Could you give us your system information so we can investigate? What's the output of:

sessionInfo()

Also, which version of sftrack did you install, and from where (CRAN or GitHub)? Thanks in advance!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mablab/sftrack/issues/38#issuecomment-921915247, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATMDPVW7FYB6ILABWQZPKKDUCNR4LANCNFSM5ECL5QSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

basille commented 2 years ago

It seems that the issue comes from the units package (sftrack imports sf, which in turn imports units). Could you simply try:

library("units")

If the same error message appears, then the issue is with your install of units.

You can try to reinstall units (or install it if the automated install failed) with:

install.packages("units")

Please let me know how this goes.

basille commented 2 years ago

I'm closing this issue for lack of activity. Feel free to reopen with additional elements.