Closed dfalbel closed 3 years ago
You should avoid running tests and vignettes on CRAN. Since torch installs additional software, this won't be allowed in the CRAN machines.
Also sometimes, CRAN will say that you can't have \dontrun in all examples. You can use if(torch_is_installed()) to run the examples conditionally.
\dontrun
if(torch_is_installed())
Thank you very much!
You should avoid running tests and vignettes on CRAN. Since torch installs additional software, this won't be allowed in the CRAN machines.
Also sometimes, CRAN will say that you can't have
\dontrun
in all examples. You can useif(torch_is_installed())
to run the examples conditionally.