1 One of the key data structures using by cran2deb is commonly called 'pkg'.
2 It is constructed in R/getrpkg.R by prepare_pkg. prepare_pkg obtains
3 an R package and converts the source package into something suitable for use
6 If a particular upstream version has already been used to create a Debian
7 package, then the source tarball of that upstream version is expected to be
8 available locally, and is used for building. In this case no conversion is
9 performed, so the archive does not change. In future it may be desirable to
10 obtain the source tarball from some central archive but this is not done at the
13 download_pkg in R/getrpkg.R obtains the tarball (archive) of the R package, either
14 from the previous Debian build, or from the R archive. The field pkg$need_repack
15 indicates if the obtained archive must be repacked into a form acceptable
16 as a Debian source archive. This repacking, if necessary, is performed by
17 repack_pkg in R/getrpkg.R
20 Most of the creation of pkg is done by R/getrpkg.R. However some more build
21 specific operations (such as determining the new build version pkg$debversion)
22 are performed by R/debianpkg.R.