[R-pkg-devel] Submitting to CRAN a package depending on RGtk2
On 19/10/2016 5:24 PM, Lorenzo Busetto wrote:
Hi Dirk, thanks for the answer. Yes, I know that that does the trick. In fact, in our github README we have the following intructions: "Install the following required dependencies: Cairo >= 1.0.0, ATK >= 1.10.0, Pango >= 1.10.0, GTK+ >= 2.8.0, GLib >= 2.8.0 (required by package RGtk2) Curl (required by package curl) GDAL >= 1.6.3, PROJ.4 >= 4.4.9 (required by package rgdal)
In your DESCRIPTION file, skip the indirect dependencies. Your package just needs to say it depends on RGtk2, curl, and rgdal (unless it also needs to link to those libs). It is a good idea to give detailed instructions in a README file in the package though.
On Debian and Ubuntu-based systems, to install those packages open a terminal and type sudo apt-get install r-cran-cairodevice r-cran-rgtk2 libcurl4-openssl-dev libgdal-dev libproj-dev " One of my questions here (maybe dumb), is how/where I should specify those dependencies when submitting to CRAN.
As Dirk said, SystemRequirements:, but only for the direct dependencies. List the R packages in Depends, Imports, etc.
Is putting intructions like these in the readme of the package sufficient, or do I need to do something else ? That's what I was asking as first point of the "Linux" part of the previous post (sorry if it was not clear).
Try to give instructions for all 3 major platforms (and maybe a few variations within each): Linux, Windows, OS X. If you can, add Solaris: once you're accepted onto CRAN, you'll be tested there as well. Duncan Murdoch
Lorenzo On 19 October 2016 at 22:36, Dirk Eddelbuettel <edd at debian.org> wrote:
For this subproblem: On 19 October 2016 at 22:14, Lorenzo Busetto wrote: | On Linux builds, the problem is related but a bit different. | | 1. First of all, package "RGTk2" requires some external libraries to yu can just install r-cran-rgtk2 on your (Debian or Ubuntu) system and you should be good. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel