ctmm-initiative / ctmmweb

Web app for analyzing animal tracking data, built upon ctmm R package
http://biology.umd.edu/movement.html
GNU General Public License v3.0
30 stars 21 forks source link

No crs function #138

Closed yuxin321 closed 1 year ago

yuxin321 commented 1 year ago

I met a error. I imported my data (* csv: timestamp; lon; lat; ID). When calculating the home range, there is an error is displayed: no crs function. How to solve it. I would appreciate it if you could tell me.

chfleming commented 1 year ago

Hi @yuxin321 , have you tried updating all of your packages and starting in a fresh session with no other packages loaded? I had one other user report this error and it went away when they updated and restarted fresh.

chfleming commented 1 year ago

@yuxin321 if that doesn't solve the issue, then please send me a data example, and I will look into it.

yuxin321 commented 1 year ago

The issue has not been solved. I send a data example for you email. Thank you very much for the generous help!

chfleming commented 1 year ago

@yuxin321 I am not able to reproduce this error, and was able to estimate home ranges. Can you tell me exactly how to reproduce the error, starting in a fresh session with no objects or packages loaded?

xhdong-umd commented 1 year ago

This look like some package was not installed properly. How did you run the process, how did you install the packages (ctmmweb and ctmm)?

yuxin321 commented 1 year ago

Thank you for your answer. According to the following code in R studio.

install

if (!require("remotes")) install.packages("remotes") remotes::install_github("ctmm-initiative/ctmmweb")

run: ctmmweb

ctmmweb::app()

yuxin321 commented 1 year ago

@yuxin321 I am not able to reproduce this error, and was able to estimate home ranges. Can you tell me exactly how to reproduce the error, starting in a fresh session with no objects or packages loaded? Thank you for your reply. Here are my steps: 1)import my data 2)model selection 3)click "home range" and choose " in same grid..." and then the error was produced.

chfleming commented 1 year ago

Hi @yuxin321 , that is the usual procedure, but I am not able to reproduce the error.

Are you starting in a clean workspace with no objects loaded in the "Environment" panel of RStudio?

In RStudio Options : General : Basic

When you click "Tools" "Check for Package Updates", are your packages able to be updated without errors?

This is R version 4.2.1?

I don't think it will matter, but can you also try running:

remotes::install_github("ctmm-initiative/ctmm")

yuxin321 commented 1 year ago

Hi, @chfleming. The error is solved after I upgrade R version to 4.2.1 and reinstall and run ctmm. Thank you very much for the comments!