Error with reading the database #305
-
hi,
Can you please help. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @Maxmkmk! Thanks for reaching us. I will make an issue of this. I think I know the reason of this bug. We don't define column types explicitly and it seems that we are trying to join internally a dataframe where I will try to check this asap. Please, also notice that this behavior is very likely due to the down-conversion to 0.1.6 camtraptor is performing while reading camtrapdp packages. To read camtrap DPs as they are (version 1.0) you can use camtrapdp package and its function: In the meantime, we are working to remove |
Beta Was this translation helpful? Give feedback.
-
Thank you. I was able to pull the database with this command However, thereafter I receive the same error related to the location
|
Beta Was this translation helpful? Give feedback.
-
Hi @Maxmkmk. No, I don't think the OS (Ubuntuà is the origin of the problem. It would be great if you could share the Camtrap Data Package causing the issue. I will not share it with nobody and I will delete it after solving the issue. Mail to: [email protected]. |
Beta Was this translation helpful? Give feedback.
-
Hi @Maxmkmk! Sorry for making you wait so long. I downloaded your package and tried to import your camtrap Data Package and it works smoothly! library(camtraptor)
# change path where needed
path_to_json <- "../../2023_data/datapackage.json"
ctdp <- read_camtrap_dp(file = path_to_json)
The dataset uses Camtrap DP version 1.0, it has been converted to 0.1.6.
See https://inbo.github.io/camtraptor/#camtrap-dp for details. While better reading your code in your very first post, I noticed that you are using another function, probably from another package: Notice that if you don't want to downconvert to Camtrap Data Package version 0.1.6, you can use the new camtrapdp package, which reads Agouti packages with version 1.0: library(camtrapdp)
# change path where needed
path_to_json <- "../../2023_data/datapackage.json"
ctdp_new_version <- camtrapdp::read_camtrapdp(file = path_to_json)
version(ctdp_new_version)
[1] "1.0" As I told you, we are working to refactor all camtraptor functions to support camtrap DPs version 1.0 as read using camtrapdp package. |
Beta Was this translation helpful? Give feedback.
Hi @Maxmkmk! Sorry for making you wait so long. I downloaded your package and tried to import your camtrap Data Package and it works smoothly!
Here below what I get:
While better reading your code in your very first post, I noticed that you are using another function, probably from another package:
read_camtrapDP()
.Notice that if you don't want to downconvert to Camt…