jniedballa / camtrapR

R package for camera trap data management
https://jniedballa.github.io/camtrapR/
31 stars 5 forks source link

surveyReport: zip files won't be produced on some systems. #6

Closed jniedballa closed 4 years ago

jniedballa commented 4 years ago

if Sys.getenv("R_ZIPCMD") and Sys.getenv("zip") are both empty, R cannot create zip files. It will do so without warning at the moment.

Solutions: 1) Suggest R package "zip", with requireNamespace, with warning if nothing is available (preferred) 2) ``` installr::install.rtools()

  # To ensure you will get the zip file out, we can manually specify the path to...
  # The zip tool in your C drive like mine below:
  Sys.setenv(R_ZIPCMD= "C:/Rtools/bin/zip")
  # Check it again
  Sys.getenv("R_ZIPCMD")
  Sys.getenv("zip")

-> might be too much hassle for average user
jniedballa commented 4 years ago

included checks, support for package "zip" & proper message (2020-02-12)