vijaybarve / iNaturalist

R package
2 stars 1 forks source link

Error in sample code #3

Closed vijaybarve closed 4 years ago

vijaybarve commented 4 years ago
> # Get some iNaturalist data for a user
> inatdata <- get_inat_obs_user("vijaybarve", maxresults = 15)
> downlaod_inat_images(inatdata,size="medium", outpath=".\\test\\", img_format=myfmt,
+                      firstonly=TRUE,verbose=TRUE)

 40217761Error in file(con, "wb") : cannot open the connection
In addition: Warning message:
In file(con, "wb") :
  cannot open file '.\test\40217761 Osteopilus septentrionalis 2020-03-18.jpg': No such file or directory
vijaybarve commented 4 years ago

Looks like absence of file folder is causing this error. Need to check presence of folder in the function itself.