Re: [R-pkg-devel] Problem with package using reticulate (and Config in DESCRIPTION)

2020-01-10 Thread Kevin Ushey
Note that by calling py_module_available() in your .onLoad(), as done here: https://github.com/r-cas/caracas/blob/418b3a552de0203c3d2f960f0e4235f7891db71d/R/init.R#L51 you are forcing reticulate to initialize the Python session eagerly when your package is loaded (so before the user might've had

Re: [R-pkg-devel] Problem with package using reticulate (and Config in DESCRIPTION)

2020-01-10 Thread Mikkel Meyer Andersen
I finally got this to work by removing the Config part of DESCRIPTION and reverting back to functionality inside .onLoad(). Please see code that does not trigger any warnings/errors here: https://github.com/r-cas/caracas/tree/418b3a552de0203c3d2f960f0e4235f7891db71d Cheers, Mikkel. tor, 09 01 20

[R-pkg-devel] Problem with package using reticulate (and Config in DESCRIPTION)

2020-01-09 Thread Mikkel Meyer Andersen
Hello, I have submitted a package (source at https://github.com/r-cas/caracas) depending on reticulate to CRAN and it failed: package caracas_0.0.1.tar.gz does not pass the incoming checks automatically, please see the following pre-tests: Windows: < https://win-builder.r-project.org/incoming_pre