You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dears,
I have to signal that SSDM seems unable to operate after updating to the latest version of R.
The problem might be due to something that clashes with how the function load_occ() internally works.
Here below I post what I get, no matter how I try to set up the .csv file containing the occurrences:
> load_occ(Env = Env, file = "occu.csv", Xcol = "Longitude", Ycol = "Latitude", Spcol = "species")
Occurrences loading
Error in xtfrm.data.frame(x) : not possible xtfrm the data frame
Please note that the above written "occu.csv" is the saved "Occurrences" object provided by default in SSDM, so it must be forcefully complying with the csv setting requirements (which however are very flexible).
Unfortunately I am not able to fully understand the point where the native code of load_occ() recalls xtfrm and crashes. I notice that it uses read.csv2() to upload the file, but then I have not enough knowledge of R to spot where and how it handles it as a dataframe.
Thank you for any suggestions you may have in addressing this issue.
The text was updated successfully, but these errors were encountered:
Dear Sylvain,
Thank you very much for your answer, and please excuse me for the excessively alarming title. In the end, I was able to understand the issue: the specification of the separator is basically mandatory, simply because the function uses read.csv2() to load the csv file so it made an assumption (sep = ; ) that was not in line with the format of my .csv list. Here's the fixed script:
Dears,
I have to signal that SSDM seems unable to operate after updating to the latest version of R.
The problem might be due to something that clashes with how the function load_occ() internally works.
Here below I post what I get, no matter how I try to set up the .csv file containing the occurrences:
Please note that the above written "occu.csv" is the saved "Occurrences" object provided by default in SSDM, so it must be forcefully complying with the csv setting requirements (which however are very flexible).
Unfortunately I am not able to fully understand the point where the native code of load_occ() recalls xtfrm and crashes. I notice that it uses read.csv2() to upload the file, but then I have not enough knowledge of R to spot where and how it handles it as a dataframe.
Thank you for any suggestions you may have in addressing this issue.
The text was updated successfully, but these errors were encountered: