The canonical form [1] of an R package Makefile includes the
following:
- The first stanza includes R_PKGNAME, R_PKGVER, PKGREVISION (as
needed), and CATEGORIES.
- HOMEPAGE is not present but defined in math/R/Makefile.extension to
refer to the CRAN web page describing the package. Other relevant
web pages are often linked from there via the URL field.
This updates all current R packages to this form, which will make
regular updates _much_ easier, especially using pkgtools/R2pkg.
[1] http://mail-index.netbsd.org/tech-pkg/2019/08/02/msg021711.html
Each R package should include ../../math/R/Makefile.extension, which also
defines MASTER_SITES. Consequently, it is redundant for the individual
packages to do the same. Package-specific definitions also prevent
redefining MASTER_SITES in a single common place.
Changes:
- Added parse_all.call() method to use the original source for
evaluating call objects (because base::deparse() breaks non-ascii
source code).
Upstream changes:
Version 0.10
------------------------------------------------------------------------------
* Added option for the evaluate function to include timing information of ran
commands. This information will be subsequently rendered by the replay.
Example usage:
evaluate::replay(evaluate::evaluate('Sys.sleep(1)', include_timing = TRUE))
* Added a new function `flush_console()` to emulate `flush.console()` in
`evaluate()` (#61).
* Added a `inject_funs()` function to create functions in the environment passed
to the `envir` argument of `evaluate()`.
Upstream changes:
Version 0.9
------------------------------------------------------------------------------
* Added an argument `allow_error` to `parse_all()` to allow syntactical errors
in R source code when `allow_error = TRUE`; this means `evaluate(stop_on_error
= 0 or 1)` will no longer stop on syntactical errors but returns a list of
source code and the error object instead. This can be useful to show
syntactical errors for pedagogical purposes.
Upstream changes:
Version 0.8.3
------------------------------------------------------------------------------
* Added an argument `filename` to evaluate() and parse_all() (thanks,
@flying-sheep, #58).
Version 0.8
------------------------------------------------------------------------------
* Changed package license to MIT.
Version 0.7.2
------------------------------------------------------------------------------
* replay() fails to replay certain objects such as NULL (#53).
Version 0.7
------------------------------------------------------------------------------
* R 3.0.2 is the minimal required version for this package now.
Version 0.6
------------------------------------------------------------------------------
* Plots are no longer recorded when the current graphical device has been
changed, which may introduce issues like yihui/knitr#824.
* `parse_all()` can parse R code that contains multibyte characters correctly
now (#49, yihui/knitr#988)
Issues found with existing distfiles:
distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
distfiles/fortran-utils-1.1.tar.gz
distfiles/ivykis-0.39.tar.gz
distfiles/enum-1.11.tar.gz
distfiles/pvs-3.2-libraries.tgz
distfiles/pvs-3.2-linux.tgz
distfiles/pvs-3.2-solaris.tgz
distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.
Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden). All existing
SHA1 digests retained for now as an audit trail.
Parsing and evaluation tools that make it easy to recreate the command
line behaviour of R.
Note: this commit is part of reorganizing some of the recently
imported R packages, which are being reimported into more appropriate
categories (and removed from math) as a result of a recent discussion
on tech-pkg and privately with wiz@. See the thread starting with:
http://mail-index.netbsd.org/tech-pkg/2014/09/05/msg013558.html