[R-pkg-devel] adding rPython as a suggested package
i.ucar86 at gmail.com
Fri Dec 1 14:31:12 CET 2017
2017-12-01 7:50 GMT+01:00 Slava Lyubchich <lyubchich at umces.edu>:
> I have a package on CRAN (funtimes) and I am trying to add a function
> that uses some Python code (only one function in the package needs
> Python, others do not). In order to do that, I
> 1) add in the DESCRIPTION
> Suggests: rPython
> 2) in the R function, use
> 3) put CRAD.py in the top folder of the package (together with
> DESCRIPTION and NAMESPACE).
> The automatic CRAN check returns it with notes:
> -- Package suggested but not available for checking: 'rPython'
rPython is not available for Windows. You can see "OS_type: unix" in
its DESCRIPTION. If you want to support Windows systems, take a look
at the reticulate package, which is another R interface to Python.
> -- Non-standard file/directory found at top level: 'CRAD.py'
Create an inst/ directory and put it there, as suggested in "1.1.7
Non-R scripts in packages" in the "Writing R Extensions" manual.
> Could you recommend how to fix that? Where should I move to the
> additional file with code?
> Best regards,
> V. Lyubchich
> Research Assistant Professor
> Chesapeake Biological Laboratory
> University of Maryland Center for Environmental Science
> [[alternative HTML version deleted]]
> R-package-devel at r-project.org mailing list
More information about the R-package-devel