The NetBSD Project

CVS log for pkgsrc/math/R/PLIST

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / math / R

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Jun 27 10:59:23 2026 UTC (4 months, 2 weeks ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, HEAD
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +1 -1 lines
(math/R) Updated 4.6.0 to 4.6.1, build with clang (21.1.18) may be OK for now.

Changes in R 4.6.1:

  New Features:

         * The LaTeX class 'jss' bundled in
           'share/texmf/tex/latex/jss.cls' has been updated to work
           with 'hyperref' version 7.01q (2026/04/24).

         * Plain-text (and legacy HTML) conversion for a simple Rd
           \eqn{} now handles \geq, \leq, \neq and \ne in addition to
           \ge and \le (PR#19070).

  Bug Fixes:

         * 'abbreviate(<non-ASCII>)' now works better, using
           'iswlower()' and '*upper()' to treat "wide" characters,
           thanks to Kevin's PR#19058.

         * 'cut(1:11, {})' now signals an error for the invalid
           'breaks', fixing PR#19057, thanks to Kevin Ushey.

         * 'all(<symbol>)' signals an error now, as some similar
           coercions; previously, the coercion of the symbol resulted
           in 'NULL' internally, raised a warning, and could access
           illegal memory; thanks to Kevin Ushey's PR#19054.

         * 'stl()' now checks its 3 x 3 tuning parameters on the R
           level; 'stl(*, s.window = 0)' now "works" instead dumping
           core, 'stl(*, s.window = 1)' "works" correctly, too.  Also,
           the 'summary()' method mentions the robustness 'weights'
           only if any robustness iterations happened.

           Further, 'stl()' is now based on C code, translated from
           previous Fortran, triggered by a flang 22 compiler
           optimization bug ('-O2').

         * The border case 'zapsmall(x, digits=Inf)' where 'x' contains
           an 'Inf' entry no longer returns all 'NaN' but rather 'x'.
           The improved help page now has more non-default examples.

         * 'wilcox.test(x, exact=FALSE, correct = k)''s p-value
           computation got a missing 'dnorm(z)' factor, and so did the
           2-sample case, in addition to more fixes.

         * The data part of 'getGenerics()' listed package names for
           generic functions defined in more than one package.  Now it
           lists generic function names, as intended.  Thanks to
           Michael Chirico for report and patch proposal (PR#19080).

         * Overly long 'dyn.load()' error messages (C level
           'dlerror()'), should no longer corrupt its state, thanks to
           Ivan Krylov's PR#19029 report and patch.

         * 'as.matrix(<POSIXlt>)' again produces a _numeric_ matrix,
           and the 'c()' and subassignment methods for 'POSIXlt'
           objects work correctly more often, e.g., without a '"tzone"'
           attribute, back porting a few of the PR#18989 fixes from
           R-devel, both thanks to Suharto Anggono.

         * In 'methods', 'as()' now correctly coerces S4 objects to S4
           superclasses extending old-style classes, instead of
           returning only the S3 part.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon May 18 13:35:43 2026 UTC (5 months, 4 weeks ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3 lines
R: fix PLIST for Darwin

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu May 14 13:50:46 2026 UTC (6 months ago) by mef
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +29 -6 lines
(math/R) Updated 4.5.3 to 4.6.0

Changes in R 4.6.0:

  Significant User-Visible Changes:

    * The R citation now provides a DOI (10.32614/R.manuals): please
      update your bibliographies accordingly.

    * The default C++ standard has been changed to C++20 where
      available (which it is on all known platforms from 2021 on): if
      not C++17 is used if available otherwise C++ is not supported (as
      before).

      (GCC 16 has also switched to C++20 as its default.)

      Packages can request C++17 if essential.

    * The Sweave driver Rtangle no longer puts empty lines at the end
      of tangled scripts.

  New Features:

    * The default AIC and BIC methods now check whether the methods
      namespace is loaded rather than stats4. They still use
      stats4::logLik (and stats4::nobs), but packages no longer need to
      load stats4 explicitly.

    * confint.default() now also works on S4 objects, as long as
      suitable coef() and vcov() methods exist.

    * binomial(identity) and quasibinomial(identity) now work without
      having to quote the argument.

    * str() now shows more via format() for external pointers.

    * terms(<formula>, specials = *) now treats non-syntactic specials
      more gracefully, thanks to Mikael Jagan's PR#18568.

    * help.start() gets a lib.loc option and its default for
      make.packages.html() is enhanced to allow, e.g., fast access to
      .Library when that contains only base and recommended packages.

    * In *.Rd help files, the \linkS4class macro now also works for
      links to other packages via \linkS4class[<pkg>]{<myClass>}, much
      nicer than the "workaround"
      \link[<pkg>:<myClass>-class]{<myClass>} necessary in earlier
      versions of R.

      Packages with the new syntax need to formally depend on R >=
      4.6.0.

    * tools::analyze_license() now also computes SPDX license
      identifiers, thanks to Thierry Onkelinx and LLuís Revilla.

    * read.dcf() now recognizes lines starting with # as comment lines.
      By Dirk Eddelbuettel, Laurent Gatto and Hugo Gruson.

    * tcltk::tclVersion() now only optionally includes the 'patch
      level', as Tcl full versions can be of the form 8.7a5 or 9.0b1
      without three clear components.

    * untar(tar = "internal") supports extras = "-P" to use unchanged
      the recorded file paths (as many external tar programs do).

    * extSoftVersion()[["zstd"]] now reports the version of the zstd
      compression library if available, thanks to Trevor Davis' patch
      proposal in PR#18914.

    * New logical option() quiet, defaulting to false, set to TRUE by
      R's command-line option --quiet (and similar), now can be
      switched during an R session.  Prompted by Dirk Eddelbuettel's
      proposal in PR#18913.

    * Credentials for basic HTTP authentication with download method
      "libcurl" can now be provided in a netrc file.  The path to the
      file can be specified in options("netrc").

    * tools::deparseLatex() gains a math argument, now used by the
      default bibstyle to format bibentry() fields with $...$ syntax
      via Rd \eqn markup.

    * gzcon() can now decompress a concatenation of compressed streams
      PR#18887.

    * Bibliographic citations and references in Rd files can now be
      auto-generated from bibentries in bibliographic databases in R or
      BibTeX formats.  See
      RShowDoc("R-exts#Bibliographic-citations-and-references") for
      more information.

    * Arguments to loadNamespace() which will be ignored because the
      namespace is already loaded are now noted.

    * chkDots()' optional argument allowed has been implemented thanks
      to Trevor Davis' proposal in PR#18936.

    * New function messageCondition() to create structured "message"
      objects analogous to warningCondition() and errorCondition()
      (PR#18940, by Trevor Davis).

    * wilcox.test() can now perform exact (conditional) inference in
      case of ties.  Based on contributions by Torsten Hothorn.

    * wilcox.test() can now optionally compute improved asymptotic
      p-values by including up to 3 correction terms of the Edgeworth
      series for the normal approximation.

    * barplot(.., orderH = *) for stacked bar plots allows to sort the
      stacks each according to size.

    * New argument panel.first for hist() (via plot.histogram()),
      barplot(), bxp(), and hence implicitly boxplot().  All except the
      former also gain a new panel.last.  Suggested by Marieke Stolte
      and Julian Welz.

    * plot.default() gets a new switch lim2 to indicate that the
      default xlim and ylim range computations only use _jointly_
      finite x- and y-values; indirectly suggested in PR#7986 by Jincai
      Jiang.

    * Rman.css, the stylesheet for the texi2any-generated HTML versions
      of the R manuals, was improved following joint efforts at the 'R
      Dev Days' of useR! 2024 and RSECon25.

    * New system Rd macro \manual{<name>}{<node>} to refer to a
      specific section _etc_ (possibly empty, for Top) of one of the R
      manuals (e.g., R-exts).

    * list.files() now has optional argument fixed to allow literal
      pattern matching.  Suggested and implemented by Duncan Murdoch in
      PR#18925.

    * substring(txt, i1, i2), substr(..) and their replacement versions
      now accept i2 = NULL to mean "to the end_of_string", thus
      fulfilling Kevin Ushey (and others') suggestions in PR#18851.

    * The default method for pretty() gets a new switch bounds for
      completeness, corresponding to .pretty().  Also, it now catches
      typos such as eps.corrected = 2, noted in PR#18521 by Mikko
      Korpela.

    * Plain-text help now renders Rd \describe lists using line breaks
      after item labels.  Set tools::Rd2txt_options(descStyle=NULL) to
      get the old behaviour with a simple space; a "colon" variant is
      also available.

    * x %notin% table newly in base is an idiom for !(x %in% table) and
      provided almost entirely for convenience and code readability,
      from an R-devel suggestion, after many years of private
      definitions mostly hidden in packages, including in R's tools
      package.

    * The default method of sequence() gets a new option recycle to
      swap between current (not fully recycling) and future behaviour
      where all three of (nvec, from, by) are jointly recycled.

    * ftable()s default method and the as.table() method for "ftable"s
      get a perm argument with back compatible default.  The as.table()
      method also gets a named.dim = FALSE switch, no longer creating a
      named dim(<result>) by default.

    * match.arg() gets a new option several.ok = "all", fulfilling the
      wish of Jim Hester in PR#16659.

    * provideDimnames() gets new switch use.names, as proposed
      including patch by Mikael Jagan, in PR#18975.

    * The default summary() is more informative for character vectors,
      optionally resorting to the factor method via the new argument
      character.method = "factor", e.g., when summarizing a data frame
      (PR#16750).

      It also provides more useful summaries for complex vectors, with
      polar determining if polar or cartesian coordinates are more
      relevant; mostly based on a proposal by Mikael Jagan.

    * Error messages from failed Rd \Sexpr code now include the call
      from the original condition (if available).  Warning messages now
      include Rd source locations.

    * When the environment variable R_WARN_BOUNDS_OPT is set to "yes",
      options(warn = val) will check if val is inside -1:2; this may
      happen unconditionally in the future.

    * weighted.residuals() now returns weighted working residuals for
      "glm" objects. It used to return deviance residuals, but these do
      not give the one-step approximated dfbeta values, as pointed out
      by Ravi Varadhan. influence.glm() has been amended so that it now
      returns an object with both a "wt.res" and a "dev.res" element.

    * Several influence measures for "glm" objects have been updated to
      use Pearson residuals rather than deviance residuals (the latter
      are not unbiased) and to not use leave-one-out estimates of
      dispersion in models with fixed dispersion. Thanks to Ravi
      Varadhan for discussions and testing of these updates.

    * R now supports custom binary types which are of the form
      "<system>.binary.<build>" where <system> is lower-case name
      (letters only) of the system and <build> is the name of the build
      (alphanumeric and dashes). The corresponding paths returned by
      contrib.url (which govern the repository layout) with the above
      type= have the form bin/<system>/<build>/contrib/<x.y> where
      <x.y> is the R version without patch level. This is a
      generalisation of the binary types previously supported on macOS.
      In addition, binary packages can have the extensions .tar.bz2,
      .tar.xz, .tar.zst and .tar.zstd with the corresponding
      compression support.

    * The value of .Platform$pkgType which defines the native binary
      type for the current build of R can be overridden with
      R_PLATFORM_PKGTYPE environment variable (previously this was only
      set by the macOS builds of R). This should be typically only done
      by the author of a binary R distribution to define the type of
      binaries supported by that build of R.

    * If R uses custom binary type in its .Platform$pkgType then R CMD
      INSTALL --build will produce
      <package>_<ver>_R_<system>-<build>.tar.xz binary files. Please
      note that future versions may use .zstd compression by default so
      package tooling should support any of the above mentioned
      extensions.

    * New facilities have been introduced for package integrity
      verification and package signing. The optional file SHA256 in a
      package contains SHA-256 hashes, lengths and paths of files
      provided in the package allowing for more reliable integrity
      verification (relative to MD5). This file is now generated by
      default in R CMD INSTALL --build and optionally via R CMD build
      --sha256. A package can be signed by creating a detached GnuPG
      signature file SHA256.sig signing the entirety of the SHA256
      file. Upon installation, the signature is verified using GnuPG,
      thus ensuring the integrity of the SHA256 file and by induction
      all files in the package.  Both source and binary packages can be
      signed. Currently, this only applies to tar-based packages, and
      the command-line GnuPG gpg tool (or equivalent tool named in the
      GPG environment variable) has to be available for signing and
      verification to work. R CMD INSTALL --sign can be used to sign
      binary packages, including its use with --build.  System-wide
      GnuPG keyrings for the R installation can be placed in
      <R_HOME>/etc/keyrings as files with .gpg extensions and will be
      checked first before consulting user's GnuPG keyring (if
      present).

    * Experimentally, several math library (math.h) functions, such as
      exp(.), log1p(), sin(), atanh(), when called from R, are now
      ensured to give fully accurate results in a small neighbourhood
      of special values, such as exp(0) == 1, log1p(0) == 0, etc.  This
      makes R slightly less platform dependent for these functions,
      notably on platforms with less accurate system math libraries,
      see also
      <https://blog.r-project.org/2026/01/30/debugging-sensitivity-to-c-math-library-on-linux/>.

    * Function free1way() implementing semiparametrically efficient
      inference procedures (likelihood- and permutation-based) in
      distribution-free stratified K-sample one-way layouts was added
      to the stats package.  Approximate (via power.free1way.test())
      and simulation-based (utilising rfree1way() for random number
      generation) power-assessment and sample-size planning as well as
      model diagnostics (available from a plot method and
      probability-probability plots in ppplot()) complement the
      functionality.  Provided by Torsten Hothorn.

    * plot.data.frame() now supports a formula argument.

    * New Rd macro \linkS4methods{}, e.g., for easier linking to method
      docs in other packages, proposed and coded by Mikael Jagan in
      PR#18998.

    * Class "difftime" is now also among the S4 "OldClasses".

    * New function bitstring() as a user-friendly wrapper around
      intToBits(), etc.

    * plot.lm() now omits the smoother in the residuals vs leverage
      plot. This never made much sense, but if you really want it, you
      can force the old behaviour by setting panel.raw=panel.smooth.

    * hatvalues() now has a method for nls (nonlinear model) results,
      prompted by the proposal of Patrice Kiener and Heather Turner in
      PR#18897.

    * The Sweave driver RweaveLatex now allows the value of logical and
      numerical chunk options (only) to be the name of an object
      defined in earlier, evaluated code chunks. This is useful to pass
      computed values to options. For options set this way for weaving
      purposes, the Rtangle driver rather uses their default values,
      with a warning.  By Vincent Goulet.

    * The Sweave driver RweaveLatex gains an option to include
      unparsable R code or arbitrary text in code chunks. Chunks marked
      as ignore.on.weave = TRUE are completely ignored on weaving,
      i.e., not even parsed. The chunks however remain written out
      verbatim on tangling.

      Similarly, the driver Rtangle gains an option to control the
      extraction of code chunks. Chunks marked as ignore.on.tangle=TRUE
      are processed as usual on weaving, but left out of the tangled
      scripts (or thrown away when split=TRUE).

      The drivers also support the shorter aliases weave for
      !ignore.on.weave, and tangle for !ignore.on.tangle. A further
      option ignore, available for both drivers, sets ignore.on.weave
      and ignore.on.tangle at once.

      By Vincent Goulet.

    * The Sweave driver Rtangle now provides an option chunk.sep to
      control the separator between code chunks in tangled scripts
      (with an unchanged default of \n\n).  Using check.sep=FALSE omits
      the separator (between two chunks when used as a chunk option).
      By Vincent Goulet.

    * The Sweave driver Rtangle now provides an option extension to
      specify the extension, without the leading dot, for the file name
      of a tangled code chunk when splitting is selected (the option
      has no effect with split=FALSE). If TRUE, the default extension
      of Rtangle (usually .R) is used; if FALSE, no extension is added
      to the file name.  By Vincent Goulet.

    * New function SweaveGetSourceName in package utils to obtain the
      name of the file being woven by an Sweave process launched from
      the command line.  By Vincent Goulet.

  Graphics:

    * The graphics engine version, R_GE_version, has been bumped to 17
      and so packages that provide graphics devices should be
      reinstalled.

      The glyphFont() function gains a variations argument, which
      allows variable font axes to be specified, e.g., c(wght = 100).

      Only the quartz() device and Cairo-based graphics devices (but
      not cairo_pdf()) support variable font axes so far.

  Installation on a Unix-Alike:

    * configure appends bsdtar to the list of command names it tries
      when finding a default for TAR.

    * Failures in building the documentation for the base packages,
      including from parsing their Rd files, are no longer ignored by
      make docs.

    * Building the R manuals now requires Texinfo 6.8 or later.

    * A new LIBR_LDFLAGS defaulting to LDFLAGS allows more flexibility,
      e.g., for distributions such as Gentoo, Debian or Ubuntu, fixing
      PR#18992; additionally a make failure to create libR.pc should no
      longer be ignored, fixing PR#18993; both thanks to Benjamin
      Drung.

  Checking an Installation:

    * There is a new directory tests/C++Standards which contains small
      packages which can be test-installed to check support for various
      C++ standards.  This is principally for use on Windows as on a
      Unix-alike this partially duplicates tests done by configure -
      although it can also be used to test the behaviour of R CMD
      INSTALL on unsupported standards.

  Package Installation:

    * Specifying C++11 or C++14 in src/Makevars has long given a note:
      in 99% of CRAN packages the specification was unnecessary as the
      default C++17 sufficed (in a few cases with a deprecation warning
      from some compilers).

      Support for these standards has been removed: the default C++
      standard will be used.

      R CMD config variables CXX11, CXX14 and their associated
      CXXxxFLAGS, CXXxxPICFLAGS CXXxxSTD, SHLIBCXXxxLD and
      SHLIBCXXxxLDFLAGS variables are no longer supported and reported
      as 'defunct'.

    * When installing binary packages the time stamp in the "Built"
      field is considered even if the package version is identical to
      allow binary package repositories to update binaries without the
      need to increase the package version.

    * The "Built" column returned by installed.packages() and
      old.packages() now contains the full value of the "Built" entry
      from the (installed) DESCRIPTION file. Previously, only the R
      version from the "Built" entry was returned.

    * If the timestamp passed as --built-timestamp to R CMD INSTALL is
      in RFC-2822 form (with time-zone offset) it will be converted to
      ISO UTC form to conform to the format used by R for purposes
      described above. (PR#19037, thanks to Dirk Eddelbuettel)

  C-Level Facilities:

    * New functions GEcreateDD() and GEfreeDD() for allocating (and
      initialising) DevDesc structures.  Can be used by external
      graphics devices.  Satisfies PR#18292.

    * New function R_eval_with_gd() designed to "lock" a graphics
      device during call to eval() within device drawing routines.
      External _on-screen_ graphics devices should consider using this
      function to avoid crashes from the device being closed by the
      user (e.g., a mouse click) during drawing.

    * Declarations for non-API functions LOGICAL0, INTEGER0, REAL0,
      COMPLEX0, and RAW0 have been removed from installed header files.

    * Non-API entry points Rf_acopy_string and Rf_lazy_duplicate have
      been added to those reported by R CMD check.

    * Packages using the non-API functions ATTRIB and SET_ATTRIB will
      now receive check NOTEs.  See 'Writing R Extensions' for
      alternatives to use.

    * R CMD check NOTEs on the use of these non-API entry points have
      been upgraded to WARNINGs in preparation for removing
      declarations and, where possible, hiding these entry points:
      R_nchar, R_tryWrap, Rf_GetOption, R_lsInternal, BODY, FORMALS,
      CLOENV, SET_TYPEOF, STRING_PTR, R_duplicate_attr, getConnection,
      R_data_class, STRING_PTR, SET_OBJECT, ATTRIB, SET_ATTRIB,
      Rf_findVarInFrame3.

    * The deprecated macros CHARACTER_DATA and CHARACTER_POINTER now
      return const pointers since using writable pointers in packages
      is not safe.

    * New function DATAPTR_RW() for use in implementing ALTREP Dataptr
      methods. This function should not be used in any other contexts.

    * New function R_class() as the C equivalent of class() in R.

    * New function Rf_isScalarString.

    * The R_ObjectTable type definitions formerly in R_ext/Callbacks.h
      are now available in the new header file R_ext/ObjectTable.h.
      This new header file should be used in packages instead of
      R_ext/Callbacks.h.

    * Task callback support declared in R_ext/Callbacks.h has been
      enabled again. It was disabled for R 4.5.0.

    * The non-API header file R_ext/PrtUtil.h is no longer copied to
      the installed include directory.

    * New function R_mapAttrib for iterating over the attributes of an
      object.

    * New functions R_altrep_class_name and R_altrep_class_package for
      retrieving the class name symbol and package name symbol of an
      ALTREP object. These should be used instead of ALTREP_CLASS.

    * New function R_getAttributes returns the same result as the R
      function attributes. New functions R_getAttribCount,
      R_getAttribNames, R_hasAttrib, R_nrow, and R_ncol.

    * The function Rf_isFrame has been removed; use Rf_isDataFrame
      instead.

    * The function VECTOR_PTR has been removed.

      The non-API function DATAPTR is no longer declared in an
      installed header file.

    * These entry points are now marked as hidden and no longer have
      declarations in installed header files: ENVFLAGS, EXTPTR_PROT,
      FRAME, ENCLOS, EXTPTR_PTR, EXTPTR_TAG, HASHTAB, IS_S4_OBJECT,
      LEVELS, NAMED, OBJECT, R_shallow_duplicate_attr,
      Rf_isValidString, Rf_lazy_duplicate, Rf_NonNullStringMatch,
      SETLENGTH, SETLEVELS, SET_BODY, SET_CLOENV, SET_ENCLOS,
      SET_FORMALS, SET_ENVFLAGS, SET_FRAME, SET_GROWABLE_BIT,
      SET_HASHTAB, SET_NAMED, SET_S4_OBJECT, SET_TRUELENGTH,
      STDVEC_DATAPTR, TRUELENGTH, UNSET_S4_OBJECT, XTRUELENGTH.

    * New experimental API for working with variable bindings in
      environments. The function R_GetBindingType identifies the
      binding type without forcing a delayed or active binding.  New
      bindings care created by R_MakeDelayedBinding,
      R_MakeForcedBinding and R_MakeMissingBinding.  Delayed and forced
      bindings can be inspected with R_ForcedBindingExpression,
      R_DelayedBindingExpression, and R_DelayedBindingEnvironment.
      Bindings for ... in function call environments can be examined
      with R_findDotsEnv, R_DotsExist, R_DotsLength, R_DotsNames,
      R_DotsElt, R_GetDotType, R_DotDelayedExpression,
      R_DotDelayedEnvironment, and R_DotForcedExpression. Contributed
      by Lionel Henry, Davis Vaughan, and Charlie Gao in PR#18928.

    * New function R_envSymbols returns a vector of the symbols for
      which an environment contains bindings (PR#18928).

    * R CMD check NOTEs on the use of the non-API entry points PRCODE,
      SET_PRCODE, PRENV, SET_PRENV, PRVALUE, SET_PRVALUE,
      R_PromiseExpr, and Rf_allocSExp have been upgraded to WARNINGs in
      preparation for removing declarations and, where possible, hiding
      these entry points.

    * New functions R_getVar and R_getVarEx. In most cases these can be
      used instead of the non-API functions Rf_findVar and
      Rf_findVarInFrame.  Other cases can be handled by the new API for
      working with variable bindings.

    * Packages using any non-API variables will now receive check
      NOTEs.

    * New function R_getRegisteredNamespace finds and returns the
      namespace environment registered for a name, or R_NilValue if
      none is found.

  Utilities:

    * R CMD check now reports further clang warnings including
      -Wkeyword-macro.  This is most commonly seen for the C23 keywords
      bool, true and false, but is also seen for nullptr (C23 and
      C++11). Masking these by macros _may_ generate correct code (but
      not always) and always results in confusing-to-read code.

    * The cascaded stylesheet R.css now adds less vertical white space
      when rendering Rd files' \itemize, \enumerate, and \describe list
      \items to HTML.

      Where R is used via extensive IDEs such as RStudio, their
      maintainers may need to adapt R.css files accordingly.

    * R CMD check when passed a tarball looks at its contents and so no
      longer derives the package name from the tarball name (which can
      now be arbitrary).

    * Package README.md files are now installed and featured in HTML
      help.

    * package.skeleton() now invisibly returns the path of the created
      directory, similar to prompt() et al., and allows creating blank
      skeletons without any R objects.

  Deprecated and Defunct:

    * structure(NULL, <name> = <val>) is now defunct.

    * Three tk*.slaves() functions were deprecated in favor of
      tk*.child() which do need Tcl/Tk version 8.6 or higher.

  Bug Fixes:

    * chol(x, pivot=TRUE) now zeroes the trailing submatrix when the
      algorithm stops early. Following the help page instructions on
      how to reconstruct the matrix in positive semidefinite cases gave
      incorrect results if the rank was 2 or more less than the
      dimension (PR#15853).

    * Profiling "mle" objects (stats4 package) could fail because
      profile MLE used starting value from full MLE. Now starts from
      profile MLE from previous step.

    * Setting attributes on primitive functions is now an error;
      previously it modified without copying (as noticed by Henrik
      Bengtsson on the R-devel mailing list).

      Relatedly, changing the environment() of a primitive function
      does no longer happen and gives a warning (to become an error,
      later).

    * Dataset LifeCycleSavings had a misspelled row name: "Guatamala"
      was corrected to "Guatemala".

    * The Pair(x,y) construction in the formula interface to paired
      tests did not work with the subset argument, due to the absence
      of a [.Pair method, which has now been added.

    * Subsetting "table" objects keeps S3 classes more consistently,
      fixing PR#18845.

    * When browser() is active or when otherwise debugging, R code such
      as if(TRUE) now longer triggers a new browser level, fixing
      PR#18885 (differently than the fix for PR#15770), with thanks to
      Ivan Krylov.

    * text() now truncates labels to maximum length of x and y (if it
      is longer), fixing PR#7084.  Thanks to Heather Turner, Ella Kaye,
      and Philippe Grosjean.

    * <Date> %in% set is again as fast as it was before R 4.3.0, _via_
      a new S3 method mtfrm.Date.

      <character> %in% <Date> and vice versa are now documented to work
      in concordance with == and as an exception to the typical match()
      behaviour which relies on "univariate" mtfrm() alone.

    * It is now possible to convert _to_ "snpc" units via, e.g.,
      grid::convertWidth(), fixing PR#18915. Thanks to Trevor Davis.

    * The precip dataset had typos in the names "Bismarck" and
      "Pittsburgh" (PR#18895).

    * tools::checkReplaceFuns() now deals better with replacement
      methods _not_ available as regular functions in the namespace.

    * length(xpr) <- n now also works for expression vectors, the same
      as for lists, i.e., padding with NULL entries if the length is
      increased.  Thanks to Mikael Jagan's PR#18917.

    * <complex>[i] <- NA now only sets the _real_ part to NA,
      consistently with the as.complex(NA) behaviour since R 4.4.0;
      thanks to Mikael Jagan's PR#18918.

    * format(<list>) calling format.default() now calls generic
      format() on each list element (rather than format.default()).

    * tools::Rd2HTML() detects paragraphs in more cases of
      \Sexpr-generated Rd code, fixing a regression in R 3.6.0
      originally reported by Georgi Boshnakov and later also in
      PR#18470.  An inactive #ifdef block no longer breaks the
      paragraph.

    * Parsing a multi-line string from Rd \Sexpr code no longer doubles
      the newlines.

    * requireNamespace(.., versionCheck = *) now shows an error and
      returns FALSE when the package version check is not fulfilled,
      thanks to Iris Simmons and Trevor Davis's PR#18255.
      Additionally, the versionCheck argument is checked and when
      invalid, an error is signalled to avoid subsequent confusing
      error messages.

    * requireNamespace() now throws an error even if the name space is
      already loaded if it is called with an unmatched argument such as
      quitely = TRUE or quiet = TRUE (argument quietly cannot be
      abbreviated as it follows ...).

    * rep() signals more specific error messages, notably when using
      both times and each optional arguments.  Fixes PR#18926, thanks
      to Ella Kaye and collaborators at useR! 2025's 'R Dev Day'.

    * jitter(x, amount, factor) becomes more robust for non-finite x or
      also negative amount, factor.  help(jitter) is easier to read,
      fixing PR#17279, thanks to its contributors.

    * Plain-text help (Rd2txt) lacked markup for \cited titles, which
      are now wrapped in single quotes.

    * Default column labels are now correctly aligned when printing a
      matrix with right alignment (PR#18943, thanks to Mikael Jagan).

    * poly(fct, n) signals an error again, for a non-ordered factor
      fct, thanks to Roland Fuss' notice on R-devel.

    * terms(<formula>, simplify=TRUE) now works correctly also in the
      cases where the formula has more than one term with NAs such as
      f(u, b=NA) or g(NA), finally fixing PR#15275 thanks to Mikael
      Jagan's patch.

    * The help page example(matplot) now correctly labels Sepal vs
      Petal dimensions in its first iris data plot, thanks to Jeff
      Dick's post on R-devel.

    * diff(m, lag, dif) for matrix m now still returns matrices, also
      when lag * dif > nrow(m) (PR#18972, thanks to Mikael Jagan and
      Suharto Anggono).  diff(<ts-matrix>) remains matrix, even when it
      has length zero.

    * Values returned by active binding functions are now marked as not
      mutable to prevent unintended mutation in complex assignment
      operations.

    * The default method of sequence() now allows to fully recycle all
      three of (nvec, from, by) as always documented; with thanks to
      Mikael Jagan's report and patch in PR#18304.  Its behaviour
      remains back compatible for now, but can be switched to future
      behaviour via environment variable R_sequence_recycle, or
      explicit recycle = TRUE.

    * Subassignment, x[ind] <- val, to 1-dimensional arrays no longer
      "drops" them to simple vectors when ind is a name, fixing
      PR#18973, reported by Thomas Soeiro.

    * The implicitGeneric definition for toeplitz() produced a default
      method that failed when toeplitz(x, r) was called with more than
      the first argument.  Simple fix from Mikael Jagan.

    * The error message for array(dim = c()) now uses "'dim'", thanks
      to Hugo Gruson.

    * Some legal but strange nested complex assignments are handled a
      bit more robustly in interpreted code.

    * cacheMetaData() does not to mangle primitive generics.

    * The S4 method norm(<ANY>, type = <missing>) for the implicit
      generic norm() now uses type = "O" as has been the intention for
      more than ten years, fixing PR#18979 thanks to Mikael Jagan.

    * On Windows terminals Ctrl-C now breaks out of waiting for
      keyboard input, fixing PR#18982.

    * The default summary() and its factor method now label missing
      values NAs rather than NA's, fixing a decades-old grammatical
      faux pas inherited from S (PR#16348 and PR#18948).

    * Asymmetric toeplitz(x, r) is type consistent now, even when r of
      length 0 or 1 is not used directly.  Fixes PR#18996, thanks to
      Mikael Jagan's patch and test.

    * format(r) now keeps names(r) also for raw objects r.

    * rep.int() and rep_len() again drop names also for factors, fixing
      a regression in R 4.0.0.  (Thanks to a report by Rui Barradas and
      PR#18999 by Suharto Anggono.)

    * str(x) with a list-like x of a class having an str() S3 method
      using NextMethod(), now no longer outputs "List of <...>" in the
      default method, thanks to Ian Farm's report and fix proposal in
      PR#19001.

    * as.POSIXlt(ch), as.Date(ch) etc now also work correctly when ch
      contains "Inf", via strptime(.), fixing PR#19006.

    * c(<POSIXlt>, ..) now fully preserves sub-second accuracy,
      fulfilling a part of Suharto Anggono's wishlist PR#18989.

    * When subassigning "POSIXlt", e.g., <dat>[i] <- v, v is now
      converted to the time zone of dat, before being assigned, see
      PR#18919.

    * The "tzcode" attribute of "POSIXlt" objects should no longer
      depend on earlier calls, fixing PR#19005 thanks to Ivan Krylov, a
      patch by Suharto Anggono and reports of "Non-deterministic
      POSIXlt tzone in Europe/London .." on R-devel.

    * In intervals with very low density cdplot() was unreliable,
      returning probabilities that are greater than one or NaN
      (PR#19011).  Fix from Christoph Dalitz and Achim Zeileis.

    * R CMD build now installs packages providing their own vignette
      engine (PR#18191).  Patch by Paul Smith.

    * ar.burg(), ar.yw() and ar.ols() deal better with non finite AIC
      values thanks to Simone Giannerini's remarks on R-devel.

    * Parsing deeply nested expressions no longer should segfault in
      certain circumstances, fixing five different checks on context
      stack size, thanks to Kevin Ushey's report and Michael Chirico's
      patch in PR#18994.

    * The internal cwilcox function used in computations for the
      Wilcoxon distribution is now based on an implementation of a
      formula by Andreas Löffler provided by Andreas Löffler, Aidan
      Lakshman, and Ivan Krylov, substantially reducing the memory
      complexity of the original implementation (PR#18655).

    * When Ops group methods for matrix-"ts" return a zero-extent
      matrix, its type is correct now.  E.g., <int> + <dbl> now returns
      type "double", see also PR#18972.

    * intToUtf8(<negative>) now returns NA and no longer accesses
      invalid memory, thanks to Kevin Ushey's report with patch in
      PR#19052.

    * When file.choose() is terminated with an EOF, it now signals an
      error rather than returning garbage, thanks to Kevin Ushey's
      report and patch in PR#19053,

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed May 13 21:57:26 2026 UTC (6 months ago) by mef
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -1 lines
(math/R) Updated 4.5.2 to 4.5.3, another update may follow,:

CHANGES IN R 4.5.3:

  UTILITIES:

    * tools/fetch-recommended can be used instead of
      tools/rsync-recommended to fetch recommended packages into R
      sources using curl on systems without rsync or behind firewalls.

  PACKAGE INSTALLATION:

    * C++ standard specifications (CXX_STD = in src/Makevars* and in
      the SystemRequirements field of the DESCRIPTION file) are now
      checked more thoroughly.  Invalid values are still ignored but
      now give a warning, as do contradictory specifications.

    * (Preliminary) support for C++26 has been extended to Windows.

    * A non-zero exit status from cleanup, cleanup.win or cleanup.ucrt,
      if requested via options --clean or --preclean, is now reported
      with a warning.

  BUG FIXES:

    * all.equal(obj, simple, check.class=FALSE) now is true, also when
      simple is a bare atomic vector and obj has a simple class, fixing
      the first part of PR#18971 thanks to Jan Gorecki.

    * str(x, give.attr=FALSE) no longer shows attributes when x is a
      zero length "Date" or "POSIXt" object.

    * Tweaks to binning for bw.SJ() and bw.ucv() in the very rare case
      of data which have an extremely small range compared to their
      absolute values, e.g., x <- 6e9 + 6:9.

    * Formatting book-type bibentry objects now converts LaTeX accents
      also in the publisher and series fields.

    * model.frame(~1, list(), na.action=na.pass) and similar
      "border-line" uses no longer produce invalid data frames, fixing
      PR#18977, reported with patch by Mikael Jagan.

    * length(<POSIXlt>) <- v is more careful about balancing, notably
      when v is not integer, thanks to Suharto Anggono's remarks on the
      mailing list R-devel.

    * approx(<x_with_ties>, <y_with_NA>, na.rm = FALSE) now should
      always call the ties() function, fixing PR#17604 reported by Bill
      Dunlap.

    * besselJ(1, 1e-15) and similar now give correct results, thanks to
      Leo Mada and other "R-help"ers.

    * vignette(<pkg>::<topic>) is now a documented usage variant and
      confines vignette retrieval to the specified package.

    * pretty(ch) again correctly works with ch a character vector of
      numbers.

    * persp() labels the three axes correctly also when C level
      atan2pi() is available, fixing PR#19007 by Klaus Schliep.

    * Large (tall) subscripts in plotmath expressions are now
      positioned correctly.  They were being positioned too high.

    * Ops group (Arith, Compare,..) methods for matrix-"ts" now do
      return (zero length) matrices even when the two series do not
      overlap, a very partial fix of PR#18972 which is to be fully
      addressed later.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Mar 12 11:22:57 2026 UTC (8 months ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -2 lines
(math/R) Regular practice on PLIST.Darwin, thanks jperkin@

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Mar 10 21:48:07 2026 UTC (8 months ago) by mef
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -1 lines
(math/R) Trying to fix PLIST on Darwin

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Feb 16 23:44:02 2026 UTC (8 months, 4 weeks ago) by mef
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +18 -0 lines
(math/R) Updated 4.4.3 to 4.5.2 (some 800 lines)

CHANGES IN R 4.5.2:

  UTILITIES:

         * 'R CMD check' now handles archives with extension '.tar' or
           '.tar.zstd' (where 'zstd' compression is supported by the R
           build).

  BUG FIXES:

         * 't.test(c(1:3, Inf))' and similar no longer produce an error
           but return a (still not so useful) '"htest"' result, fixing
           PR#18901, thanks to Jesse Alderliesten.

         * 'attr(., "tsp") <- val' now uses 'getOption("ts.eps")'
           instead of hardwired '1e-5'; consequently, 'ts(..,
           ts.eps=*)' now passes 'ts.eps' to the '"tsp"' setting C
           code; both fixing a long-standing 'FIXME'.

         * 'insertSource()' now ignores the internal '.packageName'
           object, avoiding a superfluous message.

         * In static HTML help, links to vignette files from the
           default 'doc/index.html' page now also work for packages not
           installed in the default '.Library', thanks to a report by
           Patrice Kiener.

         * 'fixInNamespace("<S3method>")' failed to update the S3
           methods table when the generic was not on the search path.

         * In plain-text help ('Rd2txt'), an initial newline from an Rd
           inline \eqn no longer breaks the paragraph.

         * 'hist(*, log = "x")' now works without a warning, thanks to
           Martin Smith's PR#18921.

         * Subassigning '"POSIXlt"', i.e., '<tdat>[i] <- val' and
           '<tdat>[[i]] <- val' now rebalance as they should, thanks to
           Mikael Jagan's PR#18919.

         * '<POSIXlt>[*]' (re-)setting '"balanced"', fixing PR#18681
           comment #7, thanks to Mikael Jagan.

         * All four of '{col,row}{Sums,Means}(Z, na.rm=TRUE)' now
           correctly work with complex 'Z' where 'is.na(Re(Z))' differs
           from 'is.na(Im(Z))', fixing PR#18942, unearthed by Dirk
           Eddelbuettel.

         * Fix for glyph rendering on the 'quartz()' device when there
           is other ("normal") text drawn on the device.  The problem
           was that the text transformation matrix was not reset so
           glyphs would be rendered incorrectly (often completely
           outside the device, i.e., not visible).

         * Functions 'install.packages()' and 'download.packages()'
           again consult option 'download.file.method' when the
           download method is unspecified.

         * Tanguy Barthelemy and colleagues at the 'R Dev Day'
           following Rencontres R in May 2025 extended the help page of
           'lm()', fixing PR#18058.  As suggested by Thomas Soeiro,
           such notes were also added to the 'glm()', 'poly()' and
           'splines::bs()' and 'ns()' pages.

         * 'lbeta(1i, 1)' now signals an error, as 'lbeta()' is not
           implemented for 'complex', fixing PR#18946 from Ben Bolker
           and Kasper Kristensen.

         * The Cairo-based SVG device uses 'pt' as the default document
           unit also with Cairo >= 1.17.8 (PR#18912).

         * 'pretty(*, eps.correct = 2)' has been fixed, e.g., to avoid
           over 1 million length result for 'pretty(c(0, 1e-322),
           eps.correct = 2)'.

         * When '"POSIXlt"' date-time objects are 'NA'-padded from
           subsetting or increasing 'length' in the '`[`' or
           '`length<-`' methods, the '"balanced"' attribute is set to
           'NA', now; noted in PR#18681, thanks to Mikael Jagan.

CHANGES IN R 4.5.1:

  NEW FEATURES:

         * The internal method of 'unzip()' now follows 'unzip 6.00' in
           how it handles extracted file paths which contain '"../"'.
           With thanks to Ivan Krylov.

  INSTALLATION:

         * Standalone 'nmath' can be built with early-2025 versions of
           'clang'-based compilers such as LLVM 'clang' 20, Apple
           'clang' 17 and Intel 'icx' 2025.0.

         * Tcl/Tk 9 can be used to build package 'tcltk': this has
           become the default in some Linux distributions.

  BUG FIXES:

         * Java detection in 'javareconf' could not detect 'libjvm.*'
           in the 'zero' variant of the JDK (PR#18884).  All valid
           variants as of JDK 24u are now supported.

         * 'factanal(.., rotation=*)' now correctly updates 'rotmat',
           fixing PR#18886.

         * 'dnbinom(<large>, <muchlarger>, ..)' now is '0' correctly,
           instead of 'NaN' or 'Inf' sometimes.

         * 'dbinom(<large>, n=Inf, ..)' is '0' now correctly, instead
           of 'NaN' which also fixes many 'dnbinom()' cases, notably
           those mentioned in PR#16727 comment #5.

         * Fixing C level "binomial deviance" 'bd0()' for extreme
           arguments (preventing under-/overflow) solves more PR#16727
           cases and also prevents some full accuracy loss in such
           cases for 'dbinom()', 'dnbinom()', and via 'dbinom^raw()'
           potentially 'dgeom()', 'dhyper()', 'dbeta()', and 'df()'.

         * 'signif(1.**e308, digits)' no longer truncates unnecessarily
           (but still to prevent overflow to 'Inf'), fixing PR#18889.

         * 'prettyNum(*, zero.print={>=1-char}, replace.zero=TRUE)' now
           works as documented, thanks to Marttila Mikko and Ivan
           Krylov's messages on R-devel.

         * 'pbeta(x, a,b, ..)' for very large 'a,b' no longer returns
           'NaN' but the correct values (0 or 1, or their logs for
           'log.p = TRUE').  This improves Mathlib's C level 'bratio()'
           and hence also 'pnbinom()', etc..

CHANGES IN R 4.5.0:

  NEW FEATURES:

         * 'as.integer(rl)' and hence 'as.raw(rl)' now work for a
           'list' of 'raw(1)' elements, as proposed by Michael
           Chirico's PR#18696.

         * 'graphics'' 'grid()' gains optional argument 'nintLog'.

         * New functions 'check^package^urls()' and
           'check^package^dois()' in package 'tools' for checking URLs
           and DOIs in package sources.

         * New 'head()' and 'tail()' methods for class '"ts"' time
           series, proposed by Spencer Graves on R-devel.

         * New 'qr.influence()' function, a "bare bones" interface to
           the 'lm.influence()' leave-one-out diagnostics computations;
           wished for in PR#18739.

         * Package 'citation()' results auto-generated from the package
           metadata now also provide package DOIs for CRAN and
           Bioconductor packages.

         * New function 'grepv()' identical to 'grep()' except for the
           default 'value = TRUE'.

         * 'methods(<pkg>:::<genfun>)' now does report methods when
           neither the generic nor the methods have been exported.

         * 'pdf()' gains an 'author' argument to set the corresponding
           metadata field, and logical arguments 'timestamp' and
           'producer' to optionally omit the respective metadata.
           (Thanks to Edzer Pebesma.)

         * 'grDevices::glyphInfo()' gains a 'rot' argument to allow
           per-glyph rotation.  (Thanks to Daniel Sabanes Bove.)

         * Package 'tools' now exports functions 'CRAN^current^db()',
           'CRAN^aliases^db()', 'CRAN^rdxrefs^db()',
           'CRAN^archive^db()', and 'CRAN^authors^db()'.

         * Package 'tools' now exports functions 'R()' and
           'parse^URI^reference()'.

         * Package 'tools' now exports functions 'base^aliases^db()'
           and 'base^rdxrefs^db()'.

         * It is now possible to set the background color for row and
           column names in the data editor on Windows ('Rgui').

         * 'Rterm' on Windows now accepts input lines of unlimited
           length.

         * 'file.info()' on Windows now provides file owner name and
           domain.

         * 'Sys.info()' on Windows now provides current user domain.

         * 'findInterval()' gets new arguments 'checkSorted' and
           'checkNA' which allow skipping relatively costly checks;
           related to PR#16567.

         * 'pnorm(x)' underflows more gracefully.

         * 'get(nam, env)' now signals a ^classed^ error,
           '"getMissingError"', as "subclass" of '"missingArgError"'
           where the latter is used also in similar situations, e.g.,
           'f <- function(x) exp(x); try(f())' .

         * The set operations now avoid the 'as.vector()'
           transformation for same-kind apparently vector-like
           operands.

         * 'md5sum()' can be used to compute an MD5 hash of a raw
           vector of bytes by using the 'bytes=' argument instead of
           'files='. The two arguments are mutually exclusive.

         * Added function 'sha256sum()' in package 'tools' analogous to
           'md5sum()' implementing the SHA-256 hashing algorithm.

         * The 'xtfrm()' method for class '"AsIs"' is now considerably
           faster thanks to a patch provided by Ivan Krylov.

         * The 'merge()' method for data frames will no longer convert
           row names used for indexing using 'I()', which will lead to
           faster execution in cases where 'sort = TRUE' and 'all.x'
           and/or 'all.y' are set to 'TRUE'.

         * The 'methods' package internal function '.requirePackage()'
           now calls 'requireNamespace(p)' instead of 'require(p)',
           hence no longer adding packages to the 'search()' path in
           cases methods or class definitions are needed.
           Consequently, previous workflows relying on the old
           behaviour will have to be amended by adding corresponding
           'library(p)' calls.

         * More R-level messages use a common format containing
           '"character string"' for more consistency and less
           translation work.

         * 'available.packages()' and 'install.packages()' get an
           optional switch 'cache^user^dir', somewhat experimentally.

         * The 'sunspot.month' data have been updated to Oct 2024;
           because of recalibration also historical numbers are
           changed, and we keep the previous data as 'sunspot.m2014'
           for reproducibility.

         * The 'quartz()' device now supports alpha masks.  Thanks to
           George Stagg, Gwynn Gebeyhu, Heather Turner, and Tomek
           Gieorgijewski.

         * The 'print()' method for date-time objects ('POSIX.t') gets
           an optional 'digits' argument for ^fractional^ seconds,
           passed to improved 'format.POSIXlt()'; consequently,
           'print(<date.time>, digits = n)' allows to print fractions
           of seconds.

         * 'install.packages()' and 'download.packages()' download
           packages simultaneously using 'libcurl', significantly
           reducing download times when installing or downloading
           multiple packages.

         * Status reporting in 'download.file()' has been extended to
           report the outcome for individual files in simultaneous
           downloads.

         * The Rd \link macro now allows markup in the link text when
           the topic is given by the optional argument, e.g.,
           '\link[=gamma]{\eqn{\Gamma(x)}}'.

         * If 'La^library()' is empty, 'sessionInfo()' still reports
           'La^version()' when available.

         * 'seq.int(from, to, by, ....)' when |by| = 1 now behaves as
           if 'by' was omitted, and hence returns 'from:to', possibly
           integer.

         * 'seq.Date(from, to, by, ....)' and 'seq.POSIXt(..)' now also
           work when 'from' is missing and sufficient further arguments
           are provided, thanks to Michael Chirico's report, patch
           proposal in PR#17672 and 'R Dev Day' contributions.

           The 'Date' method also works for 'seq(from, to)', when 'by'
           is missing and now defaults to '"1 days"'.

           It is now documented (and tested) that the 'by' string may
           be ^abbreviated^ in both 'seq' methods.

           Both methods return or keep internal type '"integer"' more
           consistently now.  Also, 'as.POSIXct({})' is internally
           integer.

         * 'duplicated()', 'unique()', and 'anyDuplicated()' now also
           work for class 'expression' vectors.

         * New function 'use()' to use packages in R scripts with full
           control over what gets added to the search path.  (Actually
           already available since R 4.4.0.)

         * There is some support for 'zstd' compression of tarballs in
           'tar()' and 'untar()'.  (This depends on OS support of
           'libzstd' or by 'tar'.)

         * 'print(summary(<numbers>))' gets new optional argument
           'zdigits' to allow more flexible and consistent (double)
           rounding.  The current default 'zdigits = 4L' is somewhat
           experimental.  Specifying both 'digits = *, zdigits = *'
           allows behaviour independent of the global 'digits' option.

         * The 'format()' method for '"difftime"' objects gets a new
           back compatible option 'with.units'.

         * A 'summary()' method for '"difftime"' objects which prints
           nicely, similar to those for '"Date"' and '"POSIXct"'.

         * 'unique()''s default method now also deals with '"difftime"'
           objects.

         * 'optimize(f, *)' when 'f(x)' is not finite says more about
           the value in its 'warning' message.  It no longer replaces
           '-Inf' by the largest ^positive^ finite number.

         * The documentation of 'gamma()' and 'is.numeric()' is more
           specific, thanks to the contributors of PR#18677.

         * New dataset 'gait' thanks to Heather Turner and Ella Kaye,
           used in examples.

         * New datasets 'penguins' and 'penguins^raw' thanks to Ella
           Kaye, Heather Turner, and Kristen Gorman.

         * 'isSymmetric(<matrix>)' gains a new option 'trans = "C"';
           when set to non-default, it tests for "simple" symmetry of
           complex matrices.

         * 'model.frame()' produces more informative error messages in
           some cases when variables in the formula are not found,
           thanks to Ben Bolker's PR#18860.

         * 'selectMethod(f, ..)' now keeps the function name if the
           function belongs to a group generic and the method is for
           the generic.

  BLAS and LAPACK:

         * The bundled BLAS and LAPACK sources have been updated to
           those shipped as part of January 2025's LAPACK 3.12.1.

         * It is intended that this will be the last update to BLAS and
           LAPACK in the R sources.  Those building R from source are
           encouraged to use external BLAS and LAPACK and this will be
           required in future.

         * This update was mainly bug fixes but contained a barely
           documented major change.  The set of BLAS routines had been
           unchanged since 1988, so throughout R's history.  This
           update introduced new BLAS routines 'dgemmtr' and 'zgemmtr'
           which are now used by LAPACK routines.  This means that BLAS
           implementations are no longer interchangeable.

         * To work around this, R can be configured with option
           '--with-2025blas' which arranges for the 2025 BLAS additions
           to be compiled into 'libRlapack' (the internal LAPACK, not
           built if an external LAPACK is used).

           This option allows the continuation of the practice of
           swapping the BLAS in use by symlinking 'lib/libRblas.*'.  It
           has the disadvantage of using the reference BLAS version of
           the 2025 routines whereas an enhanced BLAS might have an
           optimized version (OpenBLAS does as from version 0.3.29).

         * Windows builds currently use the internal LAPACK and by
           default the internal BLAS: notes on how to swap the latter
           ^via^ 'Rblas.dll' are in file 'src/extra/blas/Makefile.win'.

  INSTALLATION on a UNIX-ALIKE:

         * A C23 compiler (if available) is now selected by default for
           compilation of R and packages.  R builds can opt out ^via^
           the 'configure' flag '--without-C23', unless the specified
           or default (usually 'gcc') compiler defaults to C23: 'gcc'
           15 does.

           A C23 compiler is known to be selected with 'gcc' 13-15,
           LLVM 'clang' 18-20 (and 15 should), Apple 'clang' 15-17 and
           Intel 2024.2-2025.0 (and 2022.2 should).

           Current binary distributions on macOS use Apple 'clang' 14
           and so do not use C23.

         * The minimum 'autoconf' requirement for a maintainer build
           has been increased to 'autoconf' 2.72.

         * Building the HTML and Info versions of the R manuals now
           requires 'texi2any' from Texinfo 6.1 or later.

         * Failures in building the manuals under 'doc' now abort the
           installation, removing any file which caused the failure.

         * Control of symbol visibility is now supported on macOS (the
           previous check only worked on ELF platforms).

         * There is now support for installing the debug symbols for
           recommended packages on macOS: see 'REC^INSTALL^OPT' in file
           'config.site'.

         * 'configure' is now able to find an external 'libintl' on
           macOS (the code from an older GNU gettext distribution
           failed to try linking with the macOS Core Foundation
           framework).

  INSTALLATION on WINDOWS:

         * Both building R and installing packages use the C compiler
           in C23 mode.

         * R on Windows by default uses 'pkg-config' for linking
           against external libraries.  This makes it easier to test R
           and packages with alternative toolchains (such as from
           Msys2, e.g., testing with LLVM and possibly with
           sanitizers). It also allows more significant Rtools updates
           within a single R minor release.

         * The installer scripts for Windows have been tailored to
           Rtools45, an update of the Rtools44 toolchain.  It is based
           on GCC 14.  The experimental support for 64-bit ARM
           ('aarch64') CPUs is based on LLVM 19.  R-devel and R 4.5.x
           are no longer maintained to be buildable using Rtools44 and
           it is advised to switch to Rtools45.

  DEPRECATED AND DEFUNCT:

         * 'is.R()' is defunct.  Environment variable
           '^R^DEPRECATED^IS^R^' no longer has any effect.

         * Deprecated (for more than 9 years!) functions
           'linearizeMlist', 'listFromMlist', and 'showMlist' and the
           '"MethodsList"' class for S4 method handling were removed
           from package 'methods'.  Deprecated functions
           'balanceMethodsList', 'emptyMethodsList',
           'inheritedSubMethodLists', 'insertMethod',
           'insertMethodInEmptyList', 'makeMethodsList',
           'mergeMethods', 'MethodsList', 'MethodsListSelect', and
           'SignatureMethod' were made defunct, as were the
           '"MethodsList"' branches of functions
           'assignMethodsMetaData', 'finalDefaultMethod', and
           'MethodAddCoerce'.

         * 'getMethods(*, table = TRUE)' is deprecated.

         * Building with the bundled (and old) version of 'libintl' is
           deprecated and now gives a 'configure' warning.  This should
           be selected only if neither the OS's 'libc' (as on GNU
           Linux) nor an external 'libintl' library provide suitable
           functions.

           Instead install 'libintl' from a recent version of GNU
           gettext (available for macOS) or use 'configure' option
           '--disable-nls'.

           The ability to use the bundled version may be removed as
           soon as R 4.5.1.

         * The deprecated 'xfig()' graphics device has been removed.

  PACKAGE INSTALLATION:

         * Packages are now installed using C23 where supported by the
           OS and R build.

           Packages using R's compiler settings can ask *not* to use
           C23 ^via^ including 'USE^C17' in 'SystemRequirements' or can
           be installed by 'R CMD INSTALL --use-C17'.  (Some packages
           ignore these settings in their 'configure' script or when
           compiling in sub-directories of 'src', as will those using a
           'src/Makefile'.)

         * Source installs now report the package version in the log.

         * There is preliminary support for C++26 with GCC >= 14, Apple
           'clang++' >= 16 and LLVM 'clang++' >= 17.

  C-LEVEL FACILITIES:

         * The non-API and hidden entry points 'Rf^setIVector',
           'Rf^setRVector' and 'Rf^setSVector' have been removed.

         * The internal code for changing the parent of an environment
           now signals an error if the new parent is not an environment
           or if the change would create a cycle in the parent chain.

         * 'SET^TYPEOF' now signals an error unless the old and new
           types have compatible memory structure and content. Use of
           'SET^TYPE' in package C code should be avoided and may be
           deprecated in the near future. It is better to allocate an
           object of the desired type in the first place.

         * The set of LAPACK (double and complex) routines declared in
           the headers 'R^ext/Lapack.h' and 'R^ext/Applic.h' has been
           extended, mostly to routines actually in use by packages.

         * Memory allocation messages now use the (non-SI notation)
           '"Mb"', '"Gb"' , ..., and '"Mbytes"' strings as ^arguments^
           instead of as part of the (translatable format) string.
           This is one step for PR#18297; from Henrik Bengtsson.

         * Header 'R^ext/Constants.h' (included by 'R.h') now always
           includes header 'float.h' or 'cfloat' for constants such as
           'DBL^MAX'.

         * Strict R headers are now the default.  This removes the
           legacy definitions of 'PI', 'Calloc', 'Realloc' and 'Free':
           use 'M^PI', 'R^Calloc', 'R^Realloc' or 'R^Free' instead.

         * The deprecated and seemingly never-used S-compatibility
           macros 'F77^COM' and 'F77^COMDECL' have been removed from
           header 'R^ext/RS.h'.

         * The 'enum' 'Rboolean' defined in header 'R^ext/Boolean.h'
           now has a fixed underlying type of 'int' on platforms whose
           C compiler supports this.

           This is a C23 feature (taken from C++11) and also supported
           in all C standards by some versions of 'clang' (from LLVM
           and Apple) and (with a warning when using '-pedantic') by
           GCC when in C17 mode.

           A fair amount of code has assumed this: it may be changed to
           a smaller type in future.  In particular, as standard
           compilers do not check the validity of assignment to an
           'enum', it has been possible to assign 'NA^INTEGER' to an
           'Rboolean' variable, coerce it to 'int' and recover the
           value.

           If there were a platform which used an underlying type of a
           different size this would be an ABI-breaking change (but we
           are unaware of any such platform).

         * Header 'R^ext/Boolean.h' now ensures that a 'bool' type is
           available either as a keyword (C23 and C++) or by including
           the C99 header 'stdbool.h'.  This is being used internally
           in R to replace 'Rboolean' by 'bool'.

         * There are new functions 'asRboolean' and 'asBool', variants
           of 'asLogical' more suited to converting logical arguments
           to 'Rboolean' or to 'bool'. They require a length-one input
           and throw an error if that evaluates to 'NA'.

         * Header 'R^exts/Error.h' now ensures that 'Rf^error' and
           similar are given a 'noreturn' attribute when used from C++
           under all compilers.

         * Header 'R^exts/Utils.h' no longer contains a declaration for
           'F77^SUB(interv)'.  This is intended to be called from
           Fortran and was wrongly declared: 'LOGICAL' in Fortran
           corresponds to 'int *' not 'Rboolean *'.

         * Defining 'R^INCLUDE^BOOLEAN^H' to '0' before including
           headers 'R.h' or 'Rinternals.h' (or any other header which
           includes 'R^ext/Boolean.h') stops the inclusion of header
           'R^ext/Boolean.h' which `defines' constants 'TRUE', 'FALSE',
           'true', 'false' and the type 'bool' which some package
           maintainers wish to avoid.

           Note that the last three are keywords in C23 and C++11 so
           cannot be avoided entirely.  However, with commonly-used
           compilers they can be masked by a macro of the same name,
           often with a warning.

  C-LEVEL API:

         * The 'Writing R Extensions' Texinfo source now contains very
           experimental annotations for more clearly identifying the
           API status of C entry points. These annotations are used to
           produce indices for API, experimental API, and embedded API
           entry points in the rendered versions.  This is very
           preliminary and may be dropped if a better approach emerges.

           Also for Fortran-callable entry points which are part of the
           API.

         * 'Writing R Extensions' has a new section 'Moving into C API
           compliance' to help package authors move away from using
           non-API endpoints. This section will continue to be updated
           as work on clarifying and tightening the C API continues.

         * New API function 'R^mkClosure'. This checks that its
           arguments are valid and should be used instead of
           'allocSExp(CLOSXP' followed by 'SET^FORMALS', 'SET^BODY',
           and 'SET^CLOENV'.

         * New API functions 'R^ClosureFormals', 'R^ClosureBody', and
           'R^ClosureEnv' for extracting closure components.  The
           existing functions 'R^ClosureExpr' and 'R^BytecodeExpr' have
           also been added to the API.

         * New API function 'R^ParentEnv' corresponding to R's
           'parent.env()'.

         * Further non-API entry points have been added to those
           reported by 'R CMD check': 'COMPLEX0', 'ddfind', 'DDVAL',
           'ENSURE^NAMEDMAX', 'ENVFLAGS', 'FRAME', 'HASHTAB',
           'INTERNAL', 'IS^ASCII', 'IS^UTF8', 'LEVELS', 'NAMED',
           'PRSEEN', 'RDEBUG', 'REAL0', 'Rf^findVarInFrame3',
           'SET^BODY', 'SET^CLOENV', 'SET^FORMALS', 'SET^PRSEEN',
           'SET^RDEBUG', 'STRING^PTR', 'SYMVALUE', and 'VECTOR^PTR'.
           Any declarations for these in public header files will be
           removed in the near future, and they will be hidden where
           possible.

         * Some 'R CMD check' 'NOTE's on the use of non-API entry
           points have been upgraded to 'WARNING's in preparation for
           removing declarations and, where possible, hiding these
           entry points.

         * Additional non-API entry points have been added to those
           reported by 'R CMD check': 'IS^LONG^VEC', 'PRCODE', 'PRENV',
           'PRVALUE', 'R^nchar', 'Rf^NonNullStringMatch',
           'R^shallow^duplicate^attr', 'Rf^StringBlank', 'SET^TYPEOF',
           'TRUELENGTH', 'XLENGTH^EX', and 'XTRUELENGTH'.

         * Enable defining 'R^NO^REMAP^RMATH' and calling 'Rf^*()' as
           has been documented in 'Writing R Extensions' for a while,
           fixing PR#18800 thanks to Mikael Jagan and Suharto Anggono.

         * 'R^GetCurrentSrcref(skip)' now skips calls rather than
           'srcref's, consistent with counting items in the
           'traceback()' display.  If 'skip == NA^INTEGER', it searches
           for the first 'srcref', starting at the current evaluation
           state and proceeding through the call stack; otherwise, it
           returns the 'srcref' of the requested entry from the call
           stack.

  UTILITIES:

         * 'R CMD INSTALL' (and hence 'check') now compile C++ code
           with '-DR^NO^REMAP'.

           'Writing R Extensions' has been revised to describe the
           remapped entry points, for with the 'Rf^' prefix remains
           optional when used from C code (but is recommended for new C
           code).

         * 'R CMD check --as-cran' notes bad parts in the 'DESCRIPTION'
           file's URL fields.

         * 'R CMD check' now reports more warnings on
           long-deprecated/obsolete Fortran features reported by
           'gfortran -Wall'.  For hints on how to modernize these, see
           <https://fortranwiki.org/fortran/show/Modernizing+Old+Fortran>.

         * Since almost all supported R versions now use UTF-8, 'R CMD
           check' no longer by default reports on marked UTF-8 or
           Latin-1 strings in character data.  Set environment variable
           '^R^CHECK^PACKAGE^DATASETS^SUPPRESS^NOTES^' to a false value
           for the previous behaviour.

         * 'tools::checkDocFiles()' notes more cases of usage
           documentation without corresponding \alias.

         * 'R CMD check' with a true value for environment variable
           '^R^CHECK^BASHISMS^' checks more thoroughly, including for
           'bash' scripts and bashisms in components of
           'autoconf'-generated 'configure' scripts.

         * 'R CMD check' gains option '--run-demo' to check demo
           scripts analogously to tests.  This includes a check for
           undeclared package dependencies: it can also be enabled
           separately by setting the environment variable
           '^R^CHECK^PACKAGES^USED^IN^DEMO^' to a true value (as done
           by 'R CMD check --as-cran').

         * 'R CMD build' now supports '--compression=zstd' on platforms
           with sufficient support for 'zstd'.

         * 'tools::texi2pdf(..., texinputs=<paths>)' now ^pre^pends the
           specified <paths> to 'TEXINPUTS'.  When building R itself
           ('doc/NEWS.pdf' and base vignettes) or package manuals using
           'R CMD Rd2pdf', it is ensured that this R's 'Rd.sty' takes
           precedence over any other (incompatible) versions in default
           "texmf trees".

         * 'tools::Rd2latex()' no longer outputs an
           '\inputencoding{utf8}' line by default; such a declaration
           is obsolete since LaTeX 2018-04-01.

  BUG FIXES:

         * 'update^pkg^po()' now copies '.mo' files to the
           'translation' package even if a 'DESCRIPTION' file exists,
           thanks to Michael Chirico fixing PR#18694.

         * Auto-generated 'citation()' entries no longer include
           (additional) URLs in the 'note' field (PR#18547).

         * 'as.data.frame.list()' gets a new option 'new.names' and now
           preserves 'NA' names, thus fixing the 'format()' method for
           data frames, and also bug PR#18745.  Relatedly, the
           'format()' method gets an option 'cut.names'.

         * 'stem()' formats correctly also in cases where rounding up,
           e.g., from 9.96 to 10 needs more digits; thanks to Ella Kaye
           and Kelly Bodwin, fixing PR#8934 during 'R Dev Day' at
           useR!2024.

           Additionally, 'stem(x)' now works normally also when
           'length(x) == 1'.

         * 'tools'' 'toTitleCase()' now works better, fixing PR#18674,
           thanks to Shannon Pileggi, Sarah Zeller, Reiko Okamoto, and
           Hugo Gruson's 'R Dev Day' effort.

         * Printing matrices (typically with many rows and or columns)
           now also omits columns when desirable according to option
           'max.print', or argument 'max', respectively.  This is
           primarily the work of Lorena Abad, Ekaterina Akimova, Hanne
           Oberman, Abhishek Ulayil, and Lionel Henry at the 'R Dev
           Day', thus fixing PR#15027.

         * 'Sys.setLanguage()' now warns about ^some^ failures to
           change the language.

         * Printing 'ls.str()' now shows '"<missing>"' even when R's
           language setting is not English.

         * 'xyTable()' now handles and reports 'NA's fixing PR#18654.
           Thanks to Heather Turner and Zhian Kamvar for report and
           patch.

         * 'as(*, "raw")' now works as documented, thanks to Mikael
           Jagan's PR#18795.

         * Informational messages of e.g., 'print(1:1e4, max=1000)',
           now correctly mention 'max' in addition to
           'getOption("max.print")'.

         * 'rowSums(A, dims = dd)', 'colMeans(..)', etc, give a more
           helpful error message when 'dd' is not of length one, thanks
           to Michael Chirico's PR#18811.

         * 'seq.Date()' no longer explicitly coerces results from
           integer to double, analogously with 'seq.default()',
           'seq.int()' and 'seq.POSIXt()', resolving a ^modified^
           PR#18782.

         * 'axisTicks(usr, ...)' documentation clarification for 'log =
           TRUE', fixing bug PR#18821 thanks to Duncan Murdoch.

         * 'debug()' and 'debugonce(fun)' now also accept a string
           'fun' when it names an S4 generic, fixing PR#18822 thanks to
           Mikael Jagan.

         * 'debugonce(<S4-simple-body>, signature=*)' now works
           correctly when "called twice", fixing PR#18824 thanks to
           Mikael Jagan.

         * 'format(dtime, digits=* / format=*)' is more consistent when
           the 'POSIXt' date-time object 'dtime' has fractional (non
           integer) seconds.  Fixes PR#17350, thanks to new
           contributions by LatinR's 'R Dev Day' participants, Heather
           Turner and Dirk Eddelbuettel; also fixes more cases, notably
           when 'format' contains '%OS<nodigit>'.

         * 'options(scipen = NULL)' and other invalid values now signal
           an error instead of invalidating ops relying on a finite
           integer value.  Values outside the range -9 .. 9999 are now
           warned about and set to a boundary or to the default '0',
           e.g., in case of an 'NA'.  This also fixes PR#16322.

         * 'cbind()' could segfault with 'NULL' inputs.  (Seen when R
           was built with 'gcc-14', LTO and C99 inlining semantics.)

         * Fix segfault on 'quartz()' from 'grid.glyph()' call with
           'glyphInfo()' that describes non-existent font (PR#18784).
           Thanks to Tomek Gieorgijewski.

         * 'format()' etc, using 'decimal.mark = s', by default getting
           's <- getOption("OutDec")', signals a warning (to become an
           error in the future) when 's' is not a string with exactly
           one character.

         * When 's <- getOption("OutDec")' is not a string of one
           character, a warning is signalled now whenever it is used in
           internal C code, notably when calling the default methods of
           'format()'.

         * 'pwilcox()' and 'qwilcox()' now check for user interrupt
           less frequently.

         * 'summary(<stl>)' (which prints directly) finally gets the
           same 'digits' default as the formatting printing of default
           'summary()' method results, and it is documented explicitly.

         * 'options(show.error.locations = TRUE)' once again shows the
           most recent known location when an error is reported.
           Setting its value to '"bottom"' is no longer supported.
           Numerical values are converted to logical.

         * C API function 'R^GetCurrentSrcref(skip)' now returns
           'srcref' entries correctly.  (Note that there is also a
           change to the interpretation of 'skip'; see the C-LEVEL API
           entry above.)

         * 'tools::Rd2latex()' now removes leading and trailing spaces
           from \alias entries as documented, fixing indexing and
           linking hiccups in some PDF manuals.

         * 'R CMD Rd2pdf' can now render the package manual from a
           '--latex' installation also when the help contains figures.

         * The argument of 'as.environment()' is now named 'x', not
           'object', as was always documented and shown when printing
           it; thanks to Gael Millot's PR#18849.

         * When 'R CMD check' aims at getting the time+date from a
           world clock, it is more robust against unexpected non-error
           results, thanks to Michael Chirico's PR#18852.

         * The 'tools::parseLatex()' parser made several parsing errors
           (PR#18855).

         * Error messages produced by 'tools::parseLatex()' are now
           more readable (PR#18855).

         * 'R CMD build <pkg>' excludes more file patterns when it tars
           the <pkg> directory, fixing both PR#18432 and PR#18434, for
           'vim' and 'GNU Global' 'emacs' users, thanks to Dirk
           Eddelbuettel's patch.

         * 'quantile()''s default method gets an option 'fuzz' to
           protect against floating point inaccuracy before rounding,
           thus fixing PR#15811 and, en passant, PR#17683.

         * Printing arrays now also omits columns, rows and slices when
           desirable according to option 'max.print', or argument
           'max', respectively, addressing most of the remaining part
           of PR#15027, thanks to Sherry Zhang's patch.

         * 'drop.terms(y ~ w, 1)' and similar now work, thanks to
           Benjamin Sommer's report in PR#18861 and collaboration with
           Heather Turner improving 'reformulate()'.

         * Many arguments which should be length-1 logical are checked
           more thoroughly.  The most commonly seen errors are in
           'unlink(, recursive)', 'tempdir()' and the 'na.rm' arguments
           of 'max()', 'min()', 'sum()', ....

           'grep()', 'strsplit()' and similar took non-'TRUE'/'FALSE'
           values of their logical arguments as 'FALSE', but these were
           almost always mismatches to unnamed arguments and are now
           reported as 'NA'.

         * 'vignette("reshape")' is now also available on Windows.

         * 'trace(coerce, ..)' now works correctly, fixing PR#18823
           thanks to Mikael Jagan.

         * 'R CMD check' now also reports bad symbols in package shared
           objects linked in from local static libraries (PR#18789).

         * 'factanal()' now works correctly also, e.g., for
           'GPArotation', 'oblimin()' rotations, fixing PR#18417,
           thanks to Coen Bernaards and others.

         * Setting 'attributes' on primitive functions is deprecated
           now and already an error in the development version of R.
           Changing the 'environment' of a primitive does no longer
           happen and signals a warning.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Nov 1 07:12:59 2024 UTC (2 years ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -9 lines
(math/R) Updated 4.4.1 to 4.4.2

CHANGES IN R 4.4.2:

  C-LEVEL FACILITIES:

         * The S-compatibility macros 'F77_COM' and 'F77_COMDECL'
           defined in header 'R_ext/RS.h' are deprecated and will be
           removed shortly.  We could find no record of their use.

  BUG FIXES:

         * Mathlib function 'lgammacor(x)' no longer warns about
           underflow to zero for large 'x'.

         * Text widths and heights were incorrectly reported by the
           Quartz device if the drawing context didn't exist yet
           (typically when drawing off-screen to a window that is yet
           to appear, see PR#18591).

         * The Quartz device could segfault in cases where paths with
           spaces are used in the new glyph drawing API.  Thanks to
           Tomek Gieorgijewski (PR#18758).

         * On macOS in R CRAN builds, it is again possible to read
           little-endian UTF-16 text with a BOM from a connection using
           'encoding="UTF-16"'.  Users building R from source should
           avoid using the system 'libiconv' in macOS 14.1 and later.

         * 'methods'' internal '.requirePackage()' now re-enables
           primitive method dispatch when needed; thanks to Ivan Krylov
           for demystifying CRAN package check failures on the R-devel
           mailing list.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jul 14 08:51:29 2024 UTC (2 years, 4 months ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -5 lines
(math/R) Updated 4.4.0 to 4.4.1

 R CMD Rdconv --type=txt /tmp/math/R/work/R-4.4.1/doc/NEWS.Rd | head -70
CHANGES IN R 4.4.1:

  C-LEVEL FACILITIES:

         * Functions 'R_atof' and 'R_strtod' declared in header
           'R_ext/Utils.h' are now documented in 'Writing R Extensions'
           and so formally part of the API.

         * The non-API entry points 'Rf_setSVector', 'Rf_StringFalse',
           'Rf_StringTrue' and 'Rf_isBlankString' have been added to
           those reported by 'R CMD check'.

         * The new function 'Rf_allocLang' is now available. This
           provides an alternative to the idiom of calling
           'Rf_allocList' followed by 'SET_TYPEOF'.

  UTILITIES:

         * 'R CMD check' now reports as warnings what 'gfortran' calls
           'Fortran 2018 deleted features', all of which have long been
           marked as 'obsolescent' and some of which were deleted in
           Fortran 2008 or earlier.  Fortran compilers are no longer
           required to support these.

  BUG FIXES:

         * 'as.numeric()', 'scan()', 'type.convert()' and other places
           which use the internal C function 'R_strtod' now require a
           _non-empty_ digit sequence in a decimal or binary exponent.
           This aligns with the C/POSIX standard for 'strtod' and with
           '?NumericConstants'.

         * 'as.data.frame(m, make.names=NA)' now works correctly for a
           matrix 'm' with 'NA''s in row names.

         * The error message from '<POSIXlt>[["hour"]]' and similar now
           mentions '*[[, "hour"]]', as wished for in PR#17409 and
           proposed by Michael Chirico.

         * 'qbinom()' and potentially 'qpois()', 'qnbinom()', no longer
           sometimes fail accurate inversion (of 'pbinom()', etc),
           thanks to Christopher Chang's report and patch in PR#18711.

         * The internal help server on Windows can again serve requests
           sent in quick succession, fixing a regression in R 4.4.0.

         * 'debugcall(<S3Generic>())' now also works when a
           corresponding S4-generic version is in the 'methods' cache
           (PR#18143).

         * Package 'tools'' 'toTitleCase(ch0)' now returns
           'character(0)' when 'ch0' is of zero length; fixing
           PR#18724, reported by David Hugh Jones.

         * 'R CMD check' is no longer broken (without a check result
           and no explanation in '00check.log') for a package which
           declares an invalid 'VignetteBuilder' in 'DESCRIPTION' but
           has no vignettes.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri May 31 04:41:09 2024 UTC (2 years, 5 months ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -1 lines
(math/R) regen distino, sorry

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon May 27 20:45:14 2024 UTC (2 years, 5 months ago) by mef
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +190 -7 lines
(math/R) Updated 4.3.3. to 4.4.0

NEWS for R version 4.4.0 (2024-04-24)

CHANGES IN R 4.4.0
SIGNIFICANT USER-VISIBLE CHANGES:
*   Startup banners, R --version, sessionInfo() and R CMD check no longer report
    (64-bit) as part of the platform as this is almost universal – the increasingly rare
    32-bit platforms will still report (32-bit).
    On Windows, ditto for window titles.

*   is.atomic(NULL) now returns FALSE, as NULL is not an atomic vector.
    Strict back-compatibility would replace is.atomic(foo) by (is.null(foo) ||
    is.atomic(foo)) but should happen only sparingly.
    NEW FEATURES:

*   The confint() methods for "glm" and "nls" objects have been copied to the
    stats package. Previously, they were stubs which called versions in package MASS.
    The MASS namespace is no longer loaded if you invoke (say) confint(glmfit).
    Further, the "glm" method for profile() and the plot() and pairs() methods
    for class "profile" have been copied from MASS to stats. (profile.nls() and
    plot.profile.nls() were already in stats.)

*   The confint() and profile methods for "glm" objects have gained a possibility to
    do profiling based on the Rao Score statistic in addition to the default Likelihood
    Ratio. This is controlled by a new test = argument.

* The pairs() method for "profile" objects has been extended with a
    which = argument to allow plotting only a subset of the
    parameters.

* The "glm" method for anova() computes test statistics and p-values
  by default, using a chi-squared test or an F test depending on whether
  the dispersion is fixed or free.  Test statistics can be suppressed by
  giving argument test a false logical value.

* In setRepositories() the repositories can be set using their names
    via name = instead of index ind =.

* methods() and .S3methods() gain a all.names option for the (rare)
  case where functions starting with a ‘.’ should be included.

* Serializations can now be interrupted (e.g., by Ctrl-C on a
  Unix-alike) if they take too long, e.g., from save.image(), thanks to
  suggestions by Ivan Krylov and others on R-devel.

* New startup option ‘--max-connections’ to set the maximum number of
  simultaneous connections for the session. Defaults to 128 as before:
  allowed values up to 4096 (but resource limits may in practice
  restrict to smaller values).

* R on Windows (since Windows 10 2004) now uses the new Segment Heap
  allocator.  This may improve performance of some memory-intensive
  applications.

* When R packages are built, typically by R CMD build <pkg>, the new
  --user=<build_user> option overrides the (internally determined) user
  name, currently Sys.info()["user"] or LOGNAME. This is a (modified)
  fulfillment of Will Landau’s suggestion in PR#17530.

* tools::testInstalledBasic() gets new optional arguments outDir and
  testSrcdir, e.g., allowing to use it in a builddir != srcdir setup,
  and in standard “binary” Windows installation if a source ‘tests/’
  folder is present.

* range(<DT_with_Inf>, finite = TRUE) now work for objects of class
  "Date", "POSIXct", and "POSIXlt" with infinite entries, analogously to
  range.default(), as proposed by Davis Vaughan on R-devel. Other
  range()-methods can make use of new function .rangeNum().

* New .internalGenerics object complementing .S3PrimitiveGenerics, for
    documentation and low-level book-keeping.

* grid() now invisibly returns the x- and y- coordinates at which the
  grid-lines were drawn.

*   norm(., type) now also works for complex matrices.

* kappa(., exact = TRUE, norm = *) now works for all norms and also
  for complex matrices. In symmetric / triangular cases, the new
  argument uplo = "U" | "L" allows the upper or lower triangular part to
  be specified.

* memDecompress(type = "unknown") recognizes compression in the
    default ‘zlib’ format as used by memCompress(type = "gzip").

* memCompress() and memDecompress() will use the libdeflate library
  (https: //github.com/ebiggers/libdeflate) if installed. This uses the
  same type of compression for type = "gzip" but is 1.5-2x faster than
  the system libz library on some common platforms: the speed-up may
  depend on the library version.

* diff() for objects of class "Date", "POSIXct", and "POSIXlt" accepts
    a units argument passed via ....

* Dynamic help now does a much better job of rendering package
    ‘DESCRIPTION’ metadata.

* Rprof() gains an event argument and support for elapsed (real) time
profiling on Unix (PR#18076).

*   filled.contour() gains a key.border argument.

* tools::update_pkg_po() gets arguments pot_make and mo_make for not
  re-making the corresponding files, and additionally a verbose
  argument.

* Hexadecimal string colour specifications are now accepted in short
  form, so, for example, we can use "#123", which is equivalent to
  "#112233".  Thanks to MikeFC for the original idea and Ella Kaye,
  Malcolm Barrett, George Stagg, and Hanne Oberman for the patch.

*   Plain-text help shows \var markup by angle brackets.

* The new experimental primitive function declare() is intended to
  eventually allow information about R code to be communicated to the
  interpreter, compiler, and code analysis tools. The syntax for
  declarations is still being developed.

* Functions psmirnov(), qsmirnov() and rsmirnov() in package stats
  have had argument two.sided renamed to alternative, to take into
  account that the permutation distributions of the one-sided statistics
  can be different in the case of ties. Consequence of PR#18582.

*   sort() is now an implicit S4 generic in methods.

* Formatting and printing, format(z), print(z), of complex vectors z
  no longer zap relatively small real or imaginary parts to zero, fixing
  PR#16752. This is an API change, as it was documented previously to
  round real and imaginary parts together on purpose, producing nicer
  looking output. As mentioned, e.g. in the PR, this change is
  compatible with many other “R-like” programming environments.  We have
  simplified the internal code and now basically format the real and
  imaginary parts independently of each other.

* New experimental functions Tailcall() and Exec() to support writing
    stack-spaceefficient recursive functions.

* Where characters are attempted to be plotted by pdf(), postscript()
  and xfig() which are not in the selected 8-bit character set (most
  often Latin-1) and the R session is using a UTF-8 locale, the warning
  messages will show the UTF-8 character rather than its bytes and one
  dot will be substituted per character rather than per byte.
  (Platforms whose iconv() does transliteration silently plot the
  transliteration.)  In a UTF-8 locale some transliterations are now
  done with a warning (e.g., dashes and Unicode minus to hyphen,
  ligatures are expanded, permille (‘‰’) is replaced by ‘o/oo’),
  although the OS may have got there first. These are warnings as they
  will continue to be replaced by dots in earlier versions of R.

* The matrix multiplication functions crossprod() and tcrossprod() are
  now also primitive and S3 generic, as %*% had become in R 4.3.0.

* source() and example() have a new optional argument catch.aborts
  which allows continued evaluation of the R code after an error.

* The non-Quartz tiff() devices allow additional types of compression
  if supported by the platform’s ‘libtiff’ library.

*   The list of base and recommended package names is now provided by
    tools::standard_package_names().

* cairo_pdf() and cairo_ps() default to onefile = TRUE to closer match
  pdf() and postscript().

* New option catch.script.errors provides a documented way to catch
  errors and then continue in non-interactive use.

* L %||% R newly in base is an expressive idiom for the phrases
  if(!is.null(L)) L else R or if(is.null(L)) R else L.

* The return value from warnings() now always inherits from "warnings"
    as documented, now also in the case of no warnings where it
    previously returned NULL.

*   as.complex("1i") now returns 0 + 1i instead of NA with a warning.

* z <- c(NA, 1i) now keeps the imaginary part Im(z[1]) == 0, no longer
  coercing to NA_complex_. Similarly, cumsum(z) correctly sums real and
  imaginary parts separately, i.e., without “crosstalk” in case of NAs.

*   On Alpine Linux iconv() now maps "latin2", "latin-2", "latin9" and "latin-9"
    to encoding names the OS knows about (case-insensitively).

* iconv(sub = "Unicode") now always zero-pads to four (hex) digits,
  rather than to 4 or 8. (This seems to have become the convention
  once Unicode restricted the number of Unicode points to 221 − 1
  and so will never need more than 6 digits.)

*   NCOL(NULL) now returns 0 instead of 1, for consistency with cbind().

* The information for the Euro glyph missing from the Adobe ‘.afm’
  files for the Courier, Helvetica and Times families has been copied
  from their URW equivalents – this will improve vertical centring in
  the pdf() and postscript() devices.

* The included BLAS sources have been updated to those shipped with
  LAPACK version 3.12.0. The changes are almost entirely cosmetic.


*   The included LAPACK sources have been updated to version 3.12.0 and some further
double-complex routines added.

* There are new font families for the 2014–5 URW 2.0 fonts (see ?pdf)
  which are included in recent versions of Ghostscript. These have font
  widths for most Greek glyphs and a few others which were missing from
  the original versions (whose font families remain available for
  reproducibility, although Ghostscript-based viewers will render using
  the 2.0 versions).

* Improve the large-n efficiency of as.matrix(<dist>), thanks an R
  contributors effort, notably by Tim Taylor and Heather Turner, see
  PR#18660.

*   The default and numeric methods of all.equal() get a check.class option.

* zapsmall() gets new optional arguments, function mFUN and min.d, for
  extra flexibility; fulfills a wish in PR#18199. Also, it is now an
  implicit S4 generic in package methods.

*   The Rd filter for aspell() gains an ignore argument.

* New generic function sort_by(), primarily useful for the data.frame
  method which can be used to sort rows of a data frame by one or more
  columns.

*   The icence headers for the RPC code in ‘src/extra/xdr’ have been updated to use
    the GPL-compatible licence published by Oracle America in 2010.

*   New function pkg2HTML() in tools to create single-page HTML reference manuals for
    R packages.

* The byte code evaluator now uses less C stack space for recursive
  calls to bytecompiled functions. It also makes more of an effort to
  avoid allocations for scalar return values.

* New completion option backtick (disabled by default) allows
  non-syntactic completions to be wrapped in backquotes. This is
  currently only useful for Jupyter notebooks via the IRkernel package,
  and may cause problems for other backends.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Apr 28 14:26:43 2024 UTC (2 years, 6 months ago) by mef
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +8 -2 lines
(math/R) Updated 4.3.2 to 4.3.3

CHANGES IN R 4.3.3:

  NEW FEATURES:

         * 'iconv()' now fixes up variant encoding names such as
           '"utf8"' case-insensitively.

  DEPRECATED AND DEFUNCT:

         * The legacy 'encoding = "MacRoman"' is deprecated in 'pdf()'
           and 'postscript()': support was incomplete in earlier
           versions of R.

  BUG FIXES:

         * Arguments are now properly forwarded to methods on S4
           generics with ... in the middle of their formal arguments.
           This was broken for the case when a method introduced an
           argument but did not include ... in its own formals. Thanks
           to Herv<c3><a9> Pag<c3><a8>s for the report PR#18538.

         * Some invalid 'file' arguments to 'pictex()', 'postscript()'
           and 'xfig()' opened a file called 'NA' rather than throw an
           error.  These included 'postscript(NULL)' (which some people
           expected to work like 'pdf(NULL)').

         * Passing 'filename = NA' to 'svg()', 'cairo_pdf()',
           'cairo_ps()' or the Cairo-based bitmap devices opened a file
           called 'NA': it now throws an error.

         * 'quartz(file = NA)' opened a file called 'NA', including
           when used as a Quartz-based bitmap device.  It now gives an
           error.

         * 'rank(<long vector>)' now works, fixing PR#18617, thanks to
           Ilia Kats.

         * 'seq.int()' did not adequately check its 'length.out'
           argument.

         * 'match(<POSIXct>, .)' is correct again for differing time
           zones, ditto for '"POSIXlt"', fixing PR#18618 reported by
           Bastian Klein.

         * 'drop.terms(*, dropx = <0-length>)' now works, fixing
           PR#18563 as proposed by Mikael Jagan.

         * 'drop.terms(*)' keeps ' + offset(.)' terms when it should,
           PR#18565, and 'drop.terms()' no longer makes up a response,
           PR#18566, fixing both bugs thanks to Mikael Jagan.

         * 'getS3method("t", "test")' no longer finds the 't.test()'
           function, fixing PR#18627.

         * 'pdf()' and 'postscript()' support for the documented Adobe
           encodings '"Greek"' and '"Cyrilllic"' was missing (although
           the corresponding Windows' codepages could be used).

         * Computations of glyph metric information for 'pdf()' and
           'postscript()' did not take into account that
           transliteration could replace one character by two or more
           (only seen on macOS 14) and typically warned that the
           information was not known.

         * 'rank(x)' no longer overflows during integer addition, when
           computing rank average for largish but not-yet long vector
           'x', fixing PR#18630, thanks to Ilia Kats.

         * 'list.files()' on Windows now returns also files with names
           longer that 260 bytes (the Windows limit is 260 characters).
           Previously, some file names particularly with 'East Asian'
           characters were omitted.

         * 'cov2cor(<0 x 0>)' now works, fixing PR#18423 thanks to
           Mikael Jagan and Elin Waring.

         * 'cov2cor(<negative diagonal>)' and similar now give one
           warning instead of two, with better wording, fixing PR#18424
           thanks to Mikael Jagan.

         * 'tools'':: startDynamicHelp()' now ensures 'port' is in
           proper range, fixing PR#18645.

         * 'pbeta(x, a,b)' is correct now for 'x'=0 or 1 in the
           boundary cases where 'a' or 'b' or both are 0, fixing
           PR#18672 thanks to Michael Fay.

         * 'pmatch(x, table)' for large 'table', also called for data
           frame row selection, 'dfrm[nm, ]', is now interruptible,
           fixing PR#18656.

         * 'predict(<rank-deficient lm>, newdata=*)' fix computing of
           'nbasis', see Russ Lenth's comment 29 in PR#16158.

         * Added a work-around for a bug in macOS 14.3.1 and higher
           which prevents R plots in the Quartz Cocoa device from
           updating on screen.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Jan 8 07:18:26 2024 UTC (2 years, 10 months ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +20 -6 lines
(math/R) Updated 4.2.3 to 4.3.2 with remedy for strtoi

- pkgsrc side change
  strtoi function conflicted with NetBSD function. but it was
  referenced in the same file. Now it is referenced at various places.
  So it is renamed into strtoiR  (All the strings for now) by SUBST,
  thus including do_strtoi.
  (patches/patch-src_main_character.c is dropped)

- upstream info
CHANGES IN R 4.3.2:

  NEW FEATURES:

         * The default initialization of the '"repos"' option from the
           'repositories' file at startup can be skipped by setting
           environment variable 'R_REPOSITORIES' to 'NULL' such that
           'getOption("repos")' is empty if not set elsewhere.

         * 'qr.X()' is now an implicit S4 generic in 'methods'.

         * 'iconv(to = "ASCII//TRANSLIT")' is emulated using
           substitution on platforms which do not support it (notably
           Alpine Linux).  This should give a human-readable conversion
           in ASCII on all platforms (rather than 'NA_character_').

         * 'trans3d()' gains options 'continuous' and 'verbose'
           addressing the problem of possible "wrap around" when
           projecting too long curves, as reported by Achim Zeileis in
           PR#18537.

         * 'tools::showNonASCII()' has been rewritten to work better on
           macOS 14 (which has a changed implementation of 'iconv()').

         * 'tiff(type = "quartz")' (the default on macOS) now warns if
           'compression' is specified: it continues to be ignored.

  INSTALLATION on a UNIX-ALIKE:

         * There is some support for building with Intel's LLVM-based
           compilers on 'x86_64' Linux, such as (C) 'icx', (C++) 'ipcx'
           and (Fortran) 'ifx' from oneAPI 2023.x.y.

         * There is support for using LLVM's 'flang-new' as the Fortran
           compiler from LLVM 16.0.x (preferably 17.0.0 or later).

  UTILITIES:

         * 'R CMD check' reports the use of the Fortran 90 random
           number generator 'RANDOM_NUMBER()' and the subroutines to
           initialize it.

           'Writing R Extensions' has example code to use R's RNGs from
           Fortran.

  BUG FIXES:

         * 'substr(x, n, L) <- cc' now works (more) correctly for
           multibyte UTF-8 strings 'x' when 'L > nchar(x)', thanks to a
           report and patch by 'Architect 95'.

         * 'contrib.url(character())' now returns 0-length
           'character()' as documented, which also avoids spurious
           warnings from 'available.packages()' et al. in the edge case
           of an empty vector of repository URLs.

         * 'readChar(., 4e8)' no longer fails, thanks to Kodi Arfer's
           report (PR#18557).

         * 'lapply(<list>, as.data.frame)' no longer warns falsely for
           some base vector components.

         * Communication between parent and child processes in the
           'multicore' part of 'parallel' could fail on platforms that
           do not support an arbitrarily large payload in system
           functions 'read()'/'write()' on pipes (seen on macOS where a
           restriction to 'INT_MAX' bytes is documented, without doing
           a partial read unlike Linux). The payload is now split into
           1Gb chunks to avoid that problem. (PR#18571)

         * 'qqplot(x,y, conf.level=.)' gives better confidence bounds
           when 'length(x) != length(y)', thanks to Alexander Ploner's
           report and patch proposal (PR#18557).

         * 'norm(<0-length>, "2")' now gives zero instead of an error,
           as all the other norm types, thanks to Mikael Jagan's
           PR#18542.

         * Build-stage Rd macros \packageAuthor and \packageMaintainer
           now process 'Authors@R', fixing 'NA' results when the
           package 'DESCRIPTION' omits 'Author' and 'Maintainer'
           fields.

         * Formatting and printing complex numbers could give things
           like '0.1683-0i' because of rounding error: '-0i' is now
           replaced by '+0i'.

         * 'postscript()' refused to accept a 'title' comment
           containing the letter "W" (PR#18599).

         * 'isoreg(c(1,Inf))' signals an error instead of segfaulting,
           fixing PR#18603.

         * 'tiff(type = "Xlib")' was only outputting the last page of
           multi-page plots.

         * 'tools::latexToUtf8()' again knows about '\~{n}' and other
           letters with tilde, fixing a regression in R 4.3.0, and
           about '\^{i}' as an alternative to '\^{\i}' (similarly with
           other accents).  Furthermore, LaTeX codes for accented I
           letters are now correctly converted, also fixing related
           mistakes in 'tools::encoded_text_to_latex()'.

         * 'tar(*, tar = "internal")' no longer creates out-of-spec tar
           files in the very rare case of user or group names longer
           than 32 bytes, fixing PR#17871 with thanks to Ivan Krylov.

         * When using the "internal" timezone datetime code, adding a
           fraction of a second no longer adds one second, fixing
           PR#16856 from a patch by Ivan Krylov.

         * 'tools::checkRd()' no longer produces spurious notes about
           "unnecessary braces" from multi-line Rd results of \Sexpr
           macros.

CHANGES IN R 4.3.1:

  C-LEVEL FACILITIES:

         * The C-level API version of R's 'integrate()', 'Rdqags()' in
           'Applic.h', now returns the correct number of integrand
           evaluations 'neval', fixing PR#18515 reported and diagnosed
           by Stephen Wade.

         * The C prototypes for LAPACK calls 'dspgv' and 'dtptrs' in
           'R_exts/Lapack.h' had one too many and one too few character
           length arguments - but this has not caused any known issues.
           To get the corrected prototypes, include

                   #include <Rconfig.h> // for PR18534fixed
                   #ifdef PR18534fixed
                   # define usePR18534fix 1
                   #endif
                   #include <R_exts/Lapack.h>

           in your C/C++ code (PR#18534).

  INSTALLATION:

         * Many of the checks of esoteric Internet operations and those
           using unreliable external sites have been moved to a new
           target that is not run by default and primarily intended for
           the core developers.  To run them use

                   cd tests; make test-Internet-dev

  BUG FIXES:

         * '.S3methods()', typically called from 'methods()', again
           marks methods from package 'base' as 'visible'.

           Also, the visibility of non-'base' methods is again
           determined by the method's presence in 'search()'.

         * 'tools::Rdiff()' is now more robust against invalid strings,
           fixing installation tests on Windows without Rtools
           installed (PR#18530).

         * Fix (new) bug in 'hcl.colors(2, *)', by Achim Zeileis
           (PR#18523).

         * 'head(., <illegal>)' and 'tail(..)' now produce more useful
           '"Error in ...."' error messages, fixing PR#18362.

         * Package code syntax on Windows is checked in UTF-8 when
           UTF-8 is the native encoding.

         * 'na.contiguous(x)' now also returns the first run, when it
           is at the beginning and there is a later one of the same
           length; reported to R-devel, including a fix, by Georgi
           Boshnakov.  Further, by default, it modifies only an
           existing 'attr(*,"tsp")' but otherwise no longer sets one.

         * 'chol(<not pos.def>, pivot = <T|F>)' now gives a correct
           error or warning message (depending on 'pivot'), thanks to
           Mikael Jagan's (PR#18541).

CHANGES IN R 4.3.0:

  SIGNIFICANT USER-VISIBLE CHANGES:

         * Calling '&&' or '||' with LHS or (if evaluated) RHS of
           length greater than one is now always an error, with a
           report of the form

               'length = 4' in coercion to 'logical(1)'

           Environment variable '_R_CHECK_LENGTH_1_LOGIC2_' no longer
           has any effect.

  NEW FEATURES:

         * The included BLAS sources have been updated to those shipped
           with LAPACK version 3.10.1.  (This caused some
           platform-dependent changes to package check output.)  And
           then to the sources from LAPACK version 3.11.0 (with changes
           only to double complex subroutines).

         * The included LAPACK sources have been updated to include the
           four Fortran 90 routines rather than their Fortran 77
           predecessors.  This may give some different signs in SVDs or
           eigendecompositions..  (This completes the transition to
           LAPACK 3.10.x begun in R 4.2.0.)

         * The LAPACK sources have been updated to version 3.11.0.  (No
           new subroutines have been added, so this almost entirely bug
           fixes: Those fixes do affect some computations with 'NaN's,
           including R's 'NA'.)

         * The parser now signals _classederrors, notably in case of
           the pipe operator '|>'.  The error object and message now
           give line and column numbers, mostly as proposed and
           provided by Duncan Murdoch in PR#18328.

         * 'toeplitz()' is now generalized for asymmetric cases, with a
           'toeplitz2()' variant.

         * 'xy.coords()' and 'xyz.coords()' and consequently, e.g.,
           'plot(x,y, log = "y")' now signal a _classedwarning about
           negative values of y (where 'log(.)' is 'NA').  Such a
           warning can be specifically suppressed or caught otherwise.

         * Regular expression functions now check more thoroughly
           whether their inputs are valid strings (in their encoding,
           e.g. in UTF-8).

         * The performance of 'grep()', 'sub()', 'gsub()' and
           'strsplit()' has been improved, particularly with 'perl =
           TRUE' and 'fixed = TRUE'.  Use of 'useBytes = TRUE' for
           performance reasons should no longer be needed and is
           discouraged: it may lead to incorrect results.

         * 'apropos()' gains an argument 'dot_internals' which is used
           by the completion ('help(rcompgen)') engine to also see
           'base' internals such as '.POSIXct()'.

         * Support in 'tools::Rdiff()' for comparing uncompressed PDF
           files is further reduced - see its help page.

         * 'qqplot(x, y, ...)' gains 'conf.level' and 'conf.args'
           arguments for computing and plotting a confidence band for
           the treatment function transforming the distribution of 'x'
           into the distribution of 'y ' (Switzer, 1976, _Biometrika_).
           Contributed by Torsten Hothorn.

         * Performance of 'package_dependencies()' has been improved
           for cases when the number of dependencies is large.

         * Strings newly created by 'gsub()', 'sub()' and 'strsplit()',
           when any of the inputs is marked as '"bytes"', are also
           marked as '"bytes"'.  This reduces the risk of creating
           invalid strings and accidental substitution of bytes deemed
           invalid.

         * Support for 'readLines(encoding = "bytes")' has been added
           to allow processing special text files byte-by-byte, without
           creating invalid strings.

         * 'iconv(from = "")' now takes into account any declared
           encoding of the input elements and uses it in preference to
           the native encoding.  This reduces the risk of accidental
           creation of invalid strings, particularly when different
           elements of the input have different encoding (including
           '"bytes"').

         * Package repositories in 'getOption("repos")' are now
           initialized from the 'repositories' file when 'utils' is
           loaded (if not already set, e.g., in '.Rprofile').  (From a
           report and patch proposal by Gabriel Becker in PR#18405.)

         * 'compactPDF()' gets a 'verbose' option.

         * 'type.convert()' and hence 'read.table()' get new option
           'tryLogical = TRUE' with back compatible default.  When set
           to false, converts '"F"' or '"T"' columns to character.

         * Added new unit prefixes '"R"' and '"Q"' for abbreviating
           (unrealistically large) sizes beyond 10^{27} in 'standard =
           "SI"', thanks to Henrik Bengtsson's PR#18435.

         * 'as.data.frame()''s default method now also works fine with
           atomic objects inheriting from classes such as '"roman"',
           '"octmode"' and '"hexmode"', such fulfilling the wish of
           PR#18421, by Benjamin Feakins.

         * The 'as.data.frame.vector()' utility now errors for
           wrong-length 'row.names'.  It warned for almost six years,
           with "Will be an error!".

         * 'sessionInfo()' now also contains 'La_version()' and reports
           codepage and timezone when relevant, in both 'print()' and
           'toLatex()' methods which also get new option 'tzone' for
           displaying timezone information when 'locale = FALSE'.

         * New function 'R_compiled_by()' reports the C and Fortran
           compilers used to build R, if known.

         * 'predict(<lm>, newdata = *)' no longer unnecessarily creates
           an 'offset' of all '0's.

         * 'solve()' for complex inputs now uses argument 'tol' and by
           default checks for 'computational singularity' (as it long
           has done for numeric inputs).

         * 'predict(<rank-deficient lm>, newdata=*)' now obeys a new
           argument 'rankdeficient', with new default '"warnif"',
           warning only if there are non-estimable cases in 'newdata'.
           Other options include 'rankdeficient = "NA"', predicting
           'NA' for non-estimable 'newdata' cases.  This addresses
           PR#15072 by Russ Lenth and is based on his original proposal
           and discussions in PR#16158 also by David Firth and Elin
           Waring.  Still somewhat experimental.

         * 'Rgui' console implementation now works better with the
           'NVDA' screen reader when the full blinking cursor is
           selected.  The underlying improvements in cursor handling
           may help also other screen readers on Windows.

         * The drop-field control in GraphApp can now be left with the
           TAB key and all controls can be navigated in the reverse
           order using the Shift+TAB key, improving accessibility of
           the 'Rgui' configuration editor.

         * 'qnorm(<very large negative>, log.p=TRUE)' is now fully
           accurate (instead of to "only" minimally five digits).

         * 'demo(error.catching)' now also shows off 'withWarnings()'
           and 'tryCatchWEMs()'.

         * As an experimental feature the placeholder '_' can now also
           be used in the 'rhs' of a forward pipe '|>' expression as
           the first argument in an extraction call, such as '_$coef'.
           More generally, it can be used as the head of a chain of
           extractions, such as '_$coef[[2]]'.

         * Spaces in the environment variable used to choose the R
           session's temporary directory ('TMPDIR', 'TMP' and 'TEMP'
           are tried in turn) are now fatal.  (On Windows the 'short
           path' version of the path is tried and used if that does not
           contain a space.)

         * 'all.equal.numeric()' gets a new optional switch 'giveErr'
           to return the numeric error as attribute.  Relatedly,
           'stopifnot(all.equal<some>(a, b, ..))' is as "smart" now, as
           'stopifnot(all.equal(....))' has been already, thus allowing
           customized 'all.equal<Some>()' wrappers.

         * R on Windows is now able to work with path names longer than
           260 characters when these are enabled in the system
           (requires at least Windows 10 version 1607).  Packages
           should be updated to work with long paths as well, instead
           of assuming 'PATH_MAX' to be the maximum length.  Custom
           front-ends and applications embedding R need to update their
           manifests if they wish to allow this feature.  See
           <https://blog.r-project.org/2023/03/07/path-length-limit-on-windows>
           for more information.

         * 'Object not found' and 'Missing argument' errors now give a
           more accurate error context. Patch provided by Lionel Henry
           in PR#18241.

         * The '@' operator is now an S3 generic. Based on
           contributions by Tomasz Kalinowski in PR#18482.

         * New generic 'chooseOpsMethod()' provides a mechanism for
           objects to resolve cases where two suitable methods are
           found for an Ops Group Generic. This supports experimenting
           with alternative object systems. Based on contributions by
           Tomasz Kalinowski in PR#18484.

         * 'inherits(x, what)' now accepts values other than a simple
           character vector for argument 'what'. A new generic,
           'nameOfClass()', is called to resolve the class name from
           'what'. This supports experimenting with alternative object
           systems. Based on contributions by Tomasz Kalinowski in
           PR#18485.

         * Detection of BLAS/LAPACK in use ('sessionInfo()') with
           FlexiBLAS now reports the current backend.

         * The '"data.frame"' method for 'subset()' now warns about
           extraneous arguments, typically catching the use of '='
           instead of '==' in the 'subset' expression.

         * Calling 'a:b' when numeric 'a' or 'b' is longer than one may
           now be made into an error by setting environment variable
           '_R_CHECK_LENGTH_COLON_' to a true value, along the proposal
           in PR#18419 by Henrik Bengtsson.

         * 'density(x, weights = *)' now warns if automatic bandwidth
           selection happens without using 'weights'; new optional
           'warnWbw' may suppress the warning.  Prompted by Christoph
           Dalitz' PR#18490 and its discussants.

         * 'rm(list = *)' is faster and more readable thanks to Kevin
           Ushey's PR#18492.

         * The 'plot.lm()' function no longer produces a normal Q-Q
           plot for GLMs. Instead it plots a half-normal Q-Q plot of
           the absolute value of the standardized deviance residuals.

         * The 'print()' method for class '"summary.glm"' no longer
           shows summary statistics for the deviance residuals by
           default.  Its optional argument 'show.residuals' can be used
           to show them if required.

         * The 'tapply()' function now accepts a data frame as its 'X'
           argument, and allows 'INDEX' to be a formula in that case.
           'by.data.frame()' similarly allows 'INDICES' to be a
           formula.

         * The performance of 'df[j] <- value' (including for missing
           'j') and 'write.table(df)' has been improved for data frames
           'df' with a large number of columns.  (Thanks to Gabriel
           Becker's PR#18500, PR#18503 and discussants, prompted by a
           report from Toby Dylan Hocking on the R-devel mailing list.)

         * The matrix multiply operator '%*%' is now an S3 generic,
           belonging to new group generic 'matrixOps'.  From Tomasz
           Kalinowski's contribution in PR#18483.

         * New function 'array2DF()' to convert arrays to data frames,
           particularly useful for the list arrays created by
           'tapply()'.

  DATES and TIMES:

         * On platforms where (non-UTC) datetimes before 1902 (or
           before 1900 as with system functions on recent macOS) are
           guessed by extrapolating time zones from 1902-2037, there is
           a warning at the first use of extrapolation in a session.
           (As all time zones post 2037 are extrapolation, we do not
           warn on those.)

         * (Platforms using '--with-internal-tzone', including Windows
           and by default macOS). How years are printed in dates or
           date-times can be controlled by environment variable
           'R_PAD_YEARS_BY_ZERO'.  The default remains to pad to 4
           digits by zeroes, but setting value 'no' gives no padding
           (as used by default by 'glibc').

         * 'strftime()' tries harder to determine the offset for the
           '"%z"' format, and succeeds on the mainstream R platforms.

         * 'strftime()' has a limit of 2048 bytes on the string
           produced - attempting to exceed this is an error.
           (Previously it silently truncated at 255 bytes.)

         * 'sessionInfo()' records (and by default prints) the system
           time zone as part of the locale information.  Also, the
           source (system/internal) of the date-time conversion and
           printing functions.

         * Objects of class '"POSIXlt"' created in this version of R
           always have 11 components: component 'zone' is always set,
           and component 'gmtoff' is set for times in UTC and usually
           set on the (almost all) platforms which have C-level
           support, otherwise is 'NA'.

         * There are comprehensive validity checks on the structure of
           objects of class '"POSIXlt"' when converting (including
           formatting and printing).  (This avoids mis-conversions of
           hand-crafted objects.)

         * There is some support for using the native date-time
           routines on macOS: this is only viable on recent versions
           (e.g. 12.6 and 13) and does get wrong some historical
           changes (before 1900, during WWII).  Use of
           '--with-internal-tzone' remains the default.

         * 'as.POSIXct(<numeric>)' and 'as.POSIXlt(.)' (without
           specifying 'origin') now work.  So does
           'as.Date(<numeric>)'.

         * 'as.Date.POSIXct(., tz)' now treats several 'tz' values,
           notably '"GMT"' as equivalent to '"UTC"', proposed and
           improved by Michael Chirico and Joshua Ulrich in PR#17674.

         * Experimental 'balancePOSIXlt()' utility allows using
           "ragged" and or out-of-range '"POSIXlt"' objects more
           correctly, e.g., in subsetting and subassignments.  Such
           objects are now documented.

           More experimentally, a '"POSIXlt"' object may have an
           attribute '"balanced"' indicating if it is known to be
           filled or fully balanced.

         * Functions 'axis.Date()' and 'axis.POSIXct()' are rewritten
           to gain better default tick locations and better default
           formats by using 'prettyDate()'. Thanks to Swetlana
           Herbrandt.

         * The mapping of Windows' names for time zones to IANA's
           'Olson' names has been updated.  When ICU is available (it
           is by default), it is used to get a mapping for the current
           region set in Windows.  This can be overridden by setting
           environment variable 'TZ' to the desired Olson name - see
           'OlsonNames()' for those currently available.

  GRAPHICS:

         * The graphics engine version, 'R_GE_version', has been bumped
           to '16' and so packages that provide graphics devices should
           be reinstalled.

         * The 'grDevices' and 'grid' packages have new functions for
           rendering typeset glyphs, primarily:
           'grDevices::glyphInfo()' and 'grid::grid.glyph()'.

           Rendering of typeset glyphs is only supported so far on the
           Cairo-based graphics devices and on the 'pdf()' and
           'quartz()' devices.

         * The defined behaviour for '"clear"' and '"source"'
           compositing operators (via 'grid::grid.group()') has been
           changed (to align better with simple interpretation of
           original Porter-Duff definitions).

         * Support for gradients, patterns, clipping paths, masks,
           groups, compositing operators, and affine transformations
           has been added to the 'quartz()' device.

  INSTALLATION on a UNIX-ALIKE:

         * A system installation of generic LAPACK 3.10.0 or later will
           be preferred to the version in the R sources.

           'configure' option '--with-lapack=no' (equivalently
           '--without-lapack') forces compilation of the internal
           LAPACK sources.

           If '--with-lapack' is not specified, a system 'liblapack' is
           looked for and used if it reports version 3.10.0 or later
           and does not contain BLAS routines.

           Packages using LAPACK will need to be reinstalled if this
           changes to using an external library.

         * On 'aarch64' Linux platforms using GCC, 'configure' now
           defaults to '-fPIC' (instead of '-fpic'), as desired in
           PR#18326.

         * 'configure' now checks conversion of datetimes between
           'POSIXlt' and 'POSIXct' around year 2020.  Failure (which
           has been seen on platforms missing 'tzdata') is fatal.

         * If 'configure' option '--with-valgrind-instrumentation' is
           given value '1' or '2', option
           '--with-system-valgrind-headers' is now the default and
           ignored (with a warning).  It is highly recommended that the
           system headers are installed alongside 'valgrind': they are
           part of its packaging on some Linux distributions and
           packaged separately (e.g. in the 'valgrind-devel' RPM) on
           others.  'configure' will give a warning if they are not
           found.

           The system headers will be required in a future release of R
           to build with 'valgrind' instrumentation.

         * 'libcurl' 8.x is now accepted by 'configure': despite a
           change in major version number it changes neither API nor
           ABI.

  INSTALLATION on WINDOWS:

         * The makefiles and installer scripts for Windows have been
           tailored to 'Rtools43', an update of the 'Rtools42'
           toolchain.  It is based on 'gcc' 12 and newer versions of
           MinGW-W64, binutils and libraries.  At this time R-devel can
           still be built using Rtools42 without changes, but when
           R-devel is installed via the installer, it will by default
           look for Rtools43.

         * Old make targets 'rsync-extsoft' and 32-bit ones that are no
           longer needed have been removed.

         * Default builds (including for packages) no longer select
           C99.  Thus the C standard used is the default for the
           compiler, which for the toolchain in 'Rtools43' is C17.
           (This is consistent with Unix builds.)

  PACKAGE INSTALLATION:

         * The default C++ standard has been changed to C++17 where
           available (which it is on all currently checked platforms):
           if not C++14 or C++11 is used if available otherwise C++ is
           not supported.

         * 'USE_FC_LEN_T' is the default: this uses the correct
           (compiler-dependent) prototypes for Fortran BLAS/LAPACK
           routines called from C/C++, and requires adjustment of many
           such calls - see 'Writing R Extensions' <c2><a7>6.6.1.

         * There is initial support for C++23 as several compilers are
           now supporting '-std=c++23' or '-std=c++2b' or similar.  As
           for C++20, there no additional 'configure' checks for C++23
           features beyond a check that the compiler reports a
           '__cplusplus' value greater than that in the C++20 standard.
           C++ feature tests should be used.

         * There is support for a package to indicate the version of
           the C standard which should be used to compile it, and for
           the installing user to specify this.  In most cases R
           defaults to the C compiler's default standard which is C17
           (a `bug-fix' of C11) - earlier versions of R or compilers
           may have defaulted to C99.

           Current options are:

           USE_C17 Use a standard that is at most C17.  The intention
               is to allow legacy packages to still be installed when
               later C standards become the default, including packages
               using new keywords as identifiers or with K&R-style
               function declarations.  This will use C17 if available,
               falling back to C11.

           USE_C90 Use the C90 (aka C89) standard.  (As that standard
               did not require compilers to identify that version, all
               we can verify is that the compiler does not claim to be
               using a later standard.  It may accept C99 features -
               for example 'clang' accepts // to make comments.)

           USE_C99 Use the C99 standard. This should be rarely needed -
               it avoids the few new features of C11/C17 which can be
               useful if a package assumes them if C17 is specified and
               they are not implemented.

           USE_C23 Use C23 (or in future, later).  Compiler/library
               support for C23 is still being implemented, but LLVM
               clang from 15.0.0 and the upcoming GCC 13 have quite
               extensive support.

           These can be specified as part of the 'SystemRequirements'
           field in the package's 'DESCRIPTION' file or _viaoptions
           '--use-C17' and so on of 'R CMD INSTALL' and 'R CMD SHLIB'.

           For further details see "Writing R Extensions" <c2><a7>1.2.5.

         * (Windows) A 'src/Makefile.ucrt' or 'src/Makefile.win' file
           is now included after 'R_HOME/etcR_ARCH/Makeconf' and so no
           longer needs to include that file itself.  Installation of a
           package with such a file now uses a site 'Makevars' file in
           the same way as a package with a 'src/Makevars.win' file
           would.

         * 'configure' is now passed crucial variables such as 'CC' and
           'CFLAGS' in its environment, as many packages were not
           setting them (as documented in 'Writing R Extensions' <c2><a7>1.2).

           This has most effect where 'configure' is used to compile
           parts of the package - most often by 'cmake' or 'libtool'
           which obfuscate the actual compile commands used.

           Also used for 'configure.win' and 'configure.ucrt' on
           Windows.

  FORTRAN FLAGS:

         * The flag '-fno-optimize-sibling-calls' is no longer forced
           for 'gfortran' 7 and later.  It should no longer be needed
           now using 'hidden' character-length arguments when calling
           BLAS/LAPACK routines from C/C++ is the default even for
           packages.  (Unless perhaps packages call Fortran code from
           C/C++ without using R's headers and without allowing for
           these arguments.)

  C-LEVEL FACILITIES:

         * The deprecated S-compatibility macros 'DOUBLE_*' in
           'R_ext/Constants.h' (included by 'R.h') have been removed.

         * The deprecated legacy typedefs of 'Sint' and 'Sfloat' in
           header 'R.h' are no longer defined, and that header no
           longer includes header 'limits.h' from C nor 'climits' from
           C++.

         * New macro 'CAD5R()' is provided in 'Rinternals.h' and used
           in a few places in the R sources.

         * ALTREP now supports 'VECSXP' vectors. Contributed by Gabor
           Csardi in PR#17620.

         * The 'Rcomplex' definition (in header 'R_ext/Complex.h') has
           been extended to prevent possible mis-compilation when
           interfacing with Fortran (PR#18430).  The new definition
           causes compiler warnings with static initializers such as
           '{1, 2}', which can be changed to '{.r=1, .i=2}'.

           Using the new definition from C++ depends on compiler
           extensions supporting C features that have not been
           incorporated into the C++ standards but are available in
           'g++' and 'clang++': this may result in C++ compiler
           warnings but these have been worked around for recent
           versions of common compilers (GCC, Apple/LLVM clang, Intel).

           It is intended to change the inclusion of header
           'R_ext/Complex.h' by other R headers, so C/C++ code files
           which make use of 'Rcomplex' should include that header
           explicitly.

  UTILITIES:

         * 'R CMD check' does more checking of package '.Rd' files,
           warning about invalid email addresses and (some) invalid
           URIs and noting empty '\item' labels in description lists.

         * 'R CMD check' now also reports problems when reading package
           news in md (file 'NEWS.md') and (optionally) plain text
           (file 'NEWS') formats.

         * '_R_CHECK_TIMINGS_' defaults to a value from the environment
           even for 'R CMD check --as-cran'; this allows for
           exceptionally fast or slow platforms.

           It now applies to checking PDF and HTML versions of the
           manuals, and 'checking CRAN incoming feasibility'.

         * 'R CMD check' can optionally (but included in '--as-cran')
           check whether HTML math rendering _viaKaTeX works for the
           package '.Rd' files.

         * Non-interactive debugger invocations can be trapped by
           setting the environment variable
           '_R_CHECK_BROWSER_NONINTERACTIVE_' to a true value.  This is
           enabled by 'R CMD check --as-cran' to detect the use of
           leftover 'browser()' statements in the package.

         * The use of 'sprintf' and 'vsprintf' from C/C++ has been
           deprecated in macOS 13 and is a known security risk.  'R CMD
           check' now reports (on all platforms) if their use is found
           in compiled code: replace by 'snprintf' or 'vsnprintf'
           respectively. [*NB:* whether such calls get compiled into
           the package is platform-dependent.]

         * Where recorded at installation, 'R CMD check' reports the C
           and Fortran compilers used to build R.

           It reports the OS in use (if known, as given by 'osVersion')
           as well as that R was built for.

           It notes if a C++ standard was specified which is older than
           the current default: many packages have used C++11 to mean
           'not C++98' - as C++11 is the minimum supported since R
           4.0.0, that specification can probably be removed.

         * 'R CMD INSTALL' reports the compilers (and on macOS, the
           SDK) used, and this is copied to the output of 'R CMD
           check'.

           Where a C++ standard is specified, it is reported.

         * 'R CMD check''s 'checking compilation flags in Makevars' has
           been relaxed to accept the use of flags such as '-std=f2008'
           in 'PKG_FFLAGS'.

         * 'tools::buildVignettes()' has a new argument 'skip', which
           is used by 'R CMD check' to skip (and note) vignettes with
           unavailable '\VignetteDepends' (PR#18318).

         * New generic '.AtNames()' added to enable class-specific
           completions after '@'. The formerly internal function
           'findMatches()' is now exported, mainly for use in methods
           for '.DollarNames()' and '.AtNames()'.

  DEPRECATED AND DEFUNCT:

         * 'default.stringsAsFactors()' is defunct.

         * Calling 'as.data.frame.<class>()' directly (for 12 atomic
           classes) is going to be formally deprecated, currently
           activated by setting the environment variable
           '_R_CHECK_AS_DATA_FRAME_EXPLICIT_METHOD_' to non-empty,
           which also happens in 'R CMD check --as-cran'.

  BUG FIXES:

         * Hashed 'environment's with sizes less than 5 can now grow.
           (Reported to R-devel by Duncan Garmonsway.)

         * 'as.character(<Rd>, deparse = TRUE)' failed to re-escape
           curly braces in LaTeX-like text.  (Reported by Hadley
           Wickham in PR#18324.)

         * 'library()' now passes its 'lib.loc' argument when requiring
           'Depends' packages; reported (with fix) in PR#18331 by
           Mikael Jagan.

         * 'R CMD Stangle': improved message about 'Output' files.

         * 'head(x, n)' and 'tail(x, n)' now signal an error if 'n' is
           not numeric, instead of incidentally "working" sometimes
           returning all of 'x'.  Reported and discussed by Colin Fay,
           in PR#18357.

         * The '"lm"' method for 'summary()' now gives the correct
           F-statistic when the model contains an offset.  Reported in
           PR#18008.

         * 'C()' and '`contrasts<-`()' now preserve factor level names
           when given a function object (as opposed a function name
           which did preserve names). Reported in PR#17616.

         * 'c(a = 1, 2)[[]]' no longer matches '2' but rather signals a
           _classederror.  Reported and analysed by Davis Vaughan in
           PR#18367, a duplicate of PR#18004, by Jan Meis et al.  For
           consistency, 'NULL[[]]' is also erroneous now.  'x[[]] <- v'
           gives an error of the same class '"MissingSubscriptError"'.

         * The 'relist()' function of 'utils' now supports 'NULL'
           elements in the skeleton (PR#15854).

         * 'ordered(levels = *)' (missing 'x') now works analogously to
           'factor(, ordered=TRUE)'; reported (with fix) by Achim
           Zeileis in PR#18389.

         * User-defined Rd macro definitions can now span multiple
           lines, thanks to a patch from Duncan Murdoch. Previously,
           the Rd parser silently ignored everything after the first
           line.

         * Plain-text help ('tools::Rd2txt()') now preserves an initial
           blank line for text following description list items.

         * 'tools::Rd2HTML()' and 'tools::Rd2latex()' no longer split
           \arguments and \value lists at Rd comments.

         * 'tools::Rd2latex()' now correctly handles optional text
           outside \items of argument lists as well as bracketed text
           at the beginning of sections, e.g., \value{[NULL]}.

         * 'as.character(<POSIXt>)' now behaves more in line with the
           methods for atomic vectors such as numbers, and is no longer
           influenced by 'options()'.  Ditto for
           'as.character(<Date>)'.  The 'as.character()' method gets
           arguments 'digits' and 'OutDec' with defaults _not_
           depending on 'options()'.  Use of 'as.character(*, format =
           .)' now warns.

         * Similarly, the 'as.character.hexmode()' and '*.octmode()'
           methods also behave as 'good citizen' methods and back
           compatibility option 'keepStr = TRUE'.

         * The 'as.POSIXlt(<POSIXlt>)' and 'as.POSIXct(<POSIXct>)'
           default methods now do obey their 'tz' argument, also in
           this case.

         * 'as.POSIXlt(<Date>)' now does apply a 'tz' (time zone)
           argument, as does 'as.POSIXct()'; partly suggested by Roland
           Fu<c3><9f> on the R-devel mailing list.

         * 'as.Date.POSIXlt(x)' now also works when the list components
           are of unequal length, aka "partially filled" or "ragged".

         * 'expand.model.frame()' looked up variables in the wrong
           environment when applied to models fitted without 'data'.
           Reported in PR#18414.

         * 'time()' now (also) uses the 'ts.eps = getOption("ts.eps")'
           argument and thus by default rounds values very close to the
           start (or end) of a year.  Based on a proposal by Andre<c3><af> V.
           Kostyrka on R-help.

         * Printing of a 'factanal()' result with just one factor and
           'sort = TRUE' now works regularly, fixing PR#17863 by
           Timothy Bates, thanks to the 'R Contributors' working group.

         * Printing 0-length objects of class '"factor"', '"roman"',
           '"hexmode"', '"octmode"', '"person"', '"bibentry"', or
           '"citation"' now prints something better, one of which fixes
           PR#18422, reported by Benjamin Feakins.

         * 'Sys.timezone()' queries 'timedatectl' only if 'systemd' is
           loaded; addressing a report by Jan Gorecki in PR#17421.

         * The formula method of 'cor.test()' had scoping problems when
           'environment(formula)' was not the calling environment;
           reported with a patch proposal by Mao Kobayashi in PR#18439.

         * 'attach()' of an environment with active bindings now
           preserves the active bindings.  Reported by Kevin Ushey in
           PR#18425.

         * BLAS detection now works also with system-provided libraries
           not available as regular files.  This fixes detection of the
           Accelerate framework on macOS since Big Sur.  Reported by
           David Novgorodsky.

         * 'download.file()' gives a helpful error message in case of
           an invalid 'download.file.method' option, thanks to Colin
           Fay's report in PR#18455.

         * Sporadic crashes of 'Rterm' when using completion have been
           fixed.

         * 'Rprof()' is now more reliable.  A livelock in thread
           initialization with too short sampling interval has been
           fixed on macOS.  A deadlock in using the C runtime has been
           fixed on Windows.  A potential deadlock has been prevented
           on Unix.

         * Cursor placement in 'Rgui' now works even after a
           fixed-width font is selected.

         * Mandatory options ('options()') are now set on startup so
           that saving and restoring them always works (PR#18372).

         * Package installation, 'R CMD INSTALL' or
           'install.packages(*)', now parses each of the '<pkg>/R/*.R'
           files individually instead of first concatenating and then
           'parse()'ing the large resulting file.  This allows parser
           or syntax errors to be diagnosed with correct file names and
           line numbers, thanks to Simon Dedman's report and Bill
           Dunlap's patch in PR#17859.

           This _doesrequire syntactically self contained R source
           files now, fixing another inadvertent bug.

         * 'predict.lm(<model with offset>)' now finds the offset in
           the correct environment, thanks to Andr<c3><a9> Gillibert's report
           and patch in PR#18456.

         * 'getInitial(<formula>)' now finds the 'selfStart' model in
           the correct environment.  (Reported by Ivan Krylov in
           PR#18368.)

         * Fix for possible segfault when using recently-added graphics
           features, such as gradients, clipping paths, masks, and
           groups with 'pdf(file=NULL)'.

         * 'class(m) <- class(m)' no longer changes a matrix 'm' by
           adding a class _attribute_.

         * 'packageDate(pkg)' now only warns once if there is no 'pkg'.

         * When 'ts()' creates a multivariate time series, '"mts"', it
           also inherits from '"array"' now, and 'is.mts()' is
           documented _andstricter.

         * 'Rd2txt()' now preserves line breaks of \verb Rd content and
           from duplicated \cr.  The former also fixes the rendering of
           verbatim output from Rd \Sexpr in plain-text help.

         * 'uniroot(f, interval)' should no longer wrongly converge
           _outsidethe interval in some cases where 'abs(f(x)) ==
           Inf' for an 'x' at the interval boundary, thanks to posts by
           Ben Bolker and Serguei Sokol on R-devel.

         * Vectorized alpha handling in palette functions such as in
           'gray()', 'rainbow()', or 'hcl.colors()' works correctly
           now, thanks to Achim Zeileis' report and patch in PR#18476.

         * Formatting and 'print()'ing of 'bibentry' objects has
           dropped the deprecated 'citation.bibtex.max' argument, such
           that the 'bibtex' argument's default for 'print.bibentry()'
           depends directly on the 'citation.bibtex.max' option,
           whereas in 'format.bibentry()' the option no longer applies.

         * Attempting to use a character string naming a foreign
           function entry point in a foreign function call in a package
           will now signal an error if the packages has called
           'R_forceSymbols' to specify that symbols must be used.

         * An error in 'table()' could permanently set
           'options(warn=2)' promoting all subsequent warnings to
           errors.

         * The 'sigma()' function gave misleading results for binary
           GLMs.  A new method for objects of class '"glm"' returns the
           square root of the estimate of the dispersion parameter
           using the same calculation as 'summary.glm()'.

         * 'bs()' and 'ns()' in the (typical) case of automatic knot
           construction, when some of the supposedly inner knots
           coincide with boundary knots, now moves them inside (with a
           warning), building on PR#18442 by Ben Bolker.

         * 'R CMD' on Windows now skips the site profile with
           '--no-site-file' and '--vanilla' even when 'R_PROFILE' is
           set (PR#18512, from Kevin Ushey).

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Apr 22 14:01:19 2022 UTC (4 years, 6 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +76 -10 lines
Update to 4.2.0

Upstream changelog please visit:
https://stat.ethz.ch/pipermail/r-announce/2022/000683.html

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Nov 4 14:38:47 2021 UTC (5 years ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -1 lines
Update to 4.1.2

Upstream changes:
CHANGES IN R 4.1.2:

  C-LEVEL FACILITIES:

    * The workaround in headers R.h and Rmath.h (using namespace std;)
      for the Oracle Developer Studio compiler is no longer needed now
      C++11 is required so has been removed.  A couple more usages of
      log() (which should have been std::log()) with an int argument
      are reported on Solaris.

    * The undocumented limit of 4095 bytes on messages from the
      S-compatibility macros PROBLEM and MESSAGE is now documented and
      longer messages will be silently truncated rather than
      potentially causing segfaults.

    * If the R_NO_SEGV_HANDLER environment variable is non-empty, the
      signal handler for SEGV/ILL/BUS signals (which offers recovery
      user interface) is not set. This allows more reliable debugging
      of crashes that involve the console.

  DEPRECATED AND DEFUNCT:

    * The legacy S-compatibility macros PROBLEM, MESSAGE, ERROR, WARN,
      WARNING, RECOVER, ... are deprecated and will be hidden in R
      4.2.0. R's native interface of Rf_error and Rf_warning has long
      been preferred.

  BUG FIXES:

    * .mapply(F, dots, .) no longer segfaults when dots is not a list
      and uses match.fun(F) as always documented; reported by Andrew
      Simmons in PR#18164.

    * hist(<Date>, ...) and hist(<POSIXt>, ...)  no longer pass
      arguments for rect() (such as col and density) to axis().
      (Thanks to Sebastian Meyer's PR#18171.)

    * \Sexpr{ch} now preserves Encoding(ch). (Thanks to report and
      patch by Jeroen Ooms in PR#18152.)

    * Setting the RNG to "Marsaglia-Multicarry" e.g., by RNGkind(), now
      warns in more places, thanks to Andr'e Gillibert's report and
      patch in PR#18168.

    * gray(numeric(), alpha=1/2) no longer segfaults, fixing PR#18183,
      reported by Till Krenz.

    * Fixed dnbinom(x, size=<very_small>, .., log=TRUE) regression,
      reported by Martin Morgan.

    * as.Date.POSIXlt(x) now keeps names(x), thanks to Davis Vaughan's
      report and patch in PR#18188.

    * model.response() now strips an "AsIs" class typically, thanks to
      Duncan Murdoch's report and other discussants in PR#18190.

    * try() is considerably faster in case of an error and long call,
      as e.g., from some do.call().  Thanks to Alexander Kaever's
      suggestion posted to R-devel.

    * qqline(y = <object>) such as y=I(.), now works, see also
      PR#18190.

    * Non-integer mgp par() settings are now handled correctly in
      axis() and mtext(), thanks to Mikael Jagan and Duncan Murdoch's
      report and suggestion in PR#18194.

    * formatC(x) returns length zero character() now, rather than ""
      when x is of length zero, as documented, thanks to Davis
      Vaughan's post to R-devel.

    * removeSource(fn) now retains (other) attributes(fn).

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Jun 13 13:10:46 2021 UTC (5 years, 5 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +72 -1 lines
Update to 4.1.0

Upstream changes:
CHANGES IN R 4.1.0:

  FUTURE DIRECTIONS:

    * It is planned that the 4.1.x series will be the last to support
      32-bit Windows, with production of binary packages for that
      series continuing until early 2023.

  SIGNIFICANT USER-VISIBLE CHANGES:

    * Data set esoph in package datasets now provides the correct
      numbers of controls; previously it had the numbers of cases added
      to these.  (Reported by Alexander Fowler in PR#17964.)

  NEW FEATURES:

    * www.omegahat.net is no longer one of the repositories known by
      default to setRepositories().  (Nowadays it only provides source
      packages and is often unavailable.)

    * Function package_dependencies() (in package tools) can now use
      different dependency types for direct and recursive dependencies.

    * The checking of the size of tarball in R CMD check --as-cran
      <pkg> may be tweaked via the new environment variable
      _R_CHECK_CRAN_INCOMING_TARBALL_THRESHOLD_, as suggested in
      PR#17777 by Jan Gorecki.

    * Using c() to combine a factor with other factors now gives a
      factor, an ordered factor when combining ordered factors with
      identical levels.

    * apply() gains a simplify argument to allow disabling of
      simplification of results.

    * The format() method for class "ftable" gets a new option justify.
      (Suggested by Thomas Soeiro.)

    * New ...names() utility.  (Proposed by Neal Fultz in PR#17705.)

    * type.convert() now warns when its as.is argument is not
      specified, as the help file always said it _should_.  In that
      case, the default is changed to TRUE in line with its change in
      read.table() (related to stringsAsFactor) in R 4.0.0.

    * When printing list arrays, classed objects are now shown _via_
      their format() value if this is a short enough character string,
      or by giving the first elements of their class vector and their
      length.

    * capabilities() gets new entry "Rprof" which is TRUE when R has
      been configured with the equivalent of --enable-R-profiling (as
      it is by default).  (Related to Michael Orlitzky's report
      PR#17836.)

    * str(xS4) now also shows extraneous attributes of an S4 object
      xS4.

    * Rudimentary support for vi-style tags in rtags() and R CMD rtags
      has been added.  (Based on a patch from Neal Fultz in PR#17214.)

    * checkRdContents() is now exported from tools; it and also
      checkDocFiles() have a new option chkInternal allowing to check
      Rd files marked with keyword "internal" as well.  The latter can
      be activated for R CMD check via environment variable
      _R_CHECK_RD_INTERNAL_TOO_.

    * New functions numToBits() and numToInts() extend the raw
      conversion utilities to (double precision) numeric.

    * Functions URLencode() and URLdecode() in package utils now work
      on vectors of URIs.  (Based on patch from Bob Rudis submitted
      with PR#17873.)

    * path.expand() can expand ~user on most Unix-alikes even when
      readline is not in use.  It tries harder to expand ~, for example
      should environment variable HOME be unset.

    * For HTML help (both dynamic and static), Rd file links to help
      pages in external packages are now treated as references to
      topics rather than file names, and fall back to a file link only
      if the topic is not found in the target package. The earlier rule
      which prioritized file names over topics can be restored by
      setting the environment variable _R_HELP_LINKS_TO_TOPICS_ to a
      false value.

    * c() now removes NULL arguments before dispatching to methods,
      thus simplifying the implementation of c() methods, _but_ for
      back compatibility keeps NULL when it is the first argument.
      (From a report and patch proposal by Lionel Henry in PR#17900.)

    * Vectorize()'s result function's environment no longer keeps
      unneeded objects.

    * Function ...elt() now propagates visibility consistently with
      ..n.  (Thanks to Lionel Henry's PR#17905.)

    * capture.output() no longer uses non-standard evaluation to
      evaluate its arguments.  This makes evaluation of functions like
      parent.frame() more consistent.  (Thanks to Lionel Henry's
      PR#17907.)

    * packBits(bits, type="double") now works as inverse of
      numToBits().  (Thanks to Bill Dunlap's proposal in PR#17914.)

    * curlGetHeaders() has two new arguments, timeout to specify the
      timeout for that call (overriding getOption("timeout")) and TLS
      to specify the minimum TLS protocol version to be used for
      https:// URIs (_inter alia_ providing a means to check for sites
      using deprecated TLS versions 1.0 and 1.1).

    * For nls(), an optional constant scaleOffset may be added to the
      denominator of the relative offset convergence test for cases
      where the fit of a model is expected to be exact, thanks to a
      proposal by John Nash.  nls(*, trace=TRUE) now also shows the
      convergence criterion.

    * Numeric differentiation _via_ numericDeriv() gets new optional
      arguments eps and central, the latter for taking central divided
      differences.  The latter can be activated for nls() via
      nls.control(nDcentral = TRUE).

    * nls() now passes the trace and control arguments to getInitial(),
      notably for all self-starting models, so these can also be fit in
      zero-noise situations via a scaleOffset.  For this reason, the
      initial function of a selfStart model must now have ... in its
      argument list.

    * bquote(splice = TRUE) can now splice expression vectors with
      attributes: this makes it possible to splice the result of
      parse(keep.source = TRUE).  (Report and patch provided by Lionel
      Henry in PR#17869.)

    * textConnection() gets an optional name argument.

    * get(), exists(), and get0() now signal an error if the first
      argument has length greater than 1.  Previously additional
      elements were silently ignored.  (Suggested by Antoine Fabri on
      R-devel.)

    * R now provides a shorthand notation for creating functions, e.g.
      \(x) x + 1 is parsed as function(x) x + 1.

    * R now provides a simple native forward pipe syntax |>.  The
      simple form of the forward pipe inserts the left-hand side as the
      first argument in the right-hand side call.  The pipe
      implementation as a syntax transformation was motivated by
      suggestions from Jim Hester and Lionel Henry.

    * all.equal(f, g) for functions now by default also compares their
      environment(.)s, notably via new all.equal method for class
      function.  Comparison of nls() fits, e.g., may now need
      all.equal(m1, m2, check.environment = FALSE).

    * .libPaths() gets a new option include.site, allowing to _not_
      include the site library.  (Thanks to Dario Strbenac's suggestion
      and Gabe Becker's PR#18016.)

    * Lithuanian translations are now available.  (Thanks to Rimantas
      Zakauskas.)

    * names() now works for DOTSXP objects.  On the other hand, in
      R-lang, the R language manual, we now warn against relying on the
      structure or even existence of such dot-dot-dot objects.

    * all.equal() no longer gives an error on DOTSXP objects.

    * capabilities("cairo") now applies only to the file-based devices
      as it is now possible (if very unusual) to build R with Cairo
      support for those but not for X11().

    * There is optional support for tracing the progress of
      loadNamespace() - see its help.

    * (Not Windows.)  l10n_info() reports an additional element, the
      name of the encoding as reported by the OS (which may differ from
      the encoding part (if any) of the result from
      Sys.getlocale("LC_CTYPE").

    * New function gregexec() which generalizes regexec() to find _all_
      disjoint matches and well as all substrings corresponding to
      parenthesized subexpressions of the given regular expression.
      (Contributed by Brodie Gaslam.)

    * New function charClass() in package utils to query the
      wide-character classification functions in use (such as
      iswprint).

    * The names of quantile()'s result no longer depend on the global
      getOption("digits"), but quantile() gets a new optional argument
      digits = 7 instead.

    * grep(), sub(), regexp and variants work considerably faster for
      long factors with few levels.  (Thanks to Michael Chirico's
      PR#18063.)

    * Provide grouping of x11() graphics windows within a window
      manager such as Gnome or Unity; thanks to a patch by Ivan Krylov
      posted to R-devel.

    * The split() method for class data.frame now allows the f argument
      to be specified as a formula.

    * sprintf now warns on arguments unused by the format string.

    * New palettes "Rocket" and "Mako" for hcl.colors() (approximating
      palettes of the same name from the 'viridisLite' package).

      Contributed by Achim Zeileis.

    * The base environment and its namespace are now locked (so one can
      no longer add bindings to these or remove from these).

    * Rterm handling of multi-byte characters has been improved,
      allowing use of such characters when supported by the current
      locale.

    * Rterm now accepts ALT+ +xxxxxxxx sequences to enter Unicode
      characters as hex digits.

    * Environment variable LC_ALL on Windows now takes precedence over
      LC_CTYPE and variables for other supported categories, matching
      the POSIX behaviour.

    * duplicated() and anyDuplicated() are now optimized for integer
      and real vectors that are known to be sorted via the ALTREP
      framework. Contributed by Gabriel Becker via PR#17993.

  GRAPHICS:

    * The graphics engine version, R_GE_version, has been bumped to 14
      and so packages that provide graphics devices should be
      reinstalled.

    * Graphics devices should now specify deviceVersion to indicate
      what version of the graphics engine they support.

    * Graphics devices can now specify deviceClip.  If TRUE, the
      graphics engine will never perform any clipping of output itself.

      The clipping that the graphics engine does perform (for both
      canClip = TRUE and canClip = FALSE) has been improved to avoid
      producing unnecessary artifacts in clipped output.

    * The grid package now allows gpar(fill) to be a linearGradient(),
      a radialGradient(), or a pattern().  The viewport(clip) can now
      also be a grob, which defines a clipping path, and there is a new
      viewport(mask) that can also be a grob, which defines a mask.

      These new features are only supported so far on the Cairo-based
      graphics devices and on the pdf() device.

    * (Not Windows.)  A warning is given when a Cairo-based type is
      specified for a png(), jpeg(), tiff() or bmp() device but Cairo
      is unsupported (so type = "Xlib" is tried instead).

    * grSoftVersion() now reports the versions of FreeType and
      FontConfig if they are used directly (not _via_ Pango), as is
      most commonly done on macOS.

  C-LEVEL FACILITIES:

    * The _standalone_ libRmath math library and R's C API now provide
      log1pexp() again as documented, and gain log1mexp().

  INSTALLATION on a UNIX-ALIKE:

    * configure checks for a program pkgconf if program pkg-config is
      not found.  These are now only looked for on the path (like
      almost all other programs) so if needed specify a full path to
      the command in PKG_CONFIG, for example in file config.site.

    * C99 function iswblank is required - it was last seen missing ca
      2003 so the workaround has been removed.

    * There are new configure options --with-internal-iswxxxxx,
      --with-internal-towlower and --with-internal-wcwidth which allows
      the system functions for wide-character classification,
      case-switching and width (wcwidth and wcswidth) to be replaced by
      internal ones.  The first has long been used on macOS, AIX (and
      Windows) but this enables it to be unselected there and selected
      for other platforms (it is the new default on Solaris).  The
      second is new in this version of R and is selected by default on
      macOS and Solaris.  The third has long been the default and
      remains so as it contains customizations for East Asian
      languages.

      System versions of these functions are often minimally
      implemented (sometimes only for ASCII characters) and may not
      cover the full range of Unicode points: for example Solaris (and
      Windows) only cover the Basic Multilingual Plane.

    * Cairo installations without X11 are more likely to be detected by
      configure, when the file-based Cairo graphics devices will be
      available but not X11(type = "cairo").

    * There is a new configure option --with-static-cairo which is the
      default on macOS.  This should be used when only static cairo
      (and where relevant, Pango) libraries are available.

    * Cairo-based graphics devices on platforms without Pango but with
      FreeType/FontConfig will make use of the latter for font
      selection.

  LINK-TIME OPTIMIZATION on a UNIX-ALIKE:

    * Configuring with flag --enable-lto=R now also uses LTO when
      installing the recommended packages.

    * R CMD INSTALL and R CMD SHLIB have a new flag --use-LTO to use
      LTO when compiling code, for use with R configured with
      --enable-lto=R.  For R configured with --enable-lto, they have
      the new flag --no-use-LTO.

      Packages can opt in or out of LTO compilation _via_ a UseLTO
      field in the DESCRIPTION file.  (As usual this can be overridden
      by the command-line flags.)

  BUILDING R on Windows:

    * for GCC >= 8, FC_LEN_T is defined in config.h and hence character
      lengths are passed from C to Fortran in _inter alia_ BLAS and
      LAPACK calls.

    * There is a new text file src/gnuwin32/README.compilation, which
      outlines how C/Fortran code compilation is organized and
      documents new features:

        * R can be built with Link-Time Optimization with a suitable
          compiler - doing so with GCC 9.2 showed several
          inconsistencies which have been corrected.

        * There is support for cross-compiling the C and Fortran code
          in R and standard packages on suitable (Linux) platforms.
          This is mainly intended to allow developers to test later
          versions of compilers - for example using GCC 9.2 or 10.x has
          detected issues that GCC 8.3 in Rtools40 does not.

        * There is experimental support for cross-building R packages
          with C, C++ and/or Fortran code.

    * The R installer can now be optionally built to support a single
      architecture (only 64-bit or only 32-bit).

  PACKAGE INSTALLATION:

    * The default C++ standard has been changed to C++14 where
      available (which it is on all currently checked platforms): if
      not (as before) C++11 is used if available otherwise C++ is not
      supported.

      Packages which specify C++11 will still be installed using C++11.

      C++14 compilers may give deprecation warnings, most often for
      std::random_shuffle (deprecated in C++14 and removed in C++17).
      Either specify C++11 (see 'Writing R Extensions') or modernize
      the code and if needed specify C++14.  The latter has been
      supported since R 3.4.0 so the package's DESCRIPTION would need
      to include something like

           Depends: R (>= 3.4)

  PACKAGE INSTALLATION on Windows:

    * R CMD INSTALL and R CMD SHLIB make use of their flag --use-LTO
      when the LTO_OPT make macro is set in file etc/${R_ARCH}/Makeconf
      or in a personal/site Makevars file.  (For details see 'Writing R
      Extensions' SS4.5.)

      This provides a valuable check on code consistency.  It does work
      with GCC 8.3 as in Rtools40, but that does not detect everything
      the CRAN checks with current GCC do.

  PACKAGE INSTALLATION on macOS:

    * The default personal library directory on builds with
      --enable-aqua (including CRAN builds) now differs by CPU type,
      one of

            ~/Library/R/x86_64/x.y/library
            ~/Library/R/arm64/x.y/library

      This uses the CPU type R (and hence the packages) were built for,
      so when a x86_64 build of R is run under Rosetta emulation on an
      arm64 Mac, the first is used.

  UTILITIES:

    * R CMD check can now scan package functions for bogus return
      statements, which were possibly intended as return() calls (wish
      of PR#17180, patch by Sebastian Meyer). This check can be
      activated via the new environment variable
      _R_CHECK_BOGUS_RETURN_, true for --as-cran.

    * R CMD build omits tarballs and binaries of previous builds from
      the top-level package directory.  (PR#17828, patch by Sebastian
      Meyer.)

    * R CMD check now runs sanity checks on the use of LazyData, for
      example that a data directory is present and that
      LazyDataCompression is not specified without LazyData and has a
      documented value.  For packages with large LazyData databases
      without specifying LazyDataCompression, there is a reference to
      the code given in 'Writing R Extensions' SS1.1.6 to test the
      choice of compression (as in all the CRAN packages tested a
      non-default method was preferred).

    * R CMD build removes LazyData and LazyDataCompression fields from
      the DESCRIPTION file of packages without a data directory.

  ENCODING-RELATED CHANGES:

    * The parser now treats \Unnnnnnnn escapes larger than the upper
      limit for Unicode points (\U10FFFF) as an error as they cannot be
      represented by valid UTF-8.

      Where such escapes are used for outputting non-printable
      (including unassigned) characters, 6 hex digits are used (rather
      than 8 with leading zeros).  For clarity, braces are used, for
      example \U{0effff}.

    * The parser now looks for non-ASCII spaces on Solaris (as
      previously on most other OSes).

    * There are warnings (including from the parser) on the use of
      unpaired surrogate Unicode points such as \uD834.  (These cannot
      be converted to valid UTF-8.)

    * Functions nchar(), tolower(), toupper() and chartr() and those
      using regular expressions have more support for inputs with a
      marked Latin-1 encoding.

    * The character-classification functions used (by default) to
      replace the system iswxxxxx functions on Windows, macOS and AIX
      have been updated to Unicode 13.0.0.

      The character-width tables have been updated to include new
      assignments in Unicode 13.0.0.

    * The code for evaluating default (extended) regular expressions
      now uses the same character-classification functions as the rest
      of R (previously they differed on Windows, macOS and AIX).

    * There is a build-time option to replace the system's
      wide-character wctrans C function by tables shipped with R: use
      configure option --with-internal-towlower or (on Windows)
      -DUSE_RI18N_CASE in CFLAGS when building R.  This may be needed
      to allow tolower() and toupper() to work with Unicode characters
      beyond the Basic Multilingual Plane where not supported by system
      functions (e.g. on Solaris where it is the new default).

    * R is more careful when truncating UTF-8 and other multi-byte
      strings that are too long to be printed, passed to the system or
      libraries or placed into an internal buffer.  Truncation will no
      longer produce incomplete multibyte characters.

  DEPRECATED AND DEFUNCT:

    * Function plclust() from the package stats and
      package.dependencies(), pkgDepends(), getDepList(),
      installFoundDepends(), and vignetteDepends() from package tools
      are defunct.

    * Defunct functions checkNEWS() and readNEWS() from package tools
      and CRAN.packages() from utils have been removed.

    * R CMD config CXXCPP is defunct (it was deprecated in R 3.6.2).

    * parallel::detectCores() drops support for Irix (retired in 2013).

    * The LINPACK argument to chol.default(), chol2inv(),
      solve.default() and svd() has been defunct since R 3.1.0.  It was
      silently ignored up to R 4.0.3 but now gives an error.

    * Subsetting/indexing, such as ddd[*] or ddd$x on a DOTSXP
      (dot-dot-dot) object ddd has been disabled; it worked by accident
      only and was undocumented.

  BUG FIXES:

    * Many more C-level allocations (mainly by malloc and strdup) are
      checked for success with suitable alternative actions.

    * Bug fix for replayPlot(); this was turning off graphics engine
      display list recording if a recorded plot was replayed in the
      same session.  The impact of the bug became visible if resize the
      device after replay OR if attempted another savePlot() after
      replay (empty display list means empty screen on resize or empty
      saved plot).

    * R CMD check etc now warn when a package exports non-existing S4
      classes or methods, also in case of no "methods" presence.
      (Reported by Alex Bertram; reproducible example and patch by
      Sebastian Meyer in PR#16662.)

    * boxplot() now also accepts calls for labels such as ylab, the
      same as plot().  (Reported by Marius Hofert.)

    * The help page for xtabs() now correctly states that addNA is
      setting na.action = na.pass among others.  (Reported as PR#17770
      by Thomas Soeiro.)

    * The R CMD check <pkg> gives a longer and more comprehensible
      message when DESCRIPTION misses dependencies, e.g., in Imports:.
      (Thanks to the contributors of PR#17179.)

    * update.default() now calls the generic update() on the formula to
      work correctly for models with extended formulas.  (As reported
      and suggested by Neal Fultz in PR#17865.)

    * The horizontal position of leaves in a dendrogram is now correct
      also with center = FALSE.  (PR#14938, patch from Sebastian
      Meyer.)

    * all.equal.POSIXt() no longer warns about and subsequently ignores
      inconsistent "tzone" attributes, but describes the difference in
      its return value (PR#17277).  This check can be disabled _via_
      the new argument check.tzone = FALSE as suggested by Sebastian
      Meyer.

    * as.POSIXct() now populates the "tzone" attribute from its tz
      argument when x is a logical vector consisting entirely of NA
      values.

    * x[[2^31]] <- v now works.  (Thanks to the report and patch by
      Suharto Anggono in PR#17330.)

    * In log-scale graphics, axis() ticks and label positions are now
      computed more carefully and symmetrically in their range,
      typically providing _more_ ticks, fulfilling wishes in PR#17936.
      The change really corresponds to an improved axisTicks() (package
      grDevices), potentially influencing grid and lattice, for
      example.

    * qnorm(<very large negative>, log.p=TRUE) is now correct to at
      least five digits where it was catastrophically wrong,
      previously.

    * sum(df) and similar "Summary"- and "Math"-group member functions
      now work for data frames df with logical columns, notably also of
      zero rows.  (Reported to R-devel by Martin "b706".)

    * unsplit() had trouble with tibbles due to unsound use of rep(NA,
      len)-indexing, which should use NA_integer_ (Reported to R-devel
      by Mario Annau.)

    * pnorm(x, log.p = TRUE) underflows to -Inf slightly later.

    * show(<hidden S4 generic>) prints better and without quotes for
      non-hidden S4 generics.

    * read.table() and relatives treated an "NA" column name as missing
      when check.names = FALSE PR#18007.

    * Parsing strings containing UTF-16 surrogate pairs such as
      "\uD834\uDD1E" works better on some (uncommon) platforms.
      sprintf("%X", utf8ToInt("\uD834\uDD1E")) should now give "1D11E"
      on all platforms.

    * identical(x,y) is no longer true for differing DOTSXP objects,
      fixing PR#18032.

    * str() now works correctly for DOTSXP and related exotics, even
      when these are doomed.

      Additionally, it no longer fails for lists with a class and
      "irregular" method definitions such that e.g. lapply(*) will
      necessarily fail, as currently for different igraph objects.

    * Too long lines in environment files (e.g. Renviron) no longer
      crash R. This limit has been increased to 100,000 bytes.
      (PR#18001.)

    * There is a further workaround for FreeType giving incorrect
      italic font faces with cairo-based graphics devices on macOS.

    * add_datalist(*, force = TRUE) (from package tools) now actually
      updates an existing data/datalist file for new content.  (Thanks
      to a report and patch by Sebastian Meyer in PR#18048.)

    * cut.Date() and cut.POSIXt() could produce an empty last interval
      for breaks = "months" or breaks = "years".  (Reported as PR#18053
      by Christopher Carbone.)

    * Detection of the encoding of 'regular' macOS locales such as
      en_US (which is UTF-8) had been broken by a macOS change:
      fortunately these are now rarely used with en_US.UTF-8 being
      preferred.

    * sub() and gsub(pattern, repl, x, *) now keep attributes of x such
      as names() also when pattern is NA (PR#18079).

    * Time differences ("difftime" objects) get a replacement and a
      rep() method to keep "units" consistent.  (Thanks to a report and
      patch by Nicolas Bennett in PR#18066.)

    * The \RdOpts macro, setting defaults for \Sexpr options in an Rd
      file, had been ineffective since R 2.12.0: it now works again.
      (Thanks to a report and patch by Sebastian Meyer in PR#18073.)

    * mclapply and pvec no longer accidentally terminate parallel
      processes started before by mcparallel or related calls in
      package parallel (PR#18078).

    * grep and other functions for evaluating (extended) regular
      expressions handle in Unicode also strings not explicitly flagged
      UTF-8, but flagged native when running in UTF-8 locale.

    * Fixed a crash in fifo implementation on Windows (PR#18031).

    * Binary mode in fifo on Windows is now properly detected from
      argument open (PR#15600, PR#18031).

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jul 16 02:22:55 2020 UTC (6 years, 4 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +21 -8 lines
R: update to 4.0.2

CHANGES IN R 4.0.0:

  SIGNIFICANT USER-VISIBLE CHANGES:

    * Packages need to be (re-)installed under this version (4.0.0) of
      R.

    * matrix objects now also inherit from class "array", so e.g.,
      class(diag(1)) is c("matrix", "array").  This invalidates code
      incorrectly assuming that class(matrix_obj)) has length one.

      S3 methods for class "array" are now dispatched for matrix
      objects.

    * There is a new syntax for specifying _raw_ character constants
      similar to the one used in C++: r"(...)" with ... any character
      sequence not containing the sequence )".  This makes it easier to
      write strings that contain backslashes or both single and double
      quotes.  For more details see ?Quotes.

    * R now uses a stringsAsFactors = FALSE default, and hence by
      default no longer converts strings to factors in calls to
      data.frame() and read.table().

      A large number of packages relied on the previous behaviour and
      so have needed/will need updating.

    * The plot() S3 generic function is now in package base rather than
      package graphics, as it is reasonable to have methods that do not
      use the graphics package.  The generic is currently re-exported
      from the graphics namespace to allow packages importing it from
      there to continue working, but this may change in future.

      Packages which define S4 generics for plot() should be
      re-installed and package code using such generics from other
      packages needs to ensure that they are imported rather than rely
      on their being looked for on the search path (as in a namespace,
      the base namespace has precedence over the search path).


See ${PREFIX}/lib/R/doc/NEWS for full changes.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Jun 9 13:39:12 2019 UTC (7 years, 5 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +6 -2 lines
Update to 3.6.0

Upstream changes:
CHANGES IN R 3.6.0:

  SIGNIFICANT USER-VISIBLE CHANGES:

    * Serialization format version 3 becomes the default for
      serialization and saving of the workspace (save(), serialize(),
      saveRDS(), compiler::cmpfile()).  Serialized data in format 3
      cannot be read by versions of R prior to version 3.5.0.
      Serialization format version 2 is still supported and can be
      selected by version = 2 in the save/serialization functions.  The
      default can be changed back for the whole R session by setting
      environment variables R_DEFAULT_SAVE_VERSION and
      R_DEFAULT_SERIALIZE_VERSION to 2.  For maximal
      back-compatibility, files vignette.rds and partial.rdb generated
      by R CMD build are in serialization format version 2, and resave
      by default produces files in serialization format version 2
      (unless the original is already in format version 3).

    * The default method for generating from a discrete uniform
      distribution (used in sample(), for instance) has been changed.
      This addresses the fact, pointed out by Ottoboni and Stark, that
      the previous method made sample() noticeably non-uniform on large
      populations.  See PR#17494 for a discussion.  The previous method
      can be requested using RNGkind() or RNGversion() if necessary for
      reproduction of old results.  Thanks to Duncan Murdoch for
      contributing the patch and Gabe Becker for further assistance.

      The output of RNGkind() has been changed to also return the
      'kind' used by sample().

  NEW FEATURES:

    * Sys.setFileTime() has been vectorized so arguments path and time
      of length greater than one are now supported.

    * axis() gets new option gap.axis = NA for specifying a
      multiplication factor for the minimal "gap" (distance) between
      axis labels drawn.  Its default is 1 for labels _parallel_ to the
      axis, and 0.25 for perpendicular ones.

      Perpendicular labels no longer overlap, fixing bug PR#17384.

    * The default method of plot() gains new arguments xgap.axis = NA
      and ygap.axis = NA to be passed to the x- and y- axis(..,
      gap.axis=*) calls.

    * removeSource() now works not only for functions but also for some
      language objects.

    * as.call(), rep.int(), rep_len() and nchar() dispatch internally.

    * is(object, class2) looks for class2 in the calling namespace
      after looking in the namespace of class(object).

    * extendrange(.., f) with a length-2 f now extends separately to
      the left and the right.

    * lengths() dispatches internally to S4 methods.

    * download.file() on Windows now uses URLdecode() to determine the
      file extension, and uses binary transfer (mode = "wb") also for
      file extension .rds.

      The help page for download.file() now contains the same
      information on all platforms.

    * Setting C locale for collation _via_ environment variables LC_ALL
      and LC_COLLATE and _via_ a call to Sys.setlocale() now takes
      precedence over environment variable R_ICU_LOCALE.

    * There is a new function, nullfile(), to give the file name of the
      null system device (e.g., /dev/null) on the current platform.

    * There are two new options, keep.parse.data and
      keep.parse.data.pkgs, which control whether parse data are
      included into sources when keep.source or keep.source.pkgs is
      TRUE.  By default, keep.parse.data.pkgs is now FALSE, which
      changes previous behavior and significantly reduces space and
      time overhead when sources are kept when installing packages.

    * In rapply(x, ..), x can also be "list-like" and of length >=
      2^{31}.

    * trimws() gets new optional whitespace argument, allowing more
      extensive definitions of "space", such as including Unicode
      spaces (as wished in PR#17431).

    * weighted.mean() no longer coerces the weights to a double/numeric
      vector, since sum() now handles integer overflow. This makes
      weighted.mean() more polymorphic and endomorphic, but be aware
      that the results are no longer guaranteed to be a vector of type
      double.

    * When loading namespaces, S3 method registrations which overwrite
      previous registrations are now noted by default (using
      packageStartupMessage()).

    * compiler::cmpfile() gains a version argument, for use when the
      output file should be saved in serialization format 2.

    * The axis labeling in the default method of pairs() may now be
      toggled by new options horOdd and verOdd.

    * (Not Windows nor macOS.) Package tcltk now supports an
      environment variable R_DONT_USE_TK which if set disables Tk
      initialization.  This is intended for use to circumvent errors in
      loading the package, e.g. with recent Linux running under an
      address sanitizer.

    * The numeric method of all.equal() gets optional arguments countEQ
      and formatFUN.  If countEQ is true, the mean error is more
      sensible when many entries are *eq*ual.

    * outer(x,y, FUN = "*") is more efficient using tcrossprod(u,v)
      instead of u %*% t(v).

    * vcov(<mlm>) is more efficient via new optional arguments in
      summary.mlm().

    * The default method of summary() gets an option to choose the
      _kind_ of quantile()s to use; wish of PR#17438.

    * Fitting multiple linear models _via_ lm() does work with _matrix_
      offsets, as suggested in PR#17407.

    * The new functions mem.maxVSize() and mem.maxMSize() allow the
      maximal size of the vector heap and the maximal number of nodes
      allowed in the current R process to be queried and set.

    * news() gains support for NEWS.md files.

    * An effort has been started to have our reference manuals, i.e.,
      all help pages. show platform-independent information (rather
      than Windows or Unix-alike specifics visible only on that
      platform).  Consequently, the Windows version of X11() / x11()
      got identical formal arguments to the Unix one.

    * sessionInfo()$running has been factored out in a new variable
      osVersion.

    * slice.index() now also works for multi-dimensional margins.

    * untar() used with an external tar command assumes this supports
      decompression including xz and automagically detecting the
      compression type.  This has been true of all mainstream
      implementations since 2009 (for GNU tar, since version 1.22):
      older implementations are still supported _via_ the new argument
      support_old_tars whose default is controlled by environment
      variable R_SUPPORT_OLD_TARS.  (It looks like NetBSD and OpenBSD
      have 'older' tar commands for this purpose.)

    * The new function asplit() allow splitting an array or matrix by
      its margins.

    * New functions errorCondition() and warningCondition() provide a
      convenient way to create structured error and warning objects.

      .Deprecated() now signals a warning of class "deprecatedWarning",
      and .Defunct() now signals an error of class "defunctError".

    * Many 'package not found' errors are now signaled as errors of
      class "packageNotFoundError".

    * As an experimental feature, when loadNamespace() fails because
      the requested package is not available the error is initially
      signaled with a retry_loadNamespace restart available.  This
      allows a calling handler to try to install the package and
      continue.

    * S3method() directives in NAMESPACE can now also be used to
      perform _delayed_ S3 method registration.

    * Experimentally, setting environment variable
      _R_CHECK_LENGTH_1_LOGIC2_ will lead to warnings (or errors if the
      variable is set to a 'true' value) when && or || encounter and
      use arguments of length more than one.

    * Added "lines" and "chars" coordinate systems to grconvertX() and
      grconvertY().

    * getOption() is more efficient notably for the rare case when
      called with two arguments, from several contributors in PR#17394.

    * In .col(dim) and .row(dim), dim now may also be an integer-valued
      "double".

    * sQuote() and dQuote() get an explicit q argument with obvious
      default instead of using getOption("fancyQuotes") implicitly and
      unconditionally.

    * unzip() can list archives with comments and with spaces in file
      names even using an external unzip command.

    * Command line completion has a new setting rc.settings(dots =
      FALSE) to remove ... from the list of possible function
      arguments.

    * library() no longer checks packages with compiled code match
      R.version$platform.  loadNamespace() never has, and increasingly
      the 'canonical name' does not reflect the important
      characteristics of compiled code.

    * The primitive functions drop() and unclass() now avoid
      duplicating their data for atomic vectors that are large enough,
      by returning ALTREP wrapper objects with adjusted attributes.
      R-level assignments to change attributes will also use wrapper
      objects to avoid duplicating data for larger atomic vectors. R
      functions like structure() and unname() will therefore not
      duplicate data in these settings.  Generic vectors as produced by
      list() are not yet covered by this optimization but may be in due
      course.

    * In formals(), envir becomes an optional argument instead of being
      hardwired.

    * Instead of signalling an error for an invalid S4 object x, str(x)
      now gives a warning and subsequently still shows most parts of x,
      e.g., when slots are missing.

    * gamma(x) and lgamma(x) no longer warn when correctly returning
      Inf or underflowing to zero.  This helps maximum likelihood and
      similar computations.

    * convertColor() is now vectorized, so a lot faster for converting
      many colours at once.  The new argument vectorized to
      colorConverter() ensures that non-vectorized colour converters
      still work.  (Thanks to Brodie Gaslam.)

    * download.file() and url() get new argument headers for custom
      HTTP headers, e.g., allowing to perform basic http
      authentication, thanks to a patch contributed by G'abor Cs'ardi.

    * File-based connection functions file(), gzfile(), bzfile() and
      xzfile() now signal an error when used on a directory.

    * For approx(), splinefun() _etc_, a new setting ties =
      c("ordered", <fun>) allows skipping the sorting and still treat
      ties.

    * format(x) gives a more user friendly error message in the case
      where no method is defined.  A minimal method is provided in
      format.default(x) when isS4(x) is true.

    * which(x) now also works when x is a long vector, thanks to
      Suharto Anggono's PR#17201.  *NB*: this may return a double
      result, breaking the previous guarantee of an integer result.

    * seq.default() is more careful to return an integer (as opposed to
      double) result when its arguments are large and/or classed
      objects; see comment #9 of Suharto Anggono's PR#17497.

    * The plot() method for lm and glm fits, plot.lm(), gains a new
      option iter.smooth with a default of 0 for binomial fits, no
      longer down-weighting when smoothing the residuals.

    * zip() passes its list of files _via_ standard input to the
      external command when too long for the command line (on some
      platforms).

    * data() gains an overwrite argument.

    * t.test() now also returns the standard error (in list component
      stderr).

    * model.matrix(*, contrasts.arg = CC) now warns about invalid
      contrasts.args.

    * Performance of substr() and substring() has been improved.

    * stopifnot() has been simplified thanks to Suharto Anggono's
      proposals to become considerably faster for cheap expressions.

    * The default 'user agent' has been changed when accessing http://
      and https:// sites using libcurl.  (A site was found which caused
      libcurl to infinite-loop with the previous default.)

    * sessionInfo() now also contains RNGkind() and prints it when it
      differs from the default; based on a proposal and patch by Gabe
      Becker in PR#17535.  Also, RNGversion(getRversion()) works
      directly.

    * library() and require() now allow more control over handling
      search path conflicts when packages are attached. The policy is
      controlled by the new conflicts.policy option.

    * barplot() gets a formula method, thanks to a patch proposal by
      Arni Magnusson in PR#17521.

    * pmax() and pmin(x) now also work for long vectors, thanks to
      Suharto Anggono's PR#17533.

    * bxp() now warns when omitting duplicated arguments.

    * New hcl.colors() function to provide wide range of HCL-based
      colour palettes with much better perceptual properties than the
      existing RGB/HSV-based palettes like rainbow().

      Also a new hcl.pals() function to list available palette names
      for hcl.colors().

      Contributed by Achim Zeileis.

    * The default colours for image() and filled.contour() are now
      based on hcl.colors().

    * The palette-generating functions rainbow(), gray.colors(), etc.
      get a new rev argument to facilitate reversing the order of
      colors.

    * New str2lang() and str2expression() as streamlined versions of
      parse(text=., keep.source=FALSE) allow to abstract typical call
      constructions, e.g., in formula manipulations.  (Somewhat
      experimental)

    * Add update_PACKAGES() for incrementally updating a package
      repository index, instead of rebuilding the index from scratch.
      Thanks to Gabe Becker in PR#17544 for the patch, based on part of
      his switchr package.

  INSTALLATION on a UNIX-ALIKE:

    * The options selected for the C++ compiler default to the C++11
      standard if supported, otherwise to the C++98 standard.

    * Visibility macros such as C_VISIBILITY can now be user-set
      (including to empty), e.g. in config.site.

    * Macro FCLIBS, which has sometimes been needed on Solaris, has
      been renamed to FCLIBS_XTRA.

    * Macro F77 is always set to the value of FC, so the latter should
      be set to user-select the Fortran compiler for both fixed-form
      and free-form Fortran.  In particular, gfortran is now the first
      choice for F77, not f95.

      Macros FFLAGS and FCFLAGS remain distinct to allow for a compiler
      which needs a flag to select free- or fixed-form Fortran (most
      use the source-file extension to choose: .f is fixed-form and
      .f90 and .f95 are free-form).

      If only one of them is set, its value is used for both.

    * The special-casing of CFLAGS, CXXFLAGS and FFLAGS for Intel
      compilers on Linux has been removed: we do not have recent
      experience but the generic defaults now chosen are the same as
      those previously special-cased for x86_64.

      If necessary, override the defaults on the configure command line
      or in file config.site.

    * Long-untested configure support for HP-UX and very old versions
      of Linux has been removed.

    * configure --with-blas (without specifying a value) includes
      OpenBLAS in its search (before ATLAS and a generic BLAS).  This
      follows recent versions of the ax_blas autoconf macro.

    * The configure macro MAKEINFO has been updated to TEXI2ANY.

    * Support for make install-strip has been enhanced.

  PACKAGE INSTALLATION:

    * Source package installation is by default 'staged': the package
      is installed into a temporary location under the final library
      directory and moved into place once the installation is complete.
      The benefit is that partially-installed packages are hidden from
      other R sessions.

      The overall default is set by environment variable
      R_INSTALL_STAGED.  R CMD INSTALL has new options --staged-install
      and --no-staged-install, and packages can use the StagedInstall
      field in their DESCRIPTION file to opt out.  (That opt-out is a
      temporary measure which may be withdrawn in future.)

      Staged installation requires either --pkglock or --lock, one of
      which is used by default.

    * The interpretation of source code with extension .f is changing.
      Previously this denoted FORTRAN 77 code, but current compilers no
      longer have a FORTRAN 77 mode and interpret it as 'fixed-form'
      Fortran 90 (or later where supported) code.  Extensions .f90 and
      .f95 continue to indicate 'free-form' Fortran code.

      Legal FORTRAN 77 code is also legal fixed-form Fortran 9x;
      however this change legitimizes the use of later features, in
      particular to replace features marked 'obsolescent' in Fortran 90
      and 'deleted' in Fortran 2018 which gfortran 8.x and later warn
      about.

    * Packages containing files in the src directory with extensions
      .f90 or .f95 are now linked using the C or C++ compiler rather
      than the Fortran 9x compiler.  This is consistent with fixed-form
      Fortran code and allows mixing of C++ and free-form Fortran on
      most platforms.

      Consequentially, a package which includes free-form Fortran 9x
      code which uses OpenMP should include SHLIB_OPENMP_CFLAGS (or the
      CXXFLAGS version if they also include C++ code) in PKG_LIBS
      rather than SHLIB_OPENMP_FCFLAGS - fortunately on almost all
      current platforms they are the same flag.

    * Macro PKG_FFLAGS will be used for the compilation of both
      fixed-form and free-form Fortran code unless PKG_FCFLAGS is also
      set (in src/Makevars or src/Makevars.win).

    * The make macro F_VISIBILITY is now preferred for both fixed-form
      and free-form Fortran, for use in src/Makevars and similar.

    * R CMD INSTALL gains a new option --strip which (where supported)
      strips installed shared object(s): this can also be achieved by
      setting the environment variable _R_SHLIB_STRIP_ to a true value.

      The new option --strip-lib attempts stripping of static and
      shared libraries installed under lib.

      These are most useful on platforms using GNU binutils (such as
      Linux) and compiling with -g flags.

    * There is more support for installing UTF-8-encoded packages in a
      strict Latin-1 locale (and probably for other Latin locales):
      non-ASCII comments in R code (and NAMESPACE files) are worked
      around better.

  UTILITIES:

    * R CMD check now optionally checks makefiles for correct and
      portable use of the SHLIB_OPENMP_*FLAGS macros.

    * R CMD check now evaluates \Sexpr{} expressions (including those
      in macros) before checking the contents of Rd files and so
      detects issues both in evaluating the expressions and in the
      expanded contents.

    * R CMD check now lists missing packages separated by commas and
      with regular quotes such as to be useful as argument in calling
      install.packages(c(..)); from a suggestion by Marcel Ramos.

    * tools::Rd2latex() now uses UTF-8 as its default output encoding.

    * R CMD check now checks line endings of files with extension .hpp
      and those under inst/include.  The check now includes that a
      non-empty file is terminated with a newline.

      R CMD build will correct line endings in such files.

    * R CMD check now tries re-building all vignettes rather than
      stopping at the first error: whilst doing so it adds 'bookmarks'
      to the log.  By default (see the 'R Internals' manual) it
      re-builds each vignette in a separate process.

      It now checks for duplicated vignette titles (also known as
      'index entries'): they are used as hyperlinks on CRAN package
      pages and so do need to be unique.

    * R CMD check has more comprehensive checks on the data directory
      and the functioning of data() in a package.

    * R CMD check now checks autoconf-generated configure files have
      their corresponding source files, including optionally attempting
      to regenerate them on platforms with autoreconf.

    * R CMD build has a new option --compression to select the
      compression used for the tarball.

    * R CMD build now removes src/*.mod files on all platforms.

  C-LEVEL FACILITIES:

    * New pointer protection C functions R_PreserveInMSet and
      R_ReleaseFromMSet have been introduced to replace UNPROTECT_PTR,
      which is not safe to mix with UNPROTECT (and with
      PROTECT_WITH_INDEX). Intended for use in parsers only.

    * NAMEDMAX has been raised to 7 to allow further protection of
      intermediate results from (usually ill-advised) assignments in
      arguments to BUILTIN functions. Properly written package code
      should not be affected.

    * R_unif_index is now considered to be part of the C API.

    * R_GetCurrentEnv() allows C code to retrieve the current
      environment.

  DEPRECATED AND DEFUNCT:

    * Argument compressed of untar() is deprecated - it is only used
      for external tar commands which increasingly for extraction
      auto-detect compression and ignore their zjJ flags.

    * var(f) and hence sd(f) now give an error for factor arguments;
      they gave a deprecation warning since R 3.2.3, PR#16564.

    * Package tools' vignetteDepends() has been deprecated (it called a
      function deprecated since Feb 2016), being partly replaced by
      newly exported vignetteInfo().

    * The f77_f2c script has been removed: it no longer sufficed to
      compile the .f files in R.

    * The deprecated legacy support of make macros such as CXX1X has
      been removed: use the CXX11 forms instead.

    * Make macro F77_VISIBILITY is deprecated in favour of
      F_VISIBILITY.

    * Make macros F77, FCPIFCPLAGS and SHLIB_OPENMP_FCFLAGS are
      deprecated in favour of FC, FPICFLAGS and SHLIB_OPENMP_FFLAGS
      respectively.

    * $.data.frame had become an expensive version of the default
      method, so has been removed. (Thanks to Radford Neal for picking
      this up and to Duncan Murdoch for providing a patch.)

  BUG FIXES:

    * replayPlot(r) now also works in the same R session when r has
      been "reproduced" from serialization, typically after saving to
      and reading from an RDS file.

    * substr() and substring() now signal an error when the input is
      invalid UTF-8.

    * file.copy() now works also when its argument to is of length
      greater than one.

    * mantelhaen.test() no longer suffers from integer overflow in
      largish cases, thanks to Ben Bolker's PR#17383.

    * Calling setGeneric("foo") in a package no longer fails when the
      enclosing environment of the implicit generic foo() is
      .GlobalEnv.

    * untar(file("<some>.tar.gz"), *) now gives a better error message,
      suggesting to use gzfile() instead.

    * Method dispatch uses more relevant environments when looking up
      class definitions.

    * The documentation for identify() incorrectly claimed that the
      indices of identified points were returned in the order that the
      points were selected.  identify() now has a new argument order to
      allow the return value to include the order in which points were
      identified; the documentation has been updated.  Reported by
      Richard Rowe and Samuel Granjeaud.

    * order(...., decreasing=c(TRUE, FALSE)) could fail in some cases.
      Reported from StackOverflow via Karl Nordstr"om.

    * User macros in Rd files now accept empty and multi-line
      arguments.

    * Changes in print.*(), thanks to Lionel Henry's patches in
      PR#17398:

        * Printing lists, pairlists or attributes containing calls with
          S3 class no longer evaluate those.

        * Printing S4 objects within lists and pairlists dispatches
          with show() rather than print(), as with auto-printing.

        * The indexing tags (names or [[<n>]]) of recursive data
          structures are now printed correctly in complex cases.

        * Arguments supplied to print() are now properly forwarded to
          methods when printing lists, pairlists or attributes
          containing S3 objects.

        * The print parameters are now preserved when printing S3
          objects or deparsing symbols and calls.  Previously, printing
          lists containing S3 objects or expressions would reset these
          parameters.

        * Printing lists, pairlists or attributes containing functions
          now uses srcref attributes if present.

    * Calling install.packages() with a length zero pkgs argument now
      is a no-op (PR#17422).

    * unlist(x) now returns a correct factor when x is a nested list
      with factor leaves, fixing PR#12572 and PR#17419.

    * The documentation help(family) gives more details about the aic
      component, thanks to Ben Bolker's prompting.

    * The documentation for attributes and `attributes<-` now gives x
      as name of the first and main argument which the implementation
      has been requiring, fixing PR#17434.  For consistency, the first
      argument name is also changed from obj to x for
      `mostattributes<-`.

    * strwidth() now uses par("font") as default font face (PR#17352).

    * plot(<table>, log="x") no longer warns about log.

    * The print() method for "htest" objects now formats the test
      statistic and parameter directly and hence no longer rounds to
      units _before_ the decimal point.  Consequently, printing of
      t.test() results with a small number of digits now shows
      non-large df's to the full precision (PR#17444).

    * kruskal.test() and fligner.test() no longer erroneously insist on
      numeric g group arguments (PR#16719).

    * Printing a news db via the browser now does a much better job
      (PR#17433).

    * print.aov() missed column names in the multivariate case due to
      misspelling (reported by Chris Andrews).

    * axis() now creates valid at locations also for small subnormal
      number ranges in log scale plots.

    * format.POSIXlt() now also recycles the zone and gmtoff list
      components to full length when needed, and its internal C code
      detects have_zone in more cases.  In some cases, this changes its
      output to become compatible with format.POSIXct().

    * On Windows, detectCores() in package parallel now detects
      processors in all processor groups, not just the group R is
      running in (impacts particularly systems with more than 64
      logical processors).  Reported by Arunkumar Srinivasan.

    * On Windows, socketSelect() would hang with more than 64 sockets,
      and hence parallel::clusterApplyLB() would hang with more than 64
      workers.  Reported by Arunkumar Srinivasan.

    * as(1L, "double") now does coerce (PR#17457).

    * lm.influence(), influence.measures(), rstudent() etc now work
      (more) correctly for multivariate models ("mlm"), thanks to
      (anonymous) stackoverflow remarks.

    * sample.int(2.9, *, replace=TRUE) again behaves as documented and
      as in R < 3.0.0, namely identically to sample.int(2, ..).

    * Fixes to convertColor() for chromatic adaptation; thanks to
      Brodie Gaslam PR#17473.

    * Using \Sexpr[stage=install]{..} to create an Rd section no longer
      gives a warning in R CMD check; problem originally posted by
      G'abor Cs'ardi, then reported as PR#17479 with a partial patch by
      Duncan Murdoch.

    * Parse data now include a special node for equal assignment.

    * split.default() no longer relies on [[<-(), so it behaves as
      expected when splitting an object by a factor with the empty
      string as one of its levels.  Thanks to Brad Friedman for the
      report.

    * Line numbers in messages about .Rd files are now more reliable,
      thanks to a patch from Duncan Murdoch.

    * In the numeric method for all.equal(), a numeric scale argument
      is now checked to be positive and allowed to be of length > 1.
      (The latter worked originally and with a warning in recent
      years).

    * Deferred string conversions now record the OutDec option setting
      when not equal to the default.  Reported by Michael Sannella.

    * When y is numeric and f a factor, plot(y ~ f) nicely uses "y" and
      "f" as y- and x-labels.  The more direct boxplot(y ~ f) now does
      too.  The new argument ann = FALSE may be used to suppress these.

    * Subassignment to no/empty rows of a data frame is more consistent
      and typically a no-op in all cases instead of sometimes an error;
      part of Emil Bode's PR#17483.

    * Calls like formatC(*, zero.print = "< 0.001") no longer give an
      error and are further improved via new optional argument
      replace.zero.  Reported by David Hugh-Jones.

    * methods::formalArgs("<fn>") now finds the same function as
      formals("<fn>"), fixing Emil Bode's PR#17499.

    * The methods package better handles duplicated class names across
      packages.

    * The default method of seq() now avoids integer overflow, thanks
      to the report and "cumsum" patch of Suharto Anggono's PR#17497.

    * sub() no longer loses encodings for non-ASCII replacements
      (PR#17509).

    * Fix for rotated raster image on X11 device.  (Partial fix for
      PR#17148; thanks to Mikko Korpela).

    * formula(model.frame(frml, ..)) now returns frml in all cases,
      thanks to Bill Dunlap.  The previous behavior is available as
      DF2formula(<model.frame>).

    * ar.ols() also returns scalar var.pred in univariate case
      (PR#17517).

    * normalizePath() now treats NA path as non-existent and normalizes
      it to NA.  file.access() treats NA file name as non-existent.
      file.edit() and connection functions such as file() now treat NA
      file names as errors.

    * The internal regularize.values() auxiliary of approx(),
      splinefun() etc now warns again when there are ties and the
      caller did not specify ties.  Further, it no longer duplicates x
      and y unnecessarily when x is already sorted (PR#17515).

    * strtoi("", base) now gives NA on all platforms, following its
      documentation.  Reported by Michael Chirico.

    * In the definition of an S4 class, prototype elements are checked
      against the slots of the class, with giving a prototype for an
      undefined slot now being an error.  (Reported by Bill Dunlap.)

    * From setClassUnion(), if environment variable
      _R_METHODS_SHOW_CHECKSUBCLASSES is set to true, the internal
      .checkSubclasses() utility prints debugging info to see where it
      is used.

    * max.col(m) with an m of zero columns now returns integer NA
      (instead of 1).

    * axTicks() no longer returns small "almost zero" numbers (in
      exponential format) instead of zero, fixing Ilario Gelmetti's
      PR#17534.

    * isSymmetric(matrix(0, dimnames=list("A","b"))) is FALSE again, as
      always documented.

    * The cairo_pdf graphics device (and other Cairo-based devices) now
      clip correctly to the right and bottom border.

      There was an off-by-one-pixel bug, reported by Lee Kelvin.

    * as.roman(3) <= 2:4 and all other comparisons now work, as do
      group "Summary" function calls such as max(as.roman(sample(20)))
      and as.roman(NA).  (Partly reported by Bill Dunlap in PR#17542.)

    * reformulate("x", response = "sin(y)") no longer produces extra
      back quotes, PR#17359, and gains new optional argument env.

    * When reading console input from stdin with re-encoding (R
      --encoding=enc < input) the code on a Unix-alike now ensures that
      each converted input line is terminated with a newline even if
      re-encoding fails.

    * as.matrix.data.frame() now produces better strings from logicals,
      thanks to PR#17548 from Gabe Becker.

    * The S4 generic signature of rowSums(), rowMeans(), colSums() and
      colMeans() is restricted to "x".

    * match(x, tab) now works for long _character_ vectors x, thanks to
      PR#17552 by Andreas Kersting.

    * Class unions are unloaded when their namespace is unloaded
      (PR#17531, adapted from a patch by Brodie Gaslam).

    * selectMethod() is robust to ANY-truncation of method signatures
      (thanks to Herve Pages for the report).

Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Dec 21 02:55:06 2018 UTC (7 years, 10 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -1 lines
Update to 3.5.2

Upstream changes:
CHANGES IN R 3.5.2:

  PACKAGE INSTALLATION:

    * New macro CXX_VISIBILITY analogous to C_VISIBILITY (which several
      packages have been misusing for C++ code) for the default C++
      compiler (but not necessarily one used for non-default C++
      dialects like C++14).

  TESTING:

    * The random number generator tests in tests/p-r-random-tests.R no
      longer fail occasionally as they now randomly sample from
      "certified" random seeds.

  BUG FIXES:

    * The "glm" method of drop1() miscalculated the score test
      (test="Rao") when the model contained an offset.

    * Linear multiple empty models such as lm(y ~ 0) now have a
      correctly dimensioned empty coefficient matrix; reported by Brett
      Presnell.

    * vcov(<empty mlm>) and hence confint() now work (via a consistency
      change in summary.lm()).

    * confint(<multiple lm()>) now works correctly; reported on R-devel
      by Steven Pav.

    * quade.test() now also works correctly when its arguments are not
      yet sorted along groups, fixing PR#15842.

    * Installation on a Unix-alike tries harder to link to the pthread
      library where required (rather than relying on OpenMP to provide
      it: configuring with --disable-openmp was failing on some Linux
      systems).

    * The data.frame method for print(x) is fast now also for large
      data frames x and got an optional argument max, thanks to
      suggestions by Juan Telleria.

    * hist() no longer integer overflows in very rare cases, fixing
      PR#17450.

    * untar() ignored a character compressed argument: however many
      external tar programs ignore the flags which should have been set
      and automagically choose the compression type, and if appropriate
      gzip or bzip2 compression would have been chosen from the magic
      header of the tarball.

    * zapsmall(x) now works for more "number-like" objects.

    * The tools-internal function called from R CMD INSTALL now gets a
      warnOption = 1 argument and only sets options(warn = warnOption)
      when that increases the warning level (PR#17453).

    * Analogously, the tools-internal function called from R CMD check
      gets a warnOption = 1 argument and uses the larger of that and
      getOption("warn"), also allowing to be run with increased warning
      level.

    * Parse data now have deterministic parent nodes (PR#16041).

    * Calling match() with length one x and POSIXlt table gave a
      segfault (PR#17459).

    * Fork clusters could hang due to a race condition in cluster
      initialization (makeCluster()).

    * nextn(n) now also works for larger n and no longer loops
      infinitely for e.g, n <- 214e7.

    * cooks.distance() and rstandard() now work correctly for multiple
      linear models ("mlm").

    * polym() and corresponding lm() prediction now also work for a
      boundary "vector" case fixing PR#17474, reported by Alexandre
      Courtiol.

    * With a very large number of variables terms() could segfault
      (PR#17480).

    * cut(rep(0, 7)) now works, thanks to Joey Reid and Benjamin Tyner
      (PR#16802).

    * download.file(*, method = "curl", cacheOK = FALSE) should work
      now on Windows, thanks to Kevin Ushey's patch in PR#17323.

    * duplicated(<dataframe with 'f'>) now works, too, thanks to
      Andreas Kersting's PR#17485; ditto for anyDuplicated().

    * legend(*, cex = 1:2) now works less badly.

    * The print() method for POSIXct and POSIXlt now correctly obeys
      getOption("max.print"), fixing a long-standing typo, and it also
      gets a corresponding optional max argument.

    * Unserialization of raw vectors serialized in ASCII representation
      now works correctly.

    * <data frame>[TRUE, <new>] <- list(c1, c2) now works correctly,
      thanks to Suharto Anggono's PR#15362 and Emil Bode's patch in
      PR#17504.

    * seq.int(*, by=by, length=n) no longer wrongly "drops fractional
      parts" when by is integer, thanks to Suharto Anggono's report
      PR#17506.

    * Buffering is disabled for file() connections to non-regular files
      (like sockets), as well as fifo() and pipe() connections.  Fixes
      PR#17470, reported by Chris Culnane.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Jul 4 07:27:13 2018 UTC (8 years, 4 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -2 lines
Update to 3.5.1

Upstream changes:
CHANGES IN R 3.5.1
BUG FIXES

    file("stdin") is no longer considered seekable.

    dput() and dump() are no longer truncating when options(deparse.max.lines = *) is set.

    Calls with an S3 class are no longer evaluated when printed, fixing part of PR#17398, thanks to a patch from Lionel Henry.

    Allow file argument of Rscript to include space even when it is first on the command line.

    callNextMethod() uses the generic from the environment of the calling method. Reported by Hervé Pagès with well documented examples.

    Compressed file connections are marked as blocking.

    optim(*, lower = c(-Inf, -Inf)) no longer warns (and switches the method), thanks to a suggestion by John Nash.

    predict(fm, newdata) is now correct also for models where the formula has terms such as splines::ns(..) or stats::poly(..), fixing PR#17414, based on a patch from Duncan Murdoch.

    simulate.lm(glm(*, gaussian(link = <non-default>))) has been corrected, fixing PR#17415 thanks to Alex Courtiol.

    unlist(x) no longer fails in some cases of nested empty lists. Reported by Steven Nydick.

    qr.coef(qr(<all 0, w/ colnames>)) now works. Reported by Kun Ren.

    The radix sort is robust to vectors with >1 billion elements (but long vectors are still unsupported). Thanks to Matt Dowle for the fix.

    Terminal connections (e.g., stdin) are no longer buffered. Fixes PR#17432.

    deparse(x), dput(x) and dump() now respect c()'s argument names recursive and use.names, e.g., for x <- setNames(0, "recursive"), thanks to Suharto Anggono's PR#17427.

    Unbuffered connections now work with encoding conversion. Reported by Stephen Berman.

    ‘.Renviron’ on Windows with Rgui is again by default searched for in user documents directory when invoked via the launcher icon. Reported by Jeroen Ooms.

    printCoefmat() now also works with explicit right=TRUE.

    print.noquote() now also works with explicit quote=FALSE.

    The default method for pairs(.., horInd=*, verInd=*) now gets the correct order, thanks to reports by Chris Andrews and Gerrit Eichner. Additionally, when horInd or verInd contain only a subset of variables, all the axes are labeled correctly now.

    agrep("..|..", .., fixed=FALSE) now matches when it should, thanks to a reminder by Andreas Kolter.

    str(ch) now works for more invalid multibyte strings.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu May 31 10:23:02 2018 UTC (8 years, 5 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -1 lines
Update to 3.5.0

Upstream changes:
CHANGES IN R 3.5.0
SIGNIFICANT USER-VISIBLE CHANGES
All packages are by default byte-compiled on installation. This makes the installed packages larger (usually marginally so) and may affect the format of messages and tracebacks (which often exclude .Call and similar).

NEW FEATURES
factor() now uses order() to sort its levels, rather than sort.list(). This allows factor() to support custom vector-like objects if methods for the appropriate generics are defined. It has the side effect of making factor() succeed on empty or length-one non-atomic vector(-like) types (e.g., "list"), where it failed before.

diag() gets an optional names argument: this may require updates to packages defining S4 methods for it.

chooseCRANmirror() and chooseBioCmirror() no longer have a useHTTPS argument, not needed now all R builds support https:// downloads.

New summary() method for warnings() with a (somewhat experimental) print() method.

(methods package.) .self is now automatically registered as a global variable when registering a reference class method.

tempdir(check = TRUE) recreates the tempdir() directory if it is no longer valid (e.g. because some other process has cleaned up the ‘/tmp’ directory).

New askYesNo() function and "askYesNo" option to ask the user binary response questions in a customizable but consistent way. (Suggestion of PR#17242.)

New low level utilities ...elt(n) and ...length() for working with ... parts inside a function.

isTRUE() is more tolerant and now true in

   x <- rlnorm(99)
   isTRUE(median(x) == quantile(x)["50%"])
New function isFALSE() defined analogously to isTRUE().

The default symbol table size has been increased from 4119 to 49157; this may improve the performance of symbol resolution when many packages are loaded. (Suggested by Jim Hester.)

line() gets a new option iter = 1.

Reading from connections in text mode is buffered, significantly improving the performance of readLines(), as well as scan() and read.table(), at least when specifying colClasses.

order() is smarter about picking a default sort method when its arguments are objects.

available.packages() has two new arguments which control if the values from the per-session repository cache are used (default true, as before) and if so how old cached values can be to be used (default one hour).

These arguments can be passed from install.packages(), update.packages() and functions calling that: to enable this available.packages(), packageStatus() and download.file() gain a ... argument.

packageStatus()'s upgrade() method no longer ignores its ... argument but passes it to install.packages().

installed.packages() gains a ... argument to allow arguments (including noCache) to be passed from new.packages(), old.packages(), update.packages() and packageStatus().

factor(x, levels, labels) now allows duplicated labels (not duplicated levels!). Hence you can map different values of x to the same level directly.

Attempting to use names<-() on an S4 derivative of a basic type no longer emits a warning.

The list method of within() gains an option keepAttrs = FALSE for some speed-up.

system() and system2() now allow the specification of a maximum elapsed time (‘timeout’).

debug() supports debugging of methods on any object of S4 class "genericFunction", including group generics.

Attempting to increase the length of a variable containing NULL using length()<- still has no effect on the target variable, but now triggers a warning.

type.convert() becomes a generic function, with additional methods that operate recursively over list and data.frame objects. Courtesy of Arni Magnusson (PR#17269).

lower.tri(x) and upper.tri(x) only needing dim(x) now work via new functions .row() and .col(), so no longer call as.matrix() by default in order to work efficiently for all kind of matrix-like objects.

print() methods for "xgettext" and "xngettext" now use encodeString() which keeps, e.g. "\n", visible. (Wish of PR#17298.)

package.skeleton() gains an optional encoding argument.

approx(), spline(), splinefun() and approxfun() also work for long vectors.

deparse() and dump() are more useful for S4 objects, dput() now using the same internal C code instead of its previous imperfect workaround R code. S4 objects now typically deparse perfectly, i.e., can be recreated identically from deparsed code.

dput(), deparse() and dump() now print the names() information only once, using the more readable (tag = value) syntax, notably for list()s, i.e., including data frames.

These functions gain a new control option "niceNames" (see .deparseOpts()), which when set (as by default) also uses the (tag = value) syntax for atomic vectors. On the other hand, without deparse options "showAttributes" and "niceNames", names are no longer shown also for lists. as.character(list( c (one = 1))) now includes the name, as as.character(list(list(one = 1))) has always done.

m:n now also deparses nicely when m > n.

The "quoteExpressions" option, also part of "all", no longer quote()s formulas as that may not re-parse identically. (PR#17378)

If the option setWidthOnResize is set and TRUE, R run in a terminal using a recent readline library will set the width option when the terminal is resized. Suggested by Ralf Goertz.

If multiple on.exit() expressions are set using add = TRUE then all expressions will now be run even if one signals an error.

mclapply() gets an option affinity.list which allows more efficient execution with heterogeneous processors, thanks to Helena Kotthaus.

The character methods for as.Date() and as.POSIXlt() are more flexible via new arguments tryFormats and optional: see their help pages.

on.exit() gains an optional argument after with default TRUE. Using after = FALSE with add = TRUE adds an exit expression before any existing ones. This way the expressions are run in a first-in last-out fashion. (From Lionel Henry.)

On Windows, file.rename() internally retries the operation in case of error to attempt to recover from possible anti-virus interference.

Command line completion on :: now also includes lazy-loaded data.

If the TZ environment variable is set when date-time functions are first used, it is recorded as the session default and so will be used rather than the default deduced from the OS if TZ is subsequently unset.

There is now a [ method for class "DLLInfoList".

glm() and glm.fit get the same singular.ok = TRUE argument that lm() has had forever. As a consequence, in glm(*, method = <your_own>), user specified methods need to accept a singular.ok argument as well.

aspell() gains a filter for Markdown (‘.md’ and ‘.Rmd’) files.

intToUtf8(multiple = FALSE) gains an argument to allow surrogate pairs to be interpreted.

The maximum number of DLLs that can be loaded into R e.g. via dyn.load() has been increased up to 614 when the OS limit on the number of open files allows.

Sys.timezone() on a Unix-alike caches the value at first use in a session: inter alia this means that setting TZ later in the session affects only the current time zone and not the system one.

Sys.timezone() is now used to find the system timezone to pass to the code used when R is configured with --with-internal-tzcode.

When tar() is used with an external command which is detected to be GNU tar or libarchive tar (aka bsdtar), a different command-line is generated to circumvent line-length limits in the shell.

system(*, intern = FALSE), system2() (when not capturing output), file.edit() and file.show() now issue a warning when the external command cannot be executed.

The “default” ("lm" etc) methods of vcov() have gained new optional argument complete = TRUE which makes the vcov() methods more consistent with the coef() methods in the case of singular designs. The former (back-compatible) behavior is given by vcov(*, complete = FALSE).

coef() methods (for lm etc) also gain a complete = TRUE optional argument for consistency with vcov().
For "aov", both coef() and vcov() methods remain back-compatibly consistent, using the other default, complete = FALSE.

attach(*, pos = 1) is now an error instead of a warning.

New function getDefaultCluster() in package parallel to get the default cluster set via setDefaultCluster().

str(x) for atomic objects x now treats both cases of is.vector(x) similarly, and hence much less often prints "atomic". This is a slight non-back-compatible change producing typically both more informative and shorter output.

write.dcf() gets optional argument useBytes.

New, partly experimental packageDate() which tries to get a valid "Date" object from a package ‘DESCRIPTION’ file, thanks to suggestions in PR#17324.

tools::resaveRdaFiles() gains a version argument, for use when packages should remain compatible with earlier versions of R.

ar.yw(x) and hence by default ar(x) now work when x has NAs, mostly thanks to a patch by Pavel Krivitsky in PR#17366. The ar.yw.default()'s AIC computations have become more efficient by using determinant().

New warnErrList() utility (from package nlme, improved).

By default the (arbitrary) signs of the loadings from princomp() are chosen so the first element is non-negative.

If --default-packages is not used, then Rscript now checks the environment variable R_SCRIPT_DEFAULT_PACKAGES. If this is set, then it takes precedence over R_DEFAULT_PACKAGES. If default packages are not specified on the command line or by one of these environment variables, then Rscript now uses the same default packages as R. For now, the previous behavior of not including methods can be restored by setting the environment variable R_SCRIPT_LEGACY to yes.

When a package is found more than once, the warning from find.package(*, verbose=TRUE) lists all library locations.

POSIXt objects can now also be rounded or truncated to month or year.

stopifnot() can be used alternatively via new argument exprs which is nicer and useful when testing several expressions in one call.

The environment variable R_MAX_VSIZE can now be used to specify the maximal vector heap size. On macOS, unless specified by this environment variable, the maximal vector heap size is set to the maximum of 16GB and the available physical memory. This is to avoid having the R process killed when macOS over-commits memory.

sum(x) and sum(x1,x2,..,x<N>) with many or long logical or integer vectors no longer overflows (and returns NA with a warning), but returns double numbers in such cases.

Single components of "POSIXlt" objects can now be extracted and replaced via [ indexing with 2 indices.

S3 method lookup now searches the namespace registry after the top level environment of the calling environment.

Arithmetic sequences created by 1:n, seq_along, and the like now use compact internal representations via the ALTREP framework. Coercing integer and numeric vectors to character also now uses the ALTREP framework to defer the actual conversion until first use.

Finalizers are now run with interrupts suspended.

merge() gains new option no.dups and by default suffixes the second of two duplicated column names, thanks to a proposal by Scott Ritchie (and Gabe Becker).

scale.default(x, center, scale) now also allows center or scale to be “numeric-alike”, i.e., such that as.numeric(.) coerces them correctly. This also eliminates a wrong error message in such cases.

par*apply and par*applyLB gain an optional argument chunk.size which allows to specify the granularity of scheduling.

Some as.data.frame() methods, notably the matrix one, are now more careful in not accepting duplicated or NA row names, and by default produce unique non-NA row names. This is based on new function .rowNamesDF(x, make.names = *) <- rNms where the logical argument make.names allows to specify how invalid row names rNms are handled. .rowNamesDF() is a “workaround” compatible default.

R has new serialization format (version 3) which supports custom serialization of ALTREP framework objects. These objects can still be serialized in format 2, but less efficiently. Serialization format 3 also records the current native encoding of unflagged strings and converts them when de-serialized in R running under different native encoding. Format 3 comes with new serialization magic numbers (RDA3, RDB3, RDX3). Format 3 can be selected by version = 3 in save(), serialize() and saveRDS(), but format 2 remains the default for all serialization and saving of the workspace. Serialized data in format 3 cannot be read by versions of R prior to version 3.5.0.

The "Date" and “date-time” classes "POSIXlt" and "POSIXct" now have a working `length<-` method, as wished in PR#17387.

optim(*, control = list(warn.1d.NelderMead = FALSE)) allows to turn off the warning when applying the default "Nelder-Mead" method to 1-dimensional problems.

matplot(.., panel.first = .) etc now work, as log becomes explicit argument and ... is passed to plot() unevaluated, as suggested by Sebastian Meyer in PR#17386.

Interrupts can be suspended while evaluating an expression using suspendInterrupts. Subexpression can be evaluated with interrupts enabled using allowInterrupts. These functions can be used to make sure cleanup handlers cannot be interrupted.

R 3.5.0 includes a framework that allows packages to provide alternate representations of basic R objects (ALTREP). The framework is still experimental and may undergo changes in future R releases as more experience is gained. For now, documentation is provided in https://svn.r-project.org/R/branches/ALTREP/ALTREP.html.

UTILITIES
install.packages() for source packages now has the possibility to set a ‘timeout’ (elapsed-time limit). For serial installs this uses the timeout argument of system2(): for parallel installs it requires the timeout utility command from GNU coreutils.

It is now possible to set ‘timeouts’ (elapsed-time limits) for most parts of R CMD check via environment variables documented in the ‘R Internals’ manual.

The ‘BioC extra’ repository which was dropped from Bioconductor 3.6 and later has been removed from setRepositories(). This changes the mapping for 6–8 used by setRepositories(ind=).

R CMD check now also applies the settings of environment variables _R_CHECK_SUGGESTS_ONLY_ and _R_CHECK_DEPENDS_ONLY_ to the re-building of vignettes.

R CMD check with environment variable _R_CHECK_DEPENDS_ONLY_ set to a true value makes test-suite-management packages available and (for the time being) works around a common omission of rmarkdown from the VignetteBuilder field.

INSTALLATION on a UNIX-ALIKE
Support for a system Java on macOS has been removed — install a fairly recent Oracle Java (see ‘R Installation and Administration’ §C.3.2).

configure works harder to set additional flags in SAFE_FFLAGS only where necessary, and to use flags which have little or no effect on performance.

In rare circumstances it may be necessary to override the setting of SAFE_FFLAGS.

C99 functions expm1, hypot, log1p and nearbyint are now required.

configure sets a -std flag for the C++ compiler for all supported C++ standards (e.g., -std=gnu++11 for the C++11 compiler). Previously this was not done in a few cases where the default standard passed the tests made (e.g. clang 6.0.0 for C++11).

C-LEVEL FACILITIES
‘Writing R Extensions’ documents macros MAYBE_REFERENCED, MAYBE_SHARED and MARK_NOT_MUTABLE that should be used by package C code instead NAMED or SET_NAMED.

The object header layout has been changed to support merging the ALTREP branch. This requires re-installing packages that use compiled code.

‘Writing R Extensions’ now documents the R_tryCatch, R_tryCatchError, and R_UnwindProtect functions.

NAMEDMAX has been raised to 3 to allow protection of intermediate results from (usually ill-advised) assignments in arguments to BUILTIN functions. Package C code using SET_NAMED may need to be revised.

DEPRECATED AND DEFUNCT
Sys.timezone(location = FALSE) is defunct, and is ignored (with a warning).

methods:::bind_activation() is defunct now; it typically has been unneeded for years.

The undocumented ‘hidden’ objects .__H__.cbind and .__H__.rbind in package base are deprecated (in favour of cbind and rbind).

The declaration of pythag() in ‘Rmath.h’ has been removed — the entry point has not been provided since R 2.14.0.

BUG FIXES
printCoefmat() now also works without column names.

The S4 methods on Ops() for the "structure" class no longer cause infinite recursion when the structure is not an S4 object.

nlm(f, ..) for the case where f() has a "hessian" attribute now computes LL' = H + µI correctly. (PR#17249).

An S4 method that “rematches” to its generic and overrides the default value of a generic formal argument to NULL no longer drops the argument from its formals.

Rscript can now accept more than one argument given on the #! line of a script. Previously, one could only pass a single argument on the #! line in Linux.

Connections are now written correctly with encoding "UTF-16LE". (PR#16737).

Evaluation of ..0 now signals an error. When ..1 is used and ... is empty, the error message is more appropriate.

(Windows mainly.) Unicode code points which require surrogate pairs in UTF-16 are now handled. All systems should properly handle surrogate pairs, even those systems that do not need to make use of them. (PR#16098)

stopifnot(e, e2, ...) now evaluates the expressions sequentially and in case of an error or warning shows the relevant expression instead of the full stopifnot(..) call.

path.expand() on Windows now accepts paths specified as UTF-8-encoded character strings even if not representable in the current locale. (PR#17120)

line(x, y) now correctly computes the medians of the left and right group's x-values and in all cases reproduces straight lines.

Extending S4 classes with slots corresponding to special attributes like dim and dimnames now works.

Fix for legend() when fill has multiple values the first of which is NA (all colours used to default to par(fg)). (PR#17288)

installed.packages() did not remove the cached value for a library tree that had been emptied (but would not use the old value, just waste time checking it).

The documentation for installed.packages(noCache = TRUE) incorrectly claimed it would refresh the cache.

aggregate(<data.frame>) no longer uses spurious names in some cases. (PR#17283)

object.size() now also works for long vectors.

packageDescription() tries harder to solve re-encoding issues, notably seen in some Windows locales. This fixes the citation() issue in PR#17291.

poly(<matrix>, 3) now works, thanks to prompting by Marc Schwartz.

readLines() no longer segfaults on very large files with embedded '\0' (aka ‘nul’) characters. (PR#17311)

ns() (package splines) now also works for a single observation. interpSpline() gives a more friendly error message when the number of points is less than four.

dist(x, method = "canberra") now uses the correct definition; the result may only differ when x contains values of differing signs, e.g. not for 0-1 data.

methods:::cbind() and methods:::rbind() avoid deep recursion, thanks to Suharto Anggono via PR#17300.

Arithmetic with zero-column data frames now works more consistently; issue raised by Bill Dunlap.

Arithmetic with data frames gives a data frame for ^ (which previously gave a numeric matrix).

pretty(x, n) for large n or large diff(range(x)) now works better (though it was never meant for large n); internally it uses the same rounding fuzz (1e-10) as seq.default() — as it did up to 2010-02-03 when both were 1e-7.

Internal C-level R_check_class_and_super() and hence R_check_class_etc() now also consider non-direct super classes and hence return a match in more cases. This e.g., fixes behaviour of derived classes in package Matrix.

Reverted unintended change in behavior of return calls in on.exit expressions introduced by stack unwinding changes in R 3.3.0.

Attributes on symbols are now detected and prevented; attempt to add an attribute to a symbol results in an error.

fisher.test(*, workspace = <n>) now may also increase the internal stack size which allows larger problem to be solved, fixing PR#1662.

The methods package no longer directly copies slots (attributes) into a prototype that is of an “abnormal” (reference) type, like a symbol.

The methods package no longer attempts to call length<-() on NULL (during the bootstrap process).

The methods package correctly shows methods when there are multiple methods with the same signature for the same generic (still not fully supported, but at least the user can see them).

sys.on.exit() is now always evaluated in the right frame. (From Lionel Henry.)

seq.POSIXt(*, by = "<n> DSTdays") now should work correctly in all cases and is faster. (PR#17342)

.C() when returning a logical vector now always maps values other than FALSE and NA to TRUE (as documented).

Subassignment with zero length vectors now coerces as documented (PR#17344).
Further, x <- numeric(); x[1] <- character() now signals an error ‘replacement has length zero’ (or a translation of that) instead of doing nothing.

(Package parallel.) mclapply(), pvec() and mcparallel() (when mccollect() is used to collect results) no longer leave zombie processes behind.

R CMD INSTALL <pkg> now produces the intended error message when, e.g., the LazyData field is invalid.

as.matrix(dd) now works when the data frame dd contains a column which is a data frame or matrix, including a 0-column matrix/d.f. .

mclapply(X, mc.cores) now follows its documentation and calls lapply() in case mc.cores = 1 also in the case mc.preschedule is false. (PR#17373)

aggregate(<data.frame>, drop=FALSE) no longer calls the function on <empty> parts but sets corresponding results to NA. (Thanks to Suharto Anggono's patches in PR#17280).

The duplicated() method for data frames is now based on the list method (instead of string coercion). Consequently unique() is better distinguishing data frame rows, fixing PR#17369 and PR#17381. The methods for matrices and arrays are changed accordingly.

Calling names() on an S4 object derived from "environment" behaves (by default) like calling names() on an ordinary environment.

read.table() with a non-default separator now supports quotes following a non-whitespace character, matching the behavior of scan().

parLapplyLB and parSapplyLB have been fixed to do load balancing (dynamic scheduling). This also means that results of computations depending on random number generators will now really be non-reproducible, as documented.

Indexing a list using dollar and empty string (l$"") returns NULL.

Using \usage{ data(<name>, package="<pkg>") } no longer produces R CMD check warnings.

match.arg() more carefully chooses the environment for constructing default choices, fixing PR#17401 as proposed by Duncan Murdoch.

Deparsing of consecutive ! calls is now consistent with deparsing unary - and + calls and creates code that can be reparsed exactly; thanks to a patch by Lionel Henry in PR#17397. (As a side effect, this uses fewer parentheses in some other deparsing involving ! calls.)

[R logo] CHANGES IN R 3.4.4
NEW FEATURES
Sys.timezone() tries more heuristics on Unix-alikes and so is more likely to succeed (especially on Linux). For the slowest method, a warning is given recommending that TZ is set to avoid the search.

The version of LAPACK included in the sources has been updated to 3.8.0 (for the routines used by R, a very minor bug-fix change).

parallel::detectCores(logical = FALSE) is ignored on Linux systems, since the information is not available with virtualized OSes.

INSTALLATION on a UNIX-ALIKE
configure will use pkg-config to find the flags to link to jpeg if available (as it should be for the recently-released jpeg-9c and libjpeg-turbo). (This amends the code added in R 3.3.0 as the module name in jpeg-9c is not what that tested for.)

DEPRECATED AND DEFUNCT
Sys.timezone(location = FALSE) (which was a stop-gap measure for Windows long ago) is deprecated. It no longer returns the value of environment variable TZ (usually a location).

Legacy support of make macros such as CXX1X is formally deprecated: use the CXX11 forms instead.

BUG FIXES
power.prop.test() now warns when it cannot solve the problem, typically because of impossible constraints. (PR#17345)

removeSource() no longer erroneously removes NULL in certain cases, thanks to Dénes Tóth.

nls(`NO [mol/l]` ~ f(t)) and nls(y ~ a) now work. (Partly from PR#17367)

R CMD build checks for GNU cp rather than assuming Linux has it. (PR#17370 says ‘Alpine Linux’ does not.)

Non-UTF-8 multibyte character handling fixed more permanently (PR#16732).

sum(<large ints>, <stuff>) is more consistent. (PR#17372)

rf() and rbeta() now also work correctly when ncp is not scalar, notably when (partly) NA. (PR#17375)

is.na(NULL) no longer warns. (PR#16107)

R CMD INSTALL now correctly sets C++ compiler flags when all source files are in sub-directories of ‘src’.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Oct 21 02:40:56 2017 UTC (9 years ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +35 -2 lines
R: update to 3.4.2

CHANGES IN R 3.4.2:

  NEW FEATURES:

    * Setting the LC_ALL category in Sys.setlocale() invalidates any
      cached locale-specific day/month names and the AM/PM indicator
      for strptime() (as setting LC_TIME has since R 3.1.0).

    * The version of LAPACK included in the sources has been updated to
      3.7.1, a bug-fix release.

    * The default for tools::write_PACKAGES(rds_compress=) has been
      changed to "xz" to match the compression used by CRAN.

    * c() and unlist() are now more efficient in constructing the
      names(.) of their return value, thanks to a proposal by Suharto
      Anggono.  (PR#17284)

CHANGES IN R 3.4.0:

  SIGNIFICANT USER-VISIBLE CHANGES:

    * (Unix-alike) The default methods for download.file() and url()
      now choose "libcurl" except for file:// URLs.  There will be
      small changes in the format and wording of messages, including in
      rare cases if an issue is a warning or an error.  For example,
      when HTTP re-direction occurs, some messages refer to the final
      URL rather than the specified one.

      Those who use proxies should check that their settings are
      compatible (see ?download.file: the most commonly used forms work
      for both "internal" and "libcurl").

    * table() has been amended to be more internally consistent and
      become back compatible to R <= 2.7.2 again.  Consequently,
      table(1:2, exclude = NULL) no longer contains a zero count for
      <NA>, but useNA = "always" continues to do so.

    * summary.default() no longer rounds, but its print method does
      resulting in less extraneous rounding, notably of numbers in the
      ten thousands.

    * factor(x, exclude = L) behaves more rationally when x or L are
      character vectors.  Further, exclude = <factor> now behaves as
      documented for long.

    * Arithmetic, logic (&, |) and comparison (aka 'relational', e.g.,
      <, ==) operations with arrays now behave consistently, notably
      for arrays of length zero.

      Arithmetic between length-1 arrays and longer non-arrays had
      silently dropped the array attributes and recycled.  This now
      gives a warning and will signal an error in the future, as it has
      always for logic and comparison operations in these cases (e.g.,
      compare matrix(1,1) + 2:3 and matrix(1,1) < 2:3).

    * The JIT ('Just In Time') byte-code compiler is now enabled by
      default at its level 3. This means functions will be compiled on
      first or second use and top-level loops will be compiled and then
      run.  (Thanks to Tomas Kalibera for extensive work to make this
      possible.)
     For now, the compiler will not compile code containing explicit
      calls to browser(): this is to support single stepping from the
      browser() call.

      JIT compilation can be disabled for the rest of the session using
      compiler::enableJIT(0) or by setting environment variable
      R_ENABLE_JIT to 0.

    * xtabs() works more consistently with NAs, also in its result no
      longer setting them to 0.  Further, a new logical option addNA
      allows to count NAs where appropriate.  Additionally, for the
      case sparse = TRUE, the result's dimnames are identical to the
      default case's.

    * Matrix products now consistently bypass BLAS when the inputs have
      NaN/Inf values. Performance of the check of inputs has been
      improved. Performance when BLAS is used is improved for
      matrix/vector and vector/matrix multiplication (DGEMV is now used
      instead of DGEMM).

      One can now choose from alternative matrix product
      implementations _via_ options(matprod = ).  The "internal"
      implementation is not optimized for speed but consistent in
      precision with other summations in R (using long double
      accumulators where available).  "blas" calls BLAS directly for
      best speed, but usually with undefined behavior for inputs with
      NaN/Inf.

  NEW FEATURES:

    * User errors such as integrate(f, 0:1, 2) are now caught.

    * Add signature argument to debug(), debugonce(), undebug() and
      isdebugged() for more conveniently debugging S3 and S4 methods.
      (Based on a patch by Gabe Becker.)

    * Add utils::debugcall() and utils::undebugcall() for debugging the
      function that would be called by evaluating the given expression.
      When the call is to an S4 generic or standard S3 generic,
      debugcall() debugs the method that would be dispatched. A number
      of internal utilities were added to support this, most notably
      utils::isS3stdGeneric().  (Based on a patch by Gabe Becker.)

And many more - see the NEWS file for details.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Oct 18 16:14:30 2017 UTC (9 years, 1 month ago) by adam
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
R: pkgsrc changes

PkgSrc changes:
* On Darwin, use Aqua interface instead of X11
* Cairo support also requires Pango
* Allow Cairo with other backends, not only X11 (e.g. to make it work on Darwin)

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Mar 11 09:50:34 2017 UTC (9 years, 8 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -1 lines
Update to 3.3.3

Upstream changes:
CHANGES IN R 3.3.3
NEW FEATURES

    Changes when redirection of a http:// URL to a https:// URL is encountered:

        The internal methods of download.file() and url() now report that they cannot follow this (rather than failing silently).

        (Unix-alike) download.file(method = "auto") (the default) re-tries with method = "libcurl".

        (Unix-alike) url(method = "default") with an explicit open argument re-tries with method = "libcurl". This covers many of the usages, e.g. readLines() with a URL argument.

INSTALLATION on a UNIX-ALIKE

    The configure check for the zlib version is now robust to versions longer than 5 characters, including 1.2.11.

UTILITIES

    Environmental variable _R_CHECK_TESTS_NLINES_ controls how R CMD check reports failing tests (see §8 of the ‘R Internals’ manual).

DEPRECATED AND DEFUNCT

    (C-level Native routine registration.) The undocumented styles field of the components of R_CMethodDef and R_FortranMethodDef is deprecated.

BUG FIXES

    vapply(x, *) now works with long vectors x. (PR#17174)

    isS3method("is.na.data.frame") and similar are correct now. (PR#17171)

    grepRaw(<long>, <short>, fixed = TRUE) now works, thanks to a patch by Mikko Korpela. (PR#17132)

    Package installation into a library where the package exists via symbolic link now should work wherever Sys.readlink() works, resolving PR#16725.

    "Cincinnati" was missing an "n" in the precip dataset.

    Fix buffer overflow vulnerability in pdf() when loading an encoding file. Reported by Talos (TALOS-2016-0227).

    getDLLRegisteredRoutines() now produces its warning correctly when multiple DLLs match, thanks to Matt Dowle's PR#17184.

    Sys.timezone() now returns non-NA also on platforms such as Ubuntu 14.04.5 LTS, thanks to Mikko Korpela's PR#17186.

    format(x) for an illegal "POSIXlt" object x no longer segfaults.

    methods(f) now also works for f "(" or "{".

    (Windows only) dir.create() did not check the length of the path to create, and so could overflow a buffer and crash R. (PR#17206)

    On some systems, very small hexadecimal numbers in hex notation would underflow to zero. (PR#17199)

    pmin() and pmax() now work again for ordered factors and 0-length S3 classed objects, thanks to Suharto Anggono's PR#17195 and PR#17200.

    bug.report() did not do any validity checking on a package's BugReports field. It now ignores an empty field, removes leading whitespace and only attempts to open http:// and https:// URLs, falling back to emailing the maintainer.

    Bandwidth selectors bw.ucv() and bw.SJ() gave incorrect answers or incorrectly reported an error (because of integer overflow) for inputs longer than 46341. Similarly for bw.bcv() at length 5793.

    Another possible integer overflow is checked and may result in an error report (rather than an incorrect result) for much longer inputs (millions for a smooth distribution).

    findMethod() failed if the active signature had expanded beyond what a particular package used. (Example with packages XR and XRJulia on CRAN.)

    qbeta() underflowed too early in some very asymmetric cases. (PR#17178)

    R CMD Rd2pdf had problems with packages with non-ASCII titles in ‘.Rd’ files (usually the titles were omitted).

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Jul 26 04:53:33 2016 UTC (10 years, 3 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +9 -3 lines
Update to 3.3.1

Upstream changes:
CHANGES IN R 3.3.1:

  BUG FIXES:

    * R CMD INSTALL and hence install.packages() gave an internal error
      installing a package called description from a tarball on a
      case-insensitive file system.

    * match(x, t) (and hence x %in% t) failed when x was of length one,
      and either character and x and t only differed in their Encoding
      or when x and t where complex with NAs or NaNs.  (PR#16885.)

    * unloadNamespace(ns) also works again when ns is a 'namespace', as
      from getNamespace().

    * rgamma(1,Inf) or rgamma(1, 0,0) no longer give NaN but the
      correct limit.

    * length(baseenv()) is correct now.

    * pretty(d, ..) for date-time d rarely failed when "halfmonth" time
      steps were tried (PR#16923) and on 'inaccurate' platforms such as
      32-bit windows or a configuration with --disable-long-double; see
      comment #15 of PR#16761.

    * In text.default(x, y, labels), the rarely(?) used default for
      labels is now correct also for the case of a 2-column matrix x
      and missing y.

    * as.factor(c(a = 1L)) preserves names() again as in R < 3.1.0.

    * strtrim(""[0], 0[0]) now works.

    * Use of Ctrl-C to terminate a reverse incremental search started
      by Ctrl-R in the readline-based Unix terminal interface is now
      supported for readline >= 6.3 (Ctrl-G always worked).  (PR#16603)

    * diff(<difftime>) now keeps the "units" attribute, as subtraction
      already did, PR#16940.

CHANGES IN R 3.3.0:

  SIGNIFICANT USER-VISIBLE CHANGES:

    * nchar(x, *)'s argument keepNA governing how the result for NAs in
      x is determined, gets a new default keepNA = NA which returns NA
      where x is NA, except for type = "width" which still returns 2,
      the formatting / printing width of NA.

    * All builds have support for https: URLs in the default methods
      for download.file(), url() and code making use of them.

      Unfortunately that cannot guarantee that any particular https:
      URL can be accessed.  For example, server and client have to
      successfully negotiate a cryptographic protocol (TLS/SSL, ...)
      and the server's identity has to be verifiable _via_ the
      available certificates.  Different access methods may allow
      different protocols or use private certificate bundles: we
      encountered a https: CRAN mirror which could be accessed by one
      browser but not by another nor by download.file() on the same
      Linux machine.

  NEW FEATURES:

    * The print method for methods() gains a byclass argument.

    * New functions validEnc() and validUTF8() to give access to the
      validity checks for inputs used by grep() and friends.

    * Experimental new functionality for S3 method checking, notably
      isS3method().

      Also, the names of the R 'language elements' are exported as
      character vector tools::langElts.

    * str(x) now displays "Time-Series" also for matrix (multivariate)
      time-series, i.e. when is.ts(x) is true.

    * (Windows only) The GUI menu item to install local packages now
      accepts *.tar.gz files as well as *.zip files (but defaults to
      the latter).

    * New programmeR's utility function chkDots().

    * D() now signals an error when given invalid input, rather than
      silently returning NA.  (Request of John Nash.)

    * formula objects are slightly more "first class": e.g., formula()
      or new("formula", y ~ x) are now valid.  Similarly, for "table",
      "ordered" and "summary.table".  Packages defining S4 classes with
      the above S3/S4 classes as slots should be reinstalled.

    * New function strrep() for repeating the elements of a character
      vector.

    * rapply() preserves attributes on the list when how = "replace".

    * New S3 generic function sigma() with methods for extracting the
      estimated standard deviation aka "residual standard deviation"
      from a fitted model.

    * news() now displays R and package news files within the HTML help
      system if it is available.  If no news file is found, a visible
      NULL is returned to the console.

    * as.raster(x) now also accepts raw arrays x assuming values in
      0:255.

    * Subscripting of matrix/array objects of type "expression" is now
      supported.

    * type.convert("i") now returns a factor instead of a complex value
      with zero real part and missing imaginary part.

    * Graphics devices cairo_pdf() and cairo_ps() now allow non-default
      values of the cairographics 'fallback resolution' to be set.

      This now defaults to 300 on all platforms: that is the default
      documented by cairographics, but apparently was not used by all
      system installations.

    * file() gains an explicit method argument rather than implicitly
      using getOption("url.method", "default").

    * Thanks to a patch from Tomas Kalibera, x[x != 0] is now typically
      faster than x[which(x != 0)] (in the case where x has no NAs, the
      two are equivalent).

    * read.table() now always uses the names for a named colClasses
      argument (previously names were only used when colClasses was too
      short). (In part, wish of PR#16478.)

    * (Windows only) download.file() with default method = "auto" and a
      ftps:// URL chooses "libcurl" if that is available.

    * The out-of-the box Bioconductor mirror has been changed to one
      using https://: use chooseBioCmirror() to choose a http:// mirror
      if required.

    * The data frame and formula methods for aggregate() gain a drop
      argument.

    * available.packages() gains a repos argument.

    * The undocumented switching of methods for url() on https: and
      ftps: URLs is confined to method = "default" (and documented).

    * smoothScatter() gains a ret.selection argument.

    * qr() no longer has a ... argument to pass additional arguments to
      methods.

    * [ has a method for class "table".

    * It is now possible (again) to replayPlot() a display list
      snapshot that was created by recordPlot() in a different R
      session.

      It is still not a good idea to use snapshots as a persistent
      storage format for R plots, but it is now not completely silly to
      use a snapshot as a format for transferring an R plot between two
      R sessions.

      The underlying changes mean that packages providing graphics
      devices (e.g., Cairo, RSvgDevice, cairoDevice, tikzDevice) will
      need to be reinstalled.

      Code for restoring snapshots was contributed by Jeroen Ooms and
      JJ Allaire.

      Some testing code is available at <URL:
      https://github.com/pmur002/R-display-list>.

    * tools::undoc(dir = D) and codoc(dir = D) now also work when D is
      a directory whose normalizePath()ed version does not end in the
      package name, e.g. from a symlink.

    * abbreviate() has more support for multi-byte character sets - it
      no longer removes bytes within characters and knows about Latin
      vowels with accents.  It is still only really suitable for (most)
      European languages, and still warns on non-ASCII input.

      abbreviate(use.classes = FALSE) is now implemented, and that is
      more suitable for non-European languages.

    * match(x, table) is faster (sometimes by an order of magnitude)
      when x is of length one and incomparables is unchanged, thanks to
      Peter Haverty (PR#16491).

    * More consistent, partly not back-compatible behavior of NA and
      NaN coercion to complex numbers, operations less often resulting
      in complex NA (NA_complex_).

    * lengths() considers methods for length and [[ on x, so it should
      work automatically on any objects for which appropriate methods
      on those generics are defined.

    * The logic for selecting the default screen device on OS X has
      been simplified: it is now quartz() if that is available even if
      environment variable DISPLAY has been set by the user.

      The choice can easily be overridden _via_ environment variable
      R_INTERACTIVE_DEVICE.

    * On Unix-like platforms which support the getline C library
      function, system(*,intern = TRUE) no longer truncates (output)
      lines longer than 8192 characters, thanks to Karl Millar.
      (PR#16544)

    * rank() gains a ties.method = "last" option, for convenience (and
      symmetry).

    * regmatches(invert = NA) can now be used to extract both
      non-matched and matched substrings.

    * data.frame() gains argument fix.empty.names; as.data.frame.list()
      gets new cut.names, col.names and fix.empty.names.

    * plot(x ~ x, *) now warns that it is the same as plot(x ~ 1, *).

    * recordPlot() has new arguments load and attach to allow package
      names to be stored as part of a recorded plot.  replayPlot() has
      new argument reloadPkgs to load/attach any package names that
      were stored as part of a recorded plot.

    * S4 dispatch works within calls to .Internal(). This means
      explicit S4 generics are no longer needed for unlist() and
      as.vector().

    * Only font family names starting with "Hershey" (and not "Her" as
      before) are given special treatment by the graphics engine.

    * S4 values are automatically coerced to vector (via as.vector)
      when subassigned into atomic vectors.

    * findInterval() gets a left.open option.

    * The version of LAPACK included in the sources has been updated to
      3.6.0, including those 'deprecated' routines which were
      previously included.  _Ca_ 40 double-complex routines have been
      added at the request of a package maintainer.

      As before, the details of what is included are in
      src/modules/lapack/README and this now gives information on
      earlier additions.

    * tapply() has been made considerably more efficient without
      changing functionality, thanks to proposals from Peter Haverty
      and Suharto Anggono.  (PR#16640)

    * match.arg(arg) (the one-argument case) is faster; so is
      sort.int().  (PR#16640)

    * The format method for object_size objects now also accepts
      "binary" units such as "KiB" and e.g., "Tb".  (Partly from
      PR#16649.)

    * Profiling now records calls of the form foo::bar and some similar
      cases directly rather than as calls to <Anonymous>.  Contributed
      by Winston Chang.

    * New string utilities startsWith(x, prefix) and endsWith(x,
      suffix).  Also provide speedups for some grepl("^...",*) uses
      (related to proposals in PR#16490).

    * Reference class finalizers run at exit, as well as on garbage
      collection.

    * Avoid parallel dependency on stats for port choice and random
      number seeds.  (PR#16668)

    * The radix sort algorithm and implementation from data.table
      (forder) replaces the previous radix (counting) sort and adds a
      new method for order().  Contributed by Matt Dowle and Arun
      Srinivasan, the new algorithm supports logical, integer (even
      with large values), real, and character vectors.  It outperforms
      all other methods, but there are some caveats (see ?sort).

    * The order() function gains a method argument for choosing between
      "shell" and "radix".

    * New function grouping() returns a permutation that stably
      rearranges data so that identical values are adjacent.  The
      return value includes extra partitioning information on the
      groups.  The implementation came included with the new radix
      sort.

    * rhyper(nn, m, n, k) no longer returns NA when one of the three
      parameters exceeds the maximal integer.

    * switch() now warns when no alternatives are provided.

    * parallel::detectCores() now has default logical = TRUE on all
      platforms - as this was the default on Windows, this change only
      affects Sparc Solaris.

      Option logical = FALSE is now supported on Linux and recent
      versions of OS X (for the latter, thanks to a suggestion of Kyaw
      Sint).

    * hist() for "Date" or "POSIXt" objects would sometimes give
      misleading labels on the breaks, as they were set to the day
      before the start of the period being displayed.  The display
      format has been changed, and the shift of the start day has been
      made conditional on right = TRUE (the default).  (PR#16679)

    * R now uses a new version of the logo (donated to the R Foundation
      by RStudio).  It is defined in .svg format, so will resize
      without unnecessary degradation when displayed on HTML
      pages-there is also a vector PDF version.  Thanks to Dirk
      Eddelbuettel for producing the corresponding X11 icon.

    * New function .traceback() returns the stack trace which
      traceback() prints.

    * lengths() dispatches internally.

    * dotchart() gains a pt.cex argument to control the size of points
      separately from the size of plot labels.  Thanks to Michael
      Friendly and Milan Bouchet-Valat for ideas and patches.

    * as.roman(ch) now correctly deals with more diverse character
      vectors ch; also arithmetic with the resulting roman numbers
      works in more cases.  (PR#16779)

    * prcomp() gains a new option rank. allowing to directly aim for
      less than min(n,p) PC's.  The summary() and its print() method
      have been amended, notably for this case.

    * gzcon() gains a new option text, which marks the connection as
      text-oriented (so e.g. pushBack() works).  It is still always
      opened in binary mode.

    * The import() namespace directive now accepts an argument except
      which names symbols to exclude from the imports. The except
      expression should evaluate to a character vector (after
      substituting symbols for strings). See Writing R Extensions.

    * New convenience function Rcmd() in package tools for invoking R
      CMD tools from within R.

    * New functions makevars_user() and makevars_site() in package
      tools to determine the location of the user and site specific
      Makevars files for customizing package compilation.

  UTILITIES:

    * R CMD check has a new option --ignore-vignettes for use with
      non-Sweave vignettes whose VignetteBuilder package is not
      available.

    * R CMD check now by default checks code usage (_via_ codetools)
      with only the base package attached.  Functions from default
      packages other than base which are used in the package code but
      not imported are reported as undefined globals, with a suggested
      addition to the NAMESPACE file.

    * R CMD check --as-cran now also checks DOIs in package CITATION
      and Rd files.

    * R CMD Rdconv and R CMD Rd2pdf each have a new option
      --RdMacros=pkglist which allows Rd macros to be specified before
      processing.

  DEPRECATED AND DEFUNCT:

    * The previously included versions of zlib, bzip2, xz and PCRE have
      been removed, so suitable external (usually system) versions are
      required (see the 'R Installation and Administration' manual).

    * The unexported and undocumented Windows-only devices cairo_bmp(),
      cairo_png() and cairo_tiff() have been removed.  (These devices
      should be used as e.g. bmp(type = "cairo").)

    * (Windows only) Function setInternet2() has no effect and will be
      removed in due course.  The choice between methods "internal" and
      "wininet" is now made by the method arguments of url() and
      download.file() and their defaults can be set _via_ options.  The
      out-of-the-box default remains "wininet" (as it has been since R
      3.2.2).

    * [<- with an S4 value into a list currently embeds the S4 object
      into its own list such that the end result is roughly equivalent
      to using [[<-.  That behavior is deprecated.  In the future, the
      S4 value will be coerced to a list with as.list().

    * Package tools' functions package.dependencies(), pkgDepends(),
      etc are deprecated now, mostly in favor of package_dependencies()
      which is both more flexible and efficient.

  INSTALLATION and INCLUDED SOFTWARE:

    * Support for very old versions of valgrind (e.g., 3.3.0) has been
      removed.

    * The included libtool script (generated by configure) has been
      updated to version 2.4.6 (from 2.2.6a).

    * libcurl version 7.28.0 or later with support for the https
      protocol is required for installation (except on Windows).

    * BSD networking is now required (except on Windows) and so
      capabilities("http/ftp") is always true.

    * configure uses pkg-config for PNG, TIFF and JPEG where this is
      available.  This should work better with multiple installs and
      with those using static libraries.

    * The minimum supported version of OS X is 10.6 ('Snow Leopard'):
      even that has been unsupported by Apple since 2012.

    * The configure default on OS X is --disable-R-framework: enable
      this if you intend to install under /Library/Frameworks and use
      with R.app.

    * The minimum preferred version of PCRE has since R 3.0.0 been 8.32
      (released in Nov 2012).  Versions 8.10 to 8.31 are now deprecated
      (with warnings from configure), but will still be accepted until
      R 3.4.0.

    * configure looks for C functions __cospi, __sinpi and __tanpi and
      uses these if cospi _etc_ are not found.  (OS X is the main
      instance.)

    * (Windows) R is now built using gcc 4.9.3.  This build will
      require recompilation of at least those packages that include C++
      code, and possibly others.  A build of R-devel using the older
      toolchain will be temporarily available for comparison purposes.

      During the transition, the environment variable R_COMPILED_BY has
      been defined to indicate which toolchain was used to compile R
      (and hence, which should be used to compile code in packages).
      The COMPILED_BY variable described below will be a permanent
      replacement for this.

    * (Windows) A make and R CMD config variable named COMPILED_BY has
      been added.  This indicates which toolchain was used to compile R
      (and hence, which should be used to compile code in packages).

  PACKAGE INSTALLATION:

    * The make macro AWK which used to be made available to files such
      as src/Makefile is no longer set.

  C-LEVEL FACILITIES:

    * The API call logspace_sum introduced in R 3.2.0 is now remapped
      as an entry point to Rf_logspace_sum, and its first argument has
      gained a const qualifier.  (PR#16470)

      Code using it will need to be reinstalled.

      Similarly, entry point log1pexp also defined in Rmath.h is
      remapped there to Rf_log1pexp

    * R_GE_version has been increased to 11.

    * New API call R_orderVector1, a faster one-argument version of
      R_orderVector.

    * When R headers such as R.h and Rmath.h are called from C++ code
      in packages they include the C++ versions of system headers such
      as <cmath> rather than the legacy headers such as <math.h>.
      (Headers Rinternals.h and Rinterface.h already did, and inclusion
      of system headers can still be circumvented by defining
      NO_C_HEADERS, including as from this version for those two
      headers.)

      The manual has long said that R headers should *not* be included
      within an extern "C" block, and almost all the packages affected
      by this change were doing so.

    * Including header S.h from C++ code would fail on some platforms,
      and so gives a compilation error on all.

    * The deprecated header Rdefines.h is now compatible with defining
      R_NO_REMAP.

    * The connections API now includes a function R_GetConnection()
      which allows packages implementing connections to convert R
      connection objects to Rconnection handles used in the API. Code
      which previously used the low-level R-internal getConnection()
      entry point should switch to the official API.

  BUG FIXES:

    * C-level asChar(x) is fixed for when x is not a vector, and it
      returns "TRUE"/"FALSE" instead of "T"/"F" for logical vectors.

    * The first arguments of .colSums() etc (with an initial dot) are
      now named x rather than X (matching colSums()): thus error
      messages are corrected.

    * A coef() method for class "maov" has been added to allow vcov()
      to work with multivariate results. (PR#16380)

    * method = "libcurl" connections signal errors rather than
      retrieving HTTP error pages (where the ISP reports the error).

    * xpdrows.data.frame() was not checking for unique row names; in
      particular, this affected assignment to non-existing rows via
      numerical indexing. (PR#16570)

    * tail.matrix() did not work for zero rows matrices, and could
      produce row "labels" such as "[1e+05,]".

    * Data frames with a column named "stringsAsFactors" now format and
      print correctly.  (PR#16580)

    * cor() is now guaranteed to return a value with absolute value
      less than or equal to 1. (PR#16638)

    * Array subsetting now keeps names(dim(.)).

    * Blocking socket connection selection recovers more gracefully on
      signal interrupts.

    * The data.frame method of rbind() construction row.names works
      better in borderline integer cases, but may change the names
      assigned.  (PR#16666)

    * (X11 only) getGraphicsEvent() miscoded buttons and missed mouse
      motion events.  (PR#16700)

    * methods(round) now also lists round.POSIXt.

    * tar() now works with the default files = NULL.  (PR#16716)

    * Jumps to outer contexts, for example in error recovery, now make
      intermediate jumps to contexts where on.exit() actions are
      established instead of trying to run all on.exit() actions before
      jumping to the final target. This unwinds the stack gradually,
      releases resources held on the stack, and significantly reduces
      the chance of a segfault when running out of C stack space. Error
      handlers established using withCallingHandlers() and
      options("error") specifications are ignored when handling a C
      stack overflow error as attempting one of these would trigger a
      cascade of C stack overflow errors.  (These changes resolve
      PR#16753.)

    * The spacing could be wrong when printing a complex array.
      (Report and patch by Lukas Stadler.)

    * pretty(d, n, min.n, *) for date-time objects d works again in
      border cases with large min.n, returns a labels attribute also
      for small-range dates and in such cases its returned length is
      closer to the desired n.  (PR#16761) Additionally, it finally
      does cover the range of d, as it always claimed.

    * tsp(x) <- NULL did not handle correctly objects inheriting from
      both "ts" and "mts".  (PR#16769)

    * install.packages() could give false errors when
      options("pkgType") was "binary".  (Reported by Jose Claudio
      Faria.)

    * A bug fix in R 3.0.2 fixed problems with locator() in X11, but
      introduced problems in Windows.  Now both should be fixed.
      (PR#15700)

    * download.file() with method = "wininet" incorrectly warned of
      download file length difference when reported length was unknown.
      (PR#16805)

    * diag(NULL, 1) crashed because of missed type checking.
      (PR#16853)

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Apr 13 21:04:04 2016 UTC (10 years, 7 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2016Q2-base, pkgsrc-2016Q2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -1 lines
Update to R 3.2.4

3.2.4
NEW FEATURES

install.packages() and related functions now give a more informative
warning when an attempt is made to install a base package.

summary(x) now prints with less rounding when x contains infinite values.

provideDimnames() gets an optional unique argument.

shQuote() gains type = "cmd2" for quoting in cmd.exe in Windows.

The data.frame method of rbind() gains an optional argument stringsAsFactors
(instead of only depending on getOption("stringsAsFactors")).

smooth(x, *) now also works for long vectors.

tools::texi2dvi() has a workaround for problems with the texi2dvi script
supplied by texinfo 6.1.

It extracts more error messages from the LaTeX logs when in emulation mode.

DEPRECATED AND DEFUNCT

Use of SUPPORT_OPENMP from header ‘Rconfig.h’ is deprecated in favour of
the standard OpenMP define _OPENMP.

(This has been the recommendation in the manual for a while now.)

The make macro AWK which is long unused by R itself but recorded in file
‘etc/Makeconf’ is deprecated and will be removed in R 3.3.0.

The C header file ‘S.h’ is no longer documented: its use should be
replaced by ‘R.h’.

3.2.3

NEW FEATURES

Some recently-added Windows time zone names have been added to the
conversion table used to convert these to Olson names. (Including
those relating to changes for Russia in Oct 2014, as in PR#16503.)

(Windows) Compatibility information has been added to the manifests
for ‘Rgui.exe’, ‘Rterm.exe’ and ‘Rscript.exe’. This should allow
win.version() and Sys.info() to report the actual Windows version up
to Windows 10.

Windows "wininet" FTP first tries EPSV / PASV mode rather than only
using active mode (reported by Dan Tenenbaum).

which.min(x) and which.max(x) may be much faster for logical and integer
x and now also work for long vectors.

The ‘emulation’ part of tools::texi2dvi() has been somewhat enhanced,
including supporting quiet = TRUE. It can be selected by texi2dvi =
"emulation".

(Windows) MiKTeX removed its texi2dvi.exe command in Sept 2015:
tools::texi2dvi() tries texify.exe if it is not found.

(Windows only) Shortcuts for printing and saving have been added to
menus in Rgui.exe.

loess(..., iterTrace=TRUE) now provides diagnostics for robustness
iterations, and the print() method for summary(<loess>) shows slightly
more.

The included version of PCRE has been updated to 8.38, a bug-fix release.

View() now displays nested data frames in a more friendly way.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Aug 14 12:40:19 2015 UTC (11 years, 3 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -3 lines
Update to 3.2.2

Upstream changes:
CHANGES IN R 3.2.2:

  SIGNIFICANT USER-VISIBLE CHANGES:

    * It is now easier to use secure downloads from https:// URLs on
      builds which support them: no longer do non-default options need
      to be selected to do so.  In particular, packages can be
      installed from repositories which offer https:// URLs, and those
      listed by setRepositories() now do so (for some of their
      mirrors).

      Support for https:// URLs is available on Windows, and on other
      platforms if support for libcurl was compiled in and if that
      supports the https protocol (system installations can be expected
      to do).  So https:// support can be expected except on rather old
      OSes (an example being OS X 'Snow Leopard', where a non-system
      version of libcurl can be used).

      (Windows only) The default method for accessing URLs _via_
      download.file() and url() has been changed to be "wininet" using
      Windows API calls.  This changes the way proxies need to be set
      and security settings made: there have been some reports of sites
      being inaccessible under the new default method (but the previous
      methods remain available).

  NEW FEATURES:

    * cmdscale() gets new option list. for increased flexibility when a
      list should be returned.

    * configure now supports texinfo version 6.0, which (unlike the
      change from 4.x to 5.0) is a minor update.  (Wish of PR#16456.)

    * (Non-Windows only) download.file() with default method = "auto"
      now chooses "libcurl" if that is available and a https:// or
      ftps:// URL is used.

    * (Windows only) setInternet2(TRUE) is now the default.  The
      command-line option --internet2 and environment variable
      R_WIN_INTERNET2 are now ignored.

      Thus by default the "internal" method for download.file() and
      url() uses the "wininet" method: to revert to the previous
      default use setInternet2(FALSE).

      This means that https:// can be read by default by
      download.file() (they have been readable by file() and url()
      since R 3.2.0).

      There are implications for how proxies need to be set (see
      ?download.file): also, cacheOK = FALSE is not supported.

    * chooseCRANmirror() and chooseBioCmirror() now offer HTTPS mirrors
      in preference to HTTP mirrors.  This changes the interpretation
      of their ind arguments: see their help pages.

    * capture.output() gets optional arguments type and split to pass
      to sink(), and hence can be used to capture messages.

  C-LEVEL FACILITIES:

    * Header Rconfig.h now defines HAVE_ALLOCA_H if the platform has
      the alloca.h header (it is needed to define alloca on Solaris and
      AIX, at least: see 'Writing R Extensions' for how to use it).

  INSTALLATION and INCLUDED SOFTWARE:

    * The libtool script generated by configure has been modified to
      support FreeBSD >= 10 (PR#16410).

  BUG FIXES:

    * The HTML help page links to demo code failed due to a change in R
      3.2.0.  (PR#16432)

    * If the na.action argument was used in model.frame(), the original
      data could be modified. (PR#16436)

    * getGraphicsEvent() could cause a crash if a graphics window was
      closed while it was in use. (PR#16438)

    * matrix(x, nr, nc, byrow = TRUE) failed if x was an object of type
      "expression".

    * strptime() could overflow the allocated storage on the C stack
      when the timezone had a non-standard format much longer than the
      standard formats. (Part of PR#16328.)

    * options(OutDec = s) now signals a warning (which will become an
      error in the future) when s is not a string with exactly one
      character, as that has been a documented requirement.

    * prettyNum() gains a new option input.d.mark which together with
      other changes, e.g., the default for decimal.mark, fixes some
      format()ting variants with non-default getOption("OutDec") such
      as in PR#16411.

    * download.packages() failed for type equal to either "both" or
      "binary".  (Reported by Dan Tenenbaum.)

    * The dendrogram method of labels() is much more efficient for
      large dendrograms, now using rapply().  (Comment #15 of PR#15215)

    * The "port" algorithm of nls() could give spurious errors.
      (Reported by Radford Neal.)

    * Reference classes that inherited from reference classes in
      another package could invalidate methods of the inherited class.
      Fixing this requires adding the ability for methods to be
      "external", with the object supplied explicitly as the first
      argument, named .self. See "Inter-Package Superclasses" in the
      documentation.

    * readBin() could fail on the SPARC architecture due to alignment
      issues.  (Reported by Radford Neal.)

    * qt(*, df=Inf, ncp=.) now uses the natural qnorm() limit instead
      of returning NaN. (PR#16475)

    * Auto-printing of S3 and S4 values now searches for print() in the
      base namespace and show() in the methods namespace instead of
      searching the global environment.

    * polym() gains a coefs = NULL argument and returns class "poly"
      just like poly() which gets a new simple=FALSE option.  They now
      lead to correct predict()ions, e.g., on subsets of the original
      data.

    * rhyper(nn, <large>) now works correctly. (PR#16489)

    * ttkimage() did not (and could not) work so was removed. Ditto for
      tkimage.cget() and tkimage.configure(). Added two Ttk widgets and
      missing subcommands for Tk's image command: ttkscale(),
      ttkspinbox(), tkimage.delete(), tkimage.height(),
      tkimage.inuse(), tkimage.type(), tkimage.types(),
      tkimage.width(). (PR#15372, PR#16450)

    * getClass("foo") now also returns a class definition when it is
      found in the cache more than once.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue May 26 13:36:57 2015 UTC (11 years, 5 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +15 -1 lines
Put back missing PLIST entries lost in previous update.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed May 13 12:48:05 2015 UTC (11 years, 6 months ago) by ryoon
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +26 -16 lines
Update to 3.2.0

Changelog:
CHANGES IN 3.2.0:

  NEW FEATURES:

    * anyNA() gains a recursive argument.

    * When x is missing and names is not false (including the default
      value), Sys.getenv(x, names) returns an object of class "Dlist"
      and hence prints tidily.

    * (Windows.)  shell() no longer consults the environment variable
      SHELL: too many systems have been encountered where it was set
      incorrectly (usually to a path where software was compiled, not
      where it was installed).  R_SHELL, the preferred way to select a
      non-default shell, can be used instead.

    * Some unusual arguments to embedFonts() can now be specified as
      character vectors, and the defaults have been changed
      accordingly.

    * Functions in the Summary group duplicate less.  (PR#15798)

    * (Unix-alikes.) system(cmd, input = ) now uses
      'shell-execution-environment' redirection, which will be more
      natural if cmd is not a single command (but requires a
      POSIX-compliant shell). (Wish of PR#15508)

    * read.fwf() and read.DIF() gain a fileEncoding argument, for
      convenience.

    * Graphics devices can add attributes to their description in
      .Device and .Devices.  Several of those included with R use a
      "filepath" attribute.

    * pmatch() uses hashing in more cases and so is faster at the
      expense of using more memory. (PR#15697)

    * pairs() gains new arguments to select sets of variables to be
      plotted against each other.

    * file.info(, extra_cols = FALSE) allows a minimal set of columns
      to be computed on Unix-alikes: on some systems without
      properly-configured caching this can be significantly faster with
      large file lists.

    * New function dir.exists() in package base to test efficiently
      whether one or more paths exist and are directories.

    * dput() and friends gain new controls hexNumeric and digits17
      which output double and complex quantities as, respectively,
      binary fractions (exactly, see sprintf("%a")) and as decimals
      with up to 17 significant digits.

    * save(), saveRDS() and serialize() now support ascii = NA which
      writes ASCII files using sprintf("%a") for double/complex
      quantities.  This is read-compatible with ascii = TRUE but avoids
      binary->decimal->binary conversions with potential loss of
      precision.  Unfortunately the Windows C runtime's lack of C99
      compliance means that the format cannot be read correctly there
      in R before 3.1.2.

    * The default for formatC(decimal.mark =) has been changed to be
      getOption("OutDec"); this makes it more consistent with format()
      and suitable for use in print methods, e.g. those for classes
      "density", "ecdf", "stepfun" and "summary.lm".

      getOption("OutDec") is now consulted by the print method for
      class "kmeans", by cut(), dendrogram(), plot.ts() and quantile()
      when constructing labels and for the report from legend(trace =
      TRUE).

      (In part, wish of PR#15819.)

    * printNum() and hence format() and formatC() give a warning if
      big.mark and decimal.mark are set to the same value (period and
      comma are not uncommonly used for each, and this is a check that
      conventions have not got mixed).

    * merge() can create a result which uses long vectors on 64-bit
      platforms.

    * dget() gains a new argument keep.source which defaults to FALSE
      for speed (dput() and dget() are most often used for data objects
      where this can make dget() many times faster).

    * Packages may now use a file of common macro definitions in their
      help files, and may import definitions from other packages.

    * A number of macros have been added in the new share/Rd directory
      for use in package overview help pages, and promptPackage() now
      makes use of them.

    * tools::parse_Rd() gains a new permissive argument which converts
      unrecognized macros into text.  This is used by
      utils:::format.bibentry to allow LaTeX markup to be ignored.

    * options(OutDec =) can now specify a multi-byte character, e.g.,
      options(OutDec = "\u00b7") in a UTF-8 locale.

    * is.recursive(x) is no longer true when x is an external pointer,
      a weak reference or byte code; the first enables all.equal(x, x)
      when x <- getClass(.).

    * ls() (aka objects()) and as.list.environment() gain a new
      argument sorted.

    * The "source" attribute (which has not been added to functions by
      R since before R version 2.14.0) is no longer treated as special.

    * Function returnValue() has been added to give on.exit() code
      access to a function's return value for debugging purposes.

    * crossprod(x, y) allows more matrix coercions when x or y are
      vectors, now equalling t(x) %*% y in these cases (also reported
      by Radford Neal).  Similarly, tcrossprod(x,y) and %*% work in
      more cases with vector arguments.

    * Utility function dynGet() useful for detecting cycles, aka
      infinite recursions.

    * The byte-code compiler and interpreter include new instructions
      that allow many scalar subsetting and assignment and scalar
      arithmetic operations to be handled more efficiently. This can
      result in significant performance improvements in scalar
      numerical code.

    * apply(m, 2, identity) is now the same as the matrix m when it has
      _named_ row names.

    * A new function debuggingState() has been added, allowing to
      temporarily turn off debugging.

    * example() gets a new optional argument run.donttest and
      tools::Rd2ex() a corresponding commentDonttest, with a default
      such that example(..) in help examples will run \donttest code
      only if used interactively (a change in behaviour).

    * rbind.data.frame() gains an optional argument make.row.names, for
      potential speedup.

    * New function extSoftVersion() to report on the versions of
      third-party software in use in this session.  Currently reports
      versions of zlib, bzlib, the liblzma from xz, PCRE, ICU, TRE and
      the iconv implementation.

      A similar function grSoftVersion() in package grDevices reports
      on third-party graphics software.

      Function tcltk::tclVersion() reports the Tcl/Tk version.

    * Calling callGeneric() without arguments now works with primitive
      generics to some extent.

    * vapply(x, FUN, FUN.VALUE) is more efficient notably for large
      length(FUN.VALUE); as extension of PR#16061.

    * as.table() now allows tables with one or more dimensions of
      length 0 (such as as.table(integer())).

    * names(x) <- NULL now clears the names of call and ... objects.

    * library() will report a warning when an insufficient dependency
      version is masking a sufficient one later on the library search
      path.

    * A new plot() method for class "raster" has been added.

    * New check_packages_in_dir_changes() function in package tools for
      conveniently analyzing how changing sources impacts the check
      results of their reverse dependencies.

    * Speed-up from Peter Haverty for ls() and
      methods:::.requirePackage() speeding up package loading.
      (PR#16133)

    * New get0() function, combining exists() and get() in one call,
      for efficiency.

    * match.call() gains an envir argument for specifying the
      environment from which to retrieve the ... in the call, if any;
      this environment was wrong (or at least undesirable) when the
      definition argument was a function.

    * topenv() has been made .Internal() for speedup, based on Peter
      Haverty's proposal in PR#16140.

    * getOption() no longer calls options() in the main case.

    * Optional use of libcurl (version 7.28.0 from Oct 2012 or later)
      for Internet access:

        * capabilities("libcurl") reports if this is available.

        * libcurlVersion() reports the version in use, and other
          details of the "libcurl" build including which URL schemes it
          supports.

        * curlGetHeaders() retrieves the headers for http://, https://,
          ftp:// and ftps:// URLs: analysis of these headers can
          provide insights into the `existence' of a URL (it might for
          example be permanently redirected) and is so used in R CMD
          check --as-cran.

        * download.file() has a new optional method "libcurl" which
          will handle more URL schemes, follow redirections, and allows
          simultaneous downloads of multiple URLs.

        * url() has a new method "libcurl" which handles more URL
          schemes and follows redirections.  The default method is
          controlled by a new option url.method, which applies also to
          the opening of URLs _via_ file() (which happens implicitly in
          functions such as read.table.)

        * When file() or url() is invoked with a https:// or ftps://
          URL which the current method cannot handle, it switches to a
          suitable method if one is available.

    * (Windows.) The DLLs internet.dll and internet2.dll have been
      merged.  In this version it is safe to switch (repeatedly)
      between the internal and Windows internet functions within an R
      session.

      The Windows internet functions are still selected by flag
      --internet2 or setInternet2().  This can be overridden for an
      url() connection _via_ its new method argument.

      download.file() has new method "wininet", selected as the default
      by --internet2 or setInternet2().

    * parent.env<- can no longer modify the parent of a locked
      namespace or namespace imports environment.  Contributed by Karl
      Millar.

    * New function isLoadedNamespace() for readability and speed.

    * names(env) now returns all the object names of an environment
      env, equivalently to ls(env, all.names = TRUE, sorted = FALSE)
      and also to the names of the corresponding list,
      names(as.list(env, all.names = TRUE)).  Note that although
      names() returns a character vector, the names have no particular
      ordering.

    * The memory manager now grows the heap more aggressively. This
      reduces the number of garbage collections, in particular while
      data or code are loaded, at the expense of slightly increasing
      the memory footprint.

    * New function trimws() for removing leading/trailing whitespace.

    * cbind() and rbind() now consider S4 inheritance during S3
      dispatch and also obey deparse.level.

    * cbind() and rbind() will delegate recursively to methods::cbind2
      (methods::rbind2) when at least one argument is an S4 object and
      S3 dispatch fails (due to ambiguity).

    * (Windows.)  download.file(quiet = FALSE) now uses text rather
      than Windows progress bars in non-interactive use.

    * New function hsearch_db() in package utils for building and
      retrieving the help search database used by help.search(), along
      with functions for inspecting the concepts and keywords in the
      help search database.

    * New function .getNamespaceInfo(), a no-check version of
      getNamespaceInfo() mostly for internal speedups.

    * The help search system now takes \keyword entries in Rd files
      which are not standard keywords (as given in KEYWORDS in the R
      documentation directory) as concepts.  For standard keyword
      entries the corresponding descriptions are additionally taken as
      concepts.

    * New lengths() function for getting the lengths of all elements in
      a list.

    * New function toTitleCase() in package tools, tailored to package
      titles.

    * The matrix methods of cbind() and rbind() allow matrices as
      inputs which have 2^31 or more elements.  (For cbind(), wish of
      PR#16198.)

    * The default method of image() has an explicit check for a numeric
      or logical matrix (which was always required).

    * URLencode() will not by default encode further URLs which appear
      to be already encoded.

    * BIC(mod) and BIC(mod, mod2) now give non-NA numbers for arima()
      fitted models, as nobs(mod) now gives the number of "used"
      observations for such models.  This fixes PR#16198, quite
      differently than proposed there.

    * The print() methods for "htest", "pairwise.htest" and
      "power.htest" objects now have a digits argument defaulting to (a
      function of) getOption("digits"), and influencing all printed
      numbers coherently.  Unavoidably, this changes the display of
      such test results in some cases.

    * Code completion for namespaces now recognizes all loaded
      namespaces, rather than only the ones that are also attached.

    * The code completion mechanism can now be replaced by a
      user-specified completer function, for (temporary) situations
      where the usual code completion is inappropriate.

    * unzip() will now warn if it is able to detect truncation when
      unpacking a file of 4GB or more (related to PR#16243).

    * methods() reports S4 in addition to S3 methods; output is
      simplified when the class argument is used.  .S3methods() and
      methods::.S4methods() report S3 and S4 methods separately.

    * Higher order functions such as the apply functions and Reduce()
      now force arguments to the functions they apply in order to
      eliminate undesirable interactions between lazy evaluation and
      variable capture in closures.  This resolves PR#16093.

  INSTALLATION and INCLUDED SOFTWARE:

    * The \donttest sections of R's help files can be tested by
      make check TEST_DONTTEST=TRUE .

    * It is possible to request the use of system valgrind headers
      _via_ configure option --with-system-valgrind-headers: note the
      possible future incompatibility of such headers discussed in the
      'R Installation and Administration' manual. (Wish of PR#16068.)

    * The included version of liblzma has been updated to xz-utils
      5.0.7 (minor bug fixes from 5.0.5).

    * configure options --with-system-zlib, --with-system-bzlib and
      --with-system-pcre are now the default.  For the time being there
      is fallback to the versions included in the R sources if no
      system versions are found or (unlikely) if they are too old.

      Linux users should check that the -devel or -dev versions of
      packages zlib, bzip2/libbz2 and pcre as well as
      xz-devel/liblzma-dev (or similar names) are installed.

    * configure by default looks for the texi2any script from texinfo
      5.1 or later, rather than the makeinfo program.  (makeinfo is a
      link to the Perl script texi2any in texinfo 5.x.)

    * R CMD INSTALL gains an option --built-timestamp=STAMP allowing
      100% reproducible package building, thanks to Dirk Eddelbuettel.

  UTILITIES:

    * There is support for testing the \dontrun and \donttest parts of
      examples in packages.

      tools::testInstalledPackage() accepts new arguments
      commentDontrun = FALSE and commentDonttest = FALSE.

      R CMD check gains options --run-dontrun and --run-donttest.

    * The HTML generated by tools::Rd2HTML() and tools::toHTML()
      methods is now 'XHTML 1.0 Strict'.

    * The compiler package's utility function setCompilerOptions() now
      returns the old values invisibly. The initial optimization level
      can also be set with the environment variable
      R_COMPILER_OPTIMIZE.

    * R CMD build adds a NeedsCompilation field if one is not already
      present in the DESCRIPTION file.

    * R CMD check gains option --test-dir to specify an alternative set
      of tests to run.

    * R CMD check will now by default continue with testing after many
      types of errors, and will output a summary count of errors at the
      end if any have occurred.

    * R CMD check now checks that the Title and Description fields are
      correctly terminated.

    * R CMD check --as-cran now:

        * checks a README.md file can be processed: this needs pandoc
          installed.

        * checks the existence and accessibility of URLs in the
          DESCRIPTION, CITATION, NEWS.Rd and README.md files and in the
          help files (provided the build has libcurl support).

        * reports non-ASCII characters in R source files when there is
          no package encoding declared in the DESCRIPTION file.

        * reports (apparent) S3 methods exported but not registered.

        * reports overwriting registered S3 methods from
          base/recommended packages.  (Such methods are replaced in the
          affected package for the rest of the session, even if the
          replacing namespace is unloaded.)

        * reports if the Title field does not appear to be in title
          case (see 'Writing R Extensions': there may be false
          positives, but note that technical words should be
          single-quoted and will then be accepted).

      Most of these checks can also be selected by environment
      variables: see the 'R Internals' manual.

  C-LEVEL FACILITIES:

    * New C API utility logspace_sum(logx[], n).

    * Entry points rbinom_mu, rnbinom_mu and rmultinom are remapped (by
      default) to Rf_rbinom_mu etc.  This requires packages using them
      to be re-installed.

    * .C(DUP = FALSE) and .Fortran(DUP = FALSE) are now ignored, so
      arguments are duplicated if DUP = TRUE would do so.  As their
      help has long said, .Call() is much preferred.

    * New entry point R_allocLD, like R_alloc but guaranteed to have
      sufficient alignment for long double pointers.

    * isPairList() now returns TRUE for DOTSXP.

  WINDOWS BUILD CHANGES:

  A number of changes to the Windows build system are in development.
  The following are currently in place.

    * Installation using external binary distributions of zlib, bzip2,
      liblzma, pcre, libpng, jpeglib and libtiff is now required, and
      the build instructions have been revised.

    * A new make target rsync-extsoft has been added to obtain copies
      of the external libraries from CRAN.

    * Building the manuals now requires texi2any from texinfo 5.1 or
      later.  CRAN binary builds include the manuals, but by default
      builds from source will not, and they will be accessed from CRAN.
      See the comments in src/gnuwin32/MkRules.dist for how to specify
      the location of texi2any.

    * (Windows) Changes have been made to support an experimental
      Windows toolchain based on GCC 4.9.2.  The default toolchain
      continues to be based on GCC 4.6.3, as the new toolchain is not
      yet stable enough.  A change to a new toolchain is expected
      during the R 3.2.x lifetime.

  PACKAGE INSTALLATION:

    * (Windows) The use of macro ZLIB_LIBS in file src/Makevars.win
      (which has not been documented for a long time) now requires an
      external libz.a to be available (it is part of the 'goodies' used
      to compile Windows binary packages).  It would be simpler to use
      -lz instead.

    * The default for option pkgType on platforms using binary packages
      is now "both", so source packages will be tried if binary
      versions are not available or not up to date.

      There are options for what install.packages(type = "both")
      (possibly called _via_ update.packages()) will do if compilation
      of a source package is desirable: see ?options (under utils).

      If you intend not to accept updates as source packages, you
      should use update.packages(type = "binary").

  DEPRECATED AND DEFUNCT:

    * download.file(method = "lynx") is defunct.

    * Building R using the included versions of zlib, bzip2, xz and
      PCRE is deprecated: these are frozen (bar essential bug-fixes)
      and will be removed for R 3.3.0.

    * The configure option --with-valgrind-instrumentation=3 has been
      withdrawn, as it did not work with recent valgrind headers: it is
      now treated as level 2.

    * The MethodsList class in package methods had been deprecated in R
      2.11.0 and is defunct now.  Functions using it are defunct if
      they had been deprecated in R 2.11.0, and are deprecated now,
      otherwise.

  BUG FIXES:

    * Fixed two obscure bugs in pairlist subassignment, reported by
      Radford Neal as part of pqR issue 16.

    * Fixes for bugs in handling empty arguments and argument matching
      by name in log().

    * all.equal() gains methods for environments and refClasses.

    * [<- and [[<- gain S4 data.frame methods to avoid corruption of S4
      class information by the S3 methods.

    * callNextMethod() should now work within a .local call when ... is
      absent from formals(.local).

    * dput(pairlist(x)) generates a call to the pairlist constructor
      instead of the list constructor.

    * Fix missing() when arguments are propagated through ... .
      (PR#15707)

    * eigen(m) now defaults to symmetric = TRUE even when the dimnames
      are asymmetric if the matrix is otherwise symmetric.  (PR#16151)

    * Fix issues with forwarding ... through callGeneric() and
      callNextMethod().  (PR#16141)

    * callGeneric() now works after a callNextMethod().

    * Subclass information is kept consistent when replacing an
      ordinary S4 class with an "old class" _via_ the S4Class argument
      to setOldClass(). Thus, for example, a data.frame is valid for a
      list argument in the signature, and a factor is valid for vector
      arguments.

    * In qbeta() the inversion of pbeta() is much more sophisticated.
      This works better in corner cases some of which failed completely
      previously (PR#15755), or were using too many iterations.

    * Auto-printing no longer duplicates objects when printing is
      dispatched to a method.

    * kmeans(x, k) would fail when nrow(x) >= 42949673.  (Comment 6 of
      PR#15364)

    * 'Abbreviated' locale-specific day and month names could have been
      truncated in those rare locales where there are the same as the
      full names.

    * An irrelevant warning message from updating subclass information
      was silenced (the namespace would not be writable in this case).

CHANGES IN R 3.1.3:

  NEW FEATURES:

    * The internal method of download.file() can now handle files
      larger than 2GB on 32-bit builds which support such files (tested
      on 32-bit R running on 64-bit Windows).

    * kruskal.test() warns on more types of suspicious input.

    * The as.dendrogram() method for "hclust" objects gains a check
      argument protecting against memory explosion for invalid inputs.

    * capabilities() has a new item long.double which indicates if the
      build uses a long double type which is longer than double.

    * nlm() no longer modifies the callback argument in place (a new
      vector is allocated for each invocation, which mimics the
      implicit duplication that occurred in R < 3.1.0); note that this
      is a change from the previously documented behavior. (PR#15958)

    * icuSetCollate() now accepts locale = "ASCII" which uses the basic
      C function strcmp and so collates strings byte-by-byte in
      numerical order.

    * sessionInfo() tries to report the OS version in use (not just
      that compiled under, and including details of Linux
      distributions).

    * model.frame() (used by lm() and many other modelling functions)
      now warns when it drops contrasts from factors.  (Wish of
      PR#16119)

    * install.packages() and friends now accept the value type =
      "binary" as a synonym for the native binary type on the platform
      (if it has one).

    * Single source or binary files can be supplied for
      install.packages(type = "both") and the appropriate type and
      repos = NULL will be inferred.

    * New function pcre_config() to report on some of the configuration
      options of the version of PCRE in use.  In particular, this
      reports if regular expressions using \p{xx} are supported.

    * (Windows.) download.file(cacheOK = FALSE) is now supported when
      internet2.dll is used.

    * browseURL() has been updated to work with Firefox 36.0 which has
      dropped support for the -remote interface.

  INSTALLATION and INCLUDED SOFTWARE:

    * The included version of PCRE has been updated to 8.36.

    * configure accepts MAKEINFO=texi2any as another way to ensure
      texinfo 5.x is used when both 5.x and 4.x are installed.

  UTILITIES:

    * R CMD check now checks the packages used in \donttest sections of
      the examples are specified in the DESCRIPTION file.  (These are
      needed to run the examples interactively.)

    * R CMD check checks for the undeclared use of GNU extensions in
      Makefiles, and for Makefiles with a missing final linefeed.

      R CMD build will correct line endings in all Makefiles, not just
      those in the src directory.

    * R CMD check notes uses of library() and require() in package
      code: see the section 'Suggested packages' of 'Writing R
      Extensions' for good practice.

  DEPRECATED AND DEFUNCT:

    * The configure option --with-valgrind-instrumentation=3 is
      deprecated and will be removed in R 3.2.0.

  BUG FIXES:

    * (Windows.) Rscript.exe was missing a manifest specifying the
      modern style for common controls (e.g., the download progress
      bar).

    * If a package had extra documentation files but no vignette, the
      HTML help system produced an empty index page.

    * The parser now gives an error if a null character is included in
      a string using Unicode escapes. (PR#16046)

    * qr.Q() failed on complex arguments due to pre-3.0(!) typo.
      (PR#16054)

    * abs() failed with named arguments when the argument was complex.
      (PR#16047)

    * "noquote" objects may now be used as columns in dataframes.
      (PR#15997)

    * Some values with extremely long names were printed incorrectly.
      (PR#15999)

    * Extremely large exponents on zero expressed in scientific
      notation (e.g. 0.0e50000) could give NaN.  (PR#15976)

    * download.file() reported downloaded sizes as 0KB if less than
      1MB, only for R 3.1.2 and only on big-endian platforms.

    * prompt() did not escape percent signs in the automatically
      generated usage section of help files.

    * drop.terms() dropped some of the attributes of the object it was
      working with.  (PR#16029)

    * (Windows.) The command completion in Rgui.exe messed up the
      console.  (PR#15791)

    * (Windows.) The choose.files() command returned a blank string
      when the user asked for a single file but cancelled the request.
      (PR#16074)

    * Math2 S4 group generics failed to correctly dispatch "structure"-
      and "nonStructure"-derived classes.

    * loadNamespace() imposed undocumented restrictions on the
      versionCheck parameter.  (Reported by Geoff Lee.)

    * Rare over-runs detected by AddressSanitizer in substr() and its
      replacement version have been avoided.

      _Inter alia_ that fix gives the documented behaviour for
      substr(x, 1, 2) <- "" (subsequently reported as PR#16214).

    * Loading packages incorrectly defining an S4 generic followed by a
      function of the same name caused an erroneous cyclic namespace
      dependency error.

    * Declared vignette encodings are now always passed to the vignette
      engine.

    * Port Tomas Kalibera's fix from R-devel that restores the
      loadMethod() fast path, effectively doubling the speed of S4
      dispatch.

    * power.t.test() and power.prop.test() now make use of the
      extendInt option of uniroot() and hence work in more extreme
      cases.  (PR#15792)

    * If a package was updated and attached when its namespace was
      already loaded, it could end up with parts from one version and
      parts from the other.  (PR#16120)

    * tools:::.Rdconv() didn't accept --encoding= due to a typo.
      (PR#16121)

    * Unix-alike builds without a suitable makeinfo were documented to
      link the missing HTML manuals to CRAN, but did not.

    * save(*, ascii=TRUE) and load() now correctly deal with NaN's.
      (PR#16137)

    * split.Date() retains fractional representations while avoiding
      incomplete class propagation.

    * R_ext/Lapack.h had not been updated for changes made by LAPACK to
      the argument lists of its (largely internal) functions dlaed2 and
      dlaed3.  (PR#16157)

    * RShowDoc("NEWS", "txt") had not been updated for the layout
      changes of R 3.1.0.

    * The xtfrm() method for class "Surv" has been corrected and its
      description expanded.

    * mode(x) <- y would incorrectly evaluate x before changing its
      mode. (PR#16215)

    * besselJ(1, 2^64) and besselY(..) now signal a warning, returning
      NaN instead of typically segfaulting. (Issue 3 of PR#15554)

    * HTML conversion of \href markup in .Rd files did not remove the
      backslash from \% and so gave an invalid URL.  In a related
      change, the \ escape is now required in such URLs.

CHANGES IN R 3.1.2:

  NEW FEATURES:

    * embedFonts() now defaults to format = "ps2write" for .ps and .eps
      files.  This is available in Ghostscript 9.x (since 2010) whereas
      the previous default, format = "pswrite", was removed in
      Ghostscript 9.10.

    * For consistency with [dpqr]norm(), [dp]lnorm(sdlog = 0) model a
      point mass at exp(mulog) rather than return NaN (for an error).

    * capabilities() now reports if ICU is compiled in for use for
      collation (it is only actually used if a suitable locale is set
      for collation, and never for a C locale).

    * (OS X only.) Package tcltk checks when loaded if it is linked
      against the CRAN X11-based Tcl/Tk and if so that the Tcl/Tk
      component and the X11 libraries are installed.  This allows more
      informative error messages to be given advising the installation
      of the missing component or of XQuartz.

      The X11() device and X11-based versions of the data editor and
      viewer (invoked by edit() and View() for data frames and matrices
      from command-line R) check that the X11 libraries are installed
      and if not advises installing XQuartz.

    * icuSetCollate() allows locale = "default", and locale = "none" to
      use OS services rather than ICU for collation.

      Environment variable R_ICU_LOCALE can be used to set the default
      ICU locale, in case the one derived from the OS locale is
      inappropriate (this is currently necessary on Windows).

    * New function icuGetCollate() to report on the ICU collation
      locale in use (if any).

    * utils::URLencode() was updated to use unreserved and reserved
      characters from RFC 3986 (<URL:
      http://tools.ietf.org/html/rfc3986>) instead of RFC 1738.

    * unique(warnings()) and c(warnings()) are now supported.

    * The Bioconductor 'version' used by setRepositories() now defaults
      to 3.0. (It can be set at runtime _via_ environment variable
      R_BIOC_VERSION.)

    * Omegahat is no longer listed as providing Windows binary
      packages, e.g. by setRepositories().  It has no binary packages
      available for R 3.1.x and those for earlier versions were 32-bit
      only.

  INSTALLATION and INCLUDED SOFTWARE:

    * The configure script reports on the more important
      capabilities/options which will not be compiled in.

      More types of external BLAS are recognized by name in that
      report.

    * When building R as a shared library, the -L${R_HOME}/lib${R_ARCH}
      flag is placed earlier in the link commands used during
      installation and when packages are installed: this helps ensure
      that the current build has priority if an R shared library has
      already been installed by e.g. install-libR in a library
      mentioned in LDFLAGS (and not in 'your system's library
      directory' as documented). (Wish of PR#15790.)

    * LaTeX package upquote is no longer required for R's use of
      inconsolata.

    * (Windows only) If both 32- and 64-bit versions of R are
      installed, the bin/R.exe and bin/Rscript.exe executables now run
      64-bit R.  (To run 32-bit R, overwrite these files with copies of
      bin/i386/Rfe.exe.)

  UTILITIES:

    * Running R CMD check with _R_CHECK_DEPENDS_ONLY_ true now makes
      the VignetteBuilder packages available even if they are listed in
      Suggests, since they are needed to recognise and process
      non-Sweave vignettes.

    * R CMD check now reports empty importFrom declarations in a
      NAMESPACE file, as these are common errors (writing
      importFrom(Pkg) where import(Pkg) was intended).

    * R CMD check now by default checks code usage directly on the
      package namespace without loading and attaching the package and
      its suggests and enhances.  For good practice with packages in
      the Suggests field, see SS1.1.3.1 of 'Writing R Extensions'.  For
      use of lazy-data objects in the package's own code, see ?data.

  BUG FIXES:

    * dmultinom() did not handle non-finite probabilities correctly.

    * prettyNum(x, zero.print=*) now also works when x contains NAs.

    * A longstanding bug exhibited by nlminb() on Windows was traced to
      a compiler bug in gcc 4.6.3; a workaround has been put in place.
      (PR#15244 and PR#15914).

    * Rendering of \command in HTML versions of help pages has been
      improved: this is particularly evident on the help page for
      INSTALL.

    * as.hexmode(x) and as.octmode(x) now behave correctly for some
      numeric x, e.g., c(NA, 1) or c(1, pi).

    * drop1() failed if the scope argument had no variables to drop.
      (PR#15935)

    * edit() (and hence fix()) failed if an object had a non-character
      attribute named "source" (an attribute that had been used in R
      prior to version 2.14.0).

    * callGeneric() could fail if the generic had ... as a formal
      argument. (PR#15937).

    * Forking in package parallel called C entry point exit in the
      child.  This was unsafe (_exit should have been called), and
      could flush stdin of the main R process (seen most often on
      Solaris).

      As good practice, stdout is now flushed before forking a child.

    * R objects such as list(`a\b` = 1) now print correctly.

    * getAnywhere("C_pbinom") now returns correctly a single object
      (rather than unlisting it).

    * The confint() method for nls() fits failed it these has specified
      parameter limits despite using an algorithm other than "port".
      (PR#15960)

    * Subclassing an S4 class failed if the class required arguments to
      the generator, through its initialize() method.

    * removeSource() did not properly handle expressions containing
      arguments that were supplied as missing, e.g.  x[i,]. (PR#15957)

    * as.environment(list()) now works, and as.list() of such an
      environment is now the same as list().

    * Several tcltk functions failed when run in unusual environments.
      (PR#15970)

    * options(list()) now works (trivially). (PR#15979)

    * merge(<dendrogram>, ..) now works correctly for two `independent'
      dendrograms (PR#15648), and still compatibly via adjust = "auto"
      e.g. for two branches of an existing dendrogram.

    * The plot method for "hclust" objects gets an optional argument
      check; When that is true (the default) it checks more carefully
      for valid input.

    * (Windows only) If a user chose to install 64 bit R but not 32 bit
      R, the bin/R and bin/Rscript executables failed to run.
      (PR#15981)

    * Various possible buffer overruns have been prevented, and missed
      memory protection added. (PR#15990)

    * Rscript no longer passes --args to R when there are no extra
      ("user") arguments.

    * objects like getClass("refClass")@prototype now print() and str()
      without error.

    * identical() now also looks at the S4 bit.

    * hist(x, breaks) is more robust in adding a small fuzz to few
      breaks when some are very large. (PR#15988)

    * sub() and gsub() did not handle regular expressions like "\s{2,}"
      properly if the text contained NA or non-ascii elements in a
      UTF-8 locale.  Part of this was due to a bug in the TRE library.
      (PR#16009)

    * RShowDoc("NEWS") now displays the PDF version.

    * Matrices and arrays with last dimension zero did not print at all
      or incompletely.  (PR#16012)

    * plot.histogram() and hence hist() now respect the xaxs, yaxs and
      lab graphics parameters.  (PR#16021)

    * bw.SJ(x) and other bw.*() no longer segfault when x contains
      non-finite values. (PR#16024)

    * R CMD Rd2pdf unintentionally ignored its --os option.

    * The internal method of download.file() was not reporting file
      sizes and progress correctly on files larger than 2GB (inherited
      from libxml2).  This is corrected for 64-bit builds (32-bit
      platforms may not support such files, but where possible will be
      supported in future versions of R).

    * Work around a bug in OS X Yosemite where key environment
      variables may be duplicated causing issues in subprocesses. The
      duplicates are now removed on R startup (via Rprofile).
      (PR#16042)

    * Adjust X11 auto-launch detection in DISPLAY on OS X to recognize
      latest XQuartz.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat May 3 22:29:42 2014 UTC (12 years, 6 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +25 -12 lines
Update to R 3.1.0

 NEW FEATURES:

    * type.convert() (and hence by default read.table()) returns a
      character vector or factor when representing a numeric input as a
      double would lose accuracy.  Similarly for complex inputs.

      If a file contains numeric data with unrepresentable numbers of
      decimal places that are intended to be read as numeric, specify
      colClasses in read.table() to be "numeric".

    * tools::Rdiff(useDiff = FALSE) is closer to the POSIX definition
      of diff -b (as distinct from the description in the man pages of
      most systems).

    * New function anyNA(), a version of any(is.na(.)) which is fast
      for atomic vectors, based on a proposal by Tim Hesterberg.

    * arrayInd(*, useNames = TRUE) and, analogously, which(*, arr.ind =
      TRUE) now make use of names(.dimnames) when available.

    * is.unsorted() now also works for raw vectors.

    * The "table" method for as.data.frame() (also useful as
      as.data.frame.table()) now passes sep and base arguments to
      provideDimnames().

    * uniroot() gets new optional arguments, notably extendInt,
      allowing to auto-extend the search interval when needed.  The
      return value has an extra component, init.it.

    * switch(f, ...) now warns when f is a factor, as this typically
      happens accidentally where the useR meant to pass a character
      string, but f is treated as integer (as always documented).

    * The parser has been modified to use less memory.

    * The way the unary operators (+ - !) handle attributes is now more
      consistent.  If there is no coercion, all attributes (including
      class) are copied from the input to the result: otherwise only
      names, dims and dimnames are.

    * colorRamp() and colorRampPalette() now allow non-opaque colours
     and a ramp in opacity via the new argument alpha = TRUE.
      (Suggested by Alberto Krone-Martins, but optionally as there are
      existing uses which expect only RGB values.)

    * grid.show.layout() and grid.show.viewport() get an optional vp.ex
      argument.

    * There is a new function find_gs_cmd() in the tools package to
      locate a GhostScript executable.  (This is an enhanced version of
      a previously internal function there.)

    * object.size() gains a format() method.

    * There is a new family, "ArialMT", for the pdf() and postscript()
      devices.  This will only be rendered correctly on viewers which
      have access to Monotype TrueType fonts (which are sometimes
      requested by journals).

    * The text and PDF news files, including NEWS and NEWS.2, have been
      moved to the doc directory.

    * combn(x, simplify = TRUE) now gives a factor result for factor
      input x (previously user error).

    * Added utils::fileSnapshot() and utils::changedFiles() functions
      to allow snapshots and comparison of directories of files.

    * make.names(names, unique=TRUE) now tries to preserve existing
      names.

    * New functions cospi(x), sinpi(x), and tanpi(x), for more accurate
      computation of cos(pi*x), etc, both in R and the C API.  Using
      these gains accuracy in some cases, e.g., inside lgamma() or
      besselI().

    * print.table(x, zero.print = ".") now also has an effect when x is
      not integer-valued.

    * There is more support to explore the system's idea of time-zone
      names.  Sys.timezone() tries to give the current system setting
      by name (and succeeds at least on Linux, OS X, Solaris and
     Windows), and OlsonNames() lists the names in the system's Olson
      database. Sys.timezone(location = FALSE) gives the previous
      behaviour.

    * Platforms with a 64-bit time_t type are allowed to handle
      conversions between the "POSIXct" and "POSIXlt" classes for
      date-times outside the 32-bit range (before 1902 or after 2037):
      the existing workarounds are used on other platforms.  (Note that
      time-zone information for post-2037 is speculative at best, and
      the OS services are tested for known errors and so not used on OS
      X.)

      Currently time_t is usually long and hence 64-bit on Unix-alike
      64-bit platforms: however it several cases the time-zone database
      is 32-bit.  On R for Windows it is 64-bit (for both architectures
      as from this version).

    * The "save.defaults" option can include a value for
      compression_level.

    * colSums() and friends now have support for arrays and data-frame
      columns with 2^31 or more elements.

    * as.factor() is faster when f is an unclassed integer vector (for
      example, when called from tapply()).

    * fft() now works with longer inputs, from the 12 million
      previously supported up to 2 billion.

    * Complex svd() now uses LAPACK subroutine ZGESDD, the complex
      analogue of the routine used for the real case.

    * Sweave now outputs .tex files in UTF-8 if the input encoding is
      declared to be UTF-8, regardless of the local encoding.  The
      UTF-8 encoding may now be declared using a LaTeX comment
      containing the string %\SweaveUTF8 on a line by itself.

    * file.copy() gains a copy.date argument.

    * Printing of date-times will make use of the time-zone
      abbreviation in use at the time, if known.  For example, for
      Paris pre-1940 this could be LMT, PMT, WET or WEST.  To enable
      this, the "POSIXlt" class has an optional component "zone"
      recording the abbreviation for each element.

      For platforms which support it, there is also a component
      "gmtoff" recording the offset from GMT where known.

    * (On Windows, by default on OS X and optionally elsewhere.)  The
      system C function strftime has been replaced by a more
      comprehensive version with closer conformance to the POSIX 2008
      standard.

    * dnorm(x, log = FALSE) is more accurate (but somewhat slower) for
      |x| > 5.

    * Some versions of the tiff() device have further compression
      options.

    * read.table(), readLines() and scan() have a new argument to
      influence the treatment of embedded nuls.

    * Avoid duplicating the right hand side values in complex
      assignments when possible.  This reduces copying of replacement
      values in expressions such as Z$a <- a0 and ans[[i]] <- tmp: some
      package code has relied on there being copies.

      Also, a number of other changes to reduce copying of objects; all
      contributed by or based on suggestions by Michael Lawrence.

    * The fast argument of KalmanLike(), KalmanRun() and
      KalmanForecast() has been replaced by update, which instead of
      updating mod in place, optionally returns the updated model in an
      attribute "mod" of the return value.

    * arima() and makeARIMA() get a new optional argument SSinit,
      allowing the choice of a different *s*tate *s*pace initialization
      which has been observed to be more reliable close to
      non-stationarity.

    * warning() has a new argument noBreaks., to simplify
      post-processing of output with options(warn = 1).

    * pushBack() gains an argument encoding, to support reading of
      UTF-8 characters using scan(), read.table() and related functions
      in a non-UTF-8 locale.

    * all.equal.list() gets a new argument use.names which by default
      labels differing components by names (if they match) rather than
      by integer index.  Saved R output in packages may need to be
      updated.

    * The methods for all.equal() and attr.all.equal() now have
      argument check.attributes after ... so it cannot be partially nor
      positionally matched (as it has been, unintentionally).

      A side effect is that some previously undetected errors of
      passing empty arguments (no object between commas) to all.equal()
      are detected and reported.

      There are explicit checks that check.attributes is logical,
      tolerance is numeric and scale is NULL or numeric.  This catches
      some unintended positional matching.

      The message for all.equal.numeric() reports a "scaled difference"
      only for scale != 1.

    * all.equal() now has a "POSIXt" method replacing the "POSIXct"
      method.

    * The "Date" and "POSIXt" methods of seq() allows by = "quarter"
      for completeness (by = "3 months" always worked).

    * file.path() removes any trailing separator on Windows, where they
      are invalid (although sometimes accepted).  This is intended to
      enhance the portability of code written by those using POSIX file
      systems (where a trailing / can be used to confine path matching
      to directories).

    * New function agrepl() which like grepl() returns a logical
      vector.

    * fifo() is now supported on Windows.

    * sort.list(method = "radix") now allows negative integers

    * Some functionality of print.ts() is now available in
      .preformat.ts() for more modularity.

    * mcparallel() gains an option detach = TRUE which allows execution
      of code independently of the current session.  It is based on a
      new estranged = TRUE argument to mcfork() which forks child
      processes such that they become independent of the parent
      process.

    * The pdf() device omits circles and text at extremely small sizes,
      since some viewers were failing on such files.

    * The rightmost break for the "months", "quarters" and "years"
      cases of hist.POSIXlt() has been increased by a day.

    * The handling of DF[i,] <- a where i is of length 0 is improved.

    * hclust() gains a new method "ward.D2" which implements Ward's
      method correctly.  The previous "ward" method is "ward.D" now,
      with the old name still working.  Thanks to research and
      proposals by Pierre Legendre.

    * The sunspot.month dataset has been amended and updated from the
      official source, whereas the sunspots and sunspot.year datasets
      will remain immutable. The documentation and source links have
      been updated correspondingly.

    * The summary() method for "lm" fits warns if the fit is
      essentially perfect, as most of the summary may be computed
      inaccurately (and with platform-dependent values).

      Programmers who use summary() in order to extract just a
      component which will be reliable (e.g. $cov.unscaled) should wrap
      their calls in suppressWarnings().

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Mar 14 20:15:38 2014 UTC (12 years, 8 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2014Q1-base, pkgsrc-2014Q1
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -0 lines
Update to R 3.0.3.   update from wen heping.

CHANGES IN R 3.0.3:

NEW FEATURES:

* On Windows there is support for making .texi manuals using
  texinfo 5.0 or later: the setting is in file
  src/gnuwin32/MkRules.dist.

  A packaging of the Perl script and modules for texinfo 5.2 has
  been made available at <URL:
  http://www.stats.ox.ac.uk/pub/Rtools/>.

* write.table() now handles matrices of 2^31 or more elements, for
  those with large amounts of patience and disc space.

* There is a new function, La_version(), to report the version of
  LAPACK in use.

* The HTML version of 'An Introduction to R' now has links to PNG
  versions of the figures.

* There is some support to produce manuals in ebook formats. (See
  doc/manual/Makefile.  Suggested by Mauro Cavalcanti.)

* On a Unix-alike Sys.timezone() returns NA if the environment
  variable TZ is unset, to distinguish it from an empty string
  which on some OSes means the UTC time zone.

* The backtick may now be escaped in strings, to allow names
  containing them to be constructed, e.g. `\``.

* read.table(), readLines() and scan() now warn when an embedded
  nul is found in the input.

* KalmanForecast(fast = FALSE) is now the default, and the help
  contains an example of how fast = TRUE can be used in this
  version.  (The usage will change in 3.1.0.)

* strptime() now checks the locale only when locale-specific
  formats are used and caches the locale in use: this can halve the
  time taken on OSes with slow system functions (e.g. OS X).

* strptime() and the format() methods for classes "POSIXct",
  "POSIXlt" and "Date" recognize strings with marked encodings:
  this allows, for example, UTF-8 French month names to be read on
  (French) Windows.

* iconv(to = "utf8") is now accepted on all platforms (some
  implementations did already, but GNU libiconv did not: however
  converted strings were not marked as being in UTF-8).  The
  official name, "UTF-8" is still preferred.

* available.packages() is better protected against corrupt metadata
  files.

* Finalizers are marked to be run at garbage collection, but run
  only at a somewhat safer later time (when interrupts are
  checked).  This circumvents some problems with finalizers running
  arbitrary code during garbage collection (the known instances
  being running options() and (C-level) path.expand()
  re-entrantly).

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Feb 6 10:57:21 2014 UTC (12 years, 9 months ago) by markd
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +11 -43 lines
Update to R 3.0.2

* The NEWS files have been re-organized.

  This file contains news for R >= 3.0.0: news for the 0.x.y, 1.x.y
  and 2.x.y releases is in files NEWS.0, NEWS.1 and NEWS.2.  The
  latter files are now installed when R is installed.  An HTML
  version of news from 2.10.0 to 2.15.3 is available as
  doc/html/NEWS.2.html.

* sum() for integer arguments now uses an integer accumulator of at
  least 64 bits and so will be more accurate in the very rare case
  that a cumulative sum exceeds 2^53 (necessarily summing more than
  4 million elements).

* The example() and tools::Rd2ex() functions now have parameters to
  allow them to ignore \dontrun markup in examples.  (Suggested by
  Peter Solymos.)

* str(x) is considerably faster for very large lists, or factors
  with 100,000 levels, the latter as in PR#15337.

* col2rgb() now converts factors to character strings not integer
  codes (suggested by Bryan Hanson).

* tail(warnings()) now works, via the new `[` method.

* There is now support for the LaTeX style file zi4.sty which has
  in some distributions replaced inconsolata.sty.

* unlist(x) now typically returns all non-list xs unchanged, not
  just the "vector" ones.  Consequently, format(lst) now also works
  when the list lst has non-vector elements.

* The tools::getVignetteInfo() function has been added to give
  information about installed vignettes.

* New assertCondition(), etc. utilities in tools, useful for
  testing.

* Profiling now records non-inlined calls from byte-compiled code
  to BUILTIN functions.

* Various functions in stats and elsewhere that use non-standard
  evaluation are now more careful to follow the namespace scoping
  rules.  E.g. stats::lm() can now find stats::model.frame() even
  if stats is not on the search path or if some package defines a
  function of that name.

* If an invalid/corrupt .Random.seed object is encountered in the
  workspace it is ignored with a warning rather than giving an
  error.  (This allows R itself to rely on a working RNG, e.g. to
  choose a random port.)

* seq() and seq.int() give more explicit error messages if called
  with invalid (e.g. NaN) inputs.

* When parse() finds a syntax error, it now makes partial parse
  information available up to the location of the error.  (Request
  of Reijo Sund.)

* Methods invoked by NextMethod() had a different dynamic parent to
  the generic. This was causing trouble where S3 methods invoked
  via lazy evaluation could lose track of their generic.
  (PR#15267)

* Code for the negative binomial distribution now treats the case
  size == 0 as a one-point distribution at zero.
* abbreviate() handles without warning non-ASCII input strings
  which require no abbreviation.

* read.dcf() no longer has a limit of 8191 bytes per line. (Wish of
  PR#15250.)

* formatC(x) no longer copies the class of x to the result, to
  avoid misuse creating invalid objects as in PR#15303.  A warning
  is given if a class is discarded.

* Dataset npk has been copied from MASS to allow more tests to be
  run without recommended packages being installed.

* The initialization of the regression coefficients for
  non-degenerate differenced models in arima() has been changed and
  in some examples avoids a local maximum.  (PR#15396)

* termplot() now has an argument transform.x to control the display
  of individual terms in the plot.  (PR#15329)

* format() now supports digits = 0, to display nsmall decimal
  places.

* There is a new read-only par() parameter called "page", which
  returns a logical value indicating whether the next plot.new()
  call will start a new page.

* Processing Sweave and Rd documents to PDF now renders backticks

* utils::modifyList() gets a new argument keep.null allowing NULL
  components in the replacement to be retained, instead of causing
  corresponding components to be deleted.

* tools::pkgVignettes() gains argument check; if set to TRUE, it
  will warn when it appears a vignette requests a non-existent
  vignette engine.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Aug 13 19:53:30 2013 UTC (13 years, 3 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +366 -253 lines
Update to R 3.0.1

Changes: many new features and bug fixes.  See NEWS file for details.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Apr 6 03:16:50 2013 UTC (13 years, 7 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +10 -1 lines
Install info files.  Bump PKGREVISION.
Fixes PR pkg/47391

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Dec 17 09:08:46 2012 UTC (13 years, 11 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +49 -37 lines
Update to 2.15.1
Approved by wiz@

Upstream changes:
CHANGES IN R VERSION 2.15.1:

  NEW FEATURES:

    o source() now uses withVisible() rather than
      .Internal(eval.with.vis).  This sometimes alters tracebacks
      slightly.

    o install.packages("pkg_version.tgz") on Mac OS X now has sanity
      checks that this is actually a binary package (as people have
      tried it with incorrectly named source packages).

    o splineDesign() and spline.des() in package splines have a new
      option sparse which can be used for efficient construction of a
      sparse B-spline design matrix (_via_ Matrix).

    o norm() now allows type = "2" (the 'spectral' or 2-norm) as well,
      mainly for didactical completeness.

    o pmin() and pmax()) now also work when one of the inputs is of
      length zero and others are not, returning a zero-length vector,
      analogously to, say, +.

    o colorRamp() (and hence colorRampPalette()) now also works for the
      boundary case of just one color when the ramp is flat.

    o qqline() has new optional arguments distribution, probs and
      qtype, following the example of lattice's panel.qqmathline().

    o .C() gains some protection against the misuse of character vector
      arguments.  (An all too common error is to pass character(N),
      which initializes the elements to "", and then attempt to edit
      the strings in-place, sometimes forgetting to terminate them.)

    o Calls to the new function globalVariables() in package utils
      declare that functions and other objects in a package should be
      treated as globally defined, so that CMD check will not note
      them.

    o print(packageDescription(*)) trims the Collate field by default.

    o The included copy of zlib has been updated to version 1.2.7.

    o A new option "show.error.locations" has been added.  When set to
      TRUE, error messages will contain the location of the most recent
      call containing source reference information. (Other values are
      supported as well; see ?options.)
   o The NA warning messages from e.g. pchisq() now report the call to
      the closure and not that of the .Internal.

    o Added Polish translations by <c5><81>ukasz Daniel.

  PERFORMANCE IMPROVEMENTS:

    o In package parallel, makeForkCluster() and the multicore-based
      functions use native byte-order for serialization (deferred from
      2.15.0).

    o lm.fit(), lm.wfit(), glm.fit() and lsfit() do less copying of
      objects, mainly by using .Call() rather than .Fortran().

    o .C() and .Fortran() do less copying: arguments which are raw,
      logical, integer, real or complex vectors and are unnamed are not
      copied before the call, and (named or not) are not copied after
      the call.  Lists are no longer copied (they are supposed to be
      used read-only in the C code).

    o tabulate() makes use of .C(DUP = FALSE) and hence does not copy
      bin.  (Suggested by Tim Hesterberg.)  It also avoids making a
      copy of a factor argument bin.

    o Other functions (often or always) doing less copying include
      cut(), dist(), the complex case of eigen(), hclust(), image(),
      kmeans(), loess(), stl() and svd(LINPACK = TRUE).

    o There is less copying when using primitive replacement functions
      such as names(), attr() and attributes().

  DEPRECATED AND DEFUNCT:

    o The converters for use with .C() (see ?getCConverterDescriptions)
      are deprecated: use the .Call() interface instead.  There are no
      known examples (they were never fully documented).

  UTILITIES:

    o For R CMD check, a few people have reported problems with
      junctions on Windows (although they were tested on Windows 7, XP
      and Server 2008 machines and it is unknown under what
      circumstances the problems occur).  Setting the environment
      variable R_WIN_NO_JUNCTIONS to a non-empty value (e.g. in
      ~/.R/check.Renviron) will force copies to be used instead.

  INSTALLATION:
    o R CMD INSTALL with _R_CHECK_INSTALL_DEPENDS_ set to a true value
      (as done by R CMD check --as-cran) now restricts the packages
      available when lazy-loading as well as when test-loading (since
      packages such as ETLUtils and agsemisc had top-level calls to
      library() for undeclared packages).

      This check is now also available on Windows.

  C-LEVEL FACILITIES:

    o C entry points mkChar and mkCharCE now check that the length of
      the string they are passed does not exceed 2^31-1 bytes: they
      used to overflow with unpredictable consequences.

    o C entry points R_GetCurrentSrcref and R_GetSrcFilename have been
      added to the API to allow debuggers access to the source
      references on the stack.

  WINDOWS-SPECIFIC CHANGES:

    o Windows-specific changes will now be announced in this file
      (NEWS).  Changes up and including R 2.15.0 remain in the CHANGES
      file.

    o There are two new environment variables which control the
      defaults for command-line options.

      If R_WIN_INTERNET2 is set to a non-empty value, it is as if
      --internet2 was used.

      If R_MAX_MEM_SIZE is set, it gives the default memory limit if
      --max-mem-size is not specified: invalid values being ignored.

  BUG FIXES:

    o lsfit() lost the names from the residuals.

    o More cases in which merge() could create a data frame with
      duplicate column names now give warnings.  Cases where names
      specified in by match multiple columns are errors.

    o Nonsense uses such as seq(1:50, by = 5) (from package plotrix)
      and seq.int(1:50, by = 5) are now errors.

    o The residuals in the 5-number summary printed by summary() on an
      "lm" object are now explicitly labelled as weighted residuals
      when non-constant weights are present.  (Wish of PR#14840.)

    o tracemem() reported that all objects were copied by .C() or
      .Fortran() whereas only some object types were ever copied.

      It also reported and marked as copies _some_ transformations such
      as rexp(n, x): it no longer does so.

    o The plot() method for class "stepfun" only used the optional xval
      argument to compute xlim and not the points at which to plot (as
      documented).  (PR#14864)

    o Names containing characters which need to be escaped were not
      deparsed properly.  (PR#14846)

    o Trying to update (recommended) packages in R_HOME/library without
      write access is now dealt with more gracefully.  Further, such
      package updates may be skipped (with a warning), when a newer
      installed version is already going to be used from .libPaths().
      (PR#14866)

    o hclust() is now fast again (as up to end of 2003), with a
      different fix for the "median"/"centroid" problem.  (PR#4195).

    o get_all_vars() failed when the data came entirely from vectors in
      the global environment. (PR#14847)

    o R CMD check with _R_CHECK_NO_RECOMMENDED_ set to a true value (as
      done by the --as-cran option) could issue false errors if there
      was an indirect dependency on a recommended package.

    o formatC() uses the C entry point str_signif which could write
      beyond the length allocated for the output string.

    o Missing default argument added to implicit S4 generic for
      backsolve(). (PR#14883)

    o Some bugs have been fixed in handling load actions that could
      fail to export assigned items or generate spurious warnings in
      CMD check on loading.

    o For tiff(type = "windows"), the numbering of per-page files
      except the last was off by one.

    o On Windows, loading package stats (which is done for a default
      session) would switch line endings on stdout and stderr from CRLF
      to LF.  This affected Rterm and R CMD BATCH.

    o On Windows, the compatibility function x11() had not kept up with
      changes to windows(), and issued warnings about bad parameters.
      (PR#14880)

    o On Windows, the Sys.glob() function did not handle UNC paths as
      it was designed to try to do. (PR#14884)

    o In package parallel, clusterApply() and similar failed to handle
      a (pretty pointless) length-1 argument. (PR#14898)

    o Quartz Cocoa display reacted asynchronously to dev.flush() which
      means that the redraw could be performed after the plot has been
      already modified by subsequent code. The redraw is now done
      synchronously in dev.flush() to allow animations without sleep
      cycles.

    o Source locations reported in traceback() were incorrect when
      byte-compiled code was on the stack.

    o plogis(x, lower = FALSE, log.p = TRUE) no longer underflows early
      for large x (e.g. 800).

    o ?Arithmetic's "1 ^ y and y ^ 0 are 1, _always_" now also applies
      for integer vectors y.

    o X11-based pixmap devices like png(type = "Xlib") were trying to
      set the cursor style, which triggered some warnings and hangs.

    o Code executed by the built-in HTTP server no longer allows other
      HTTP clients to re-enter R until the current worker evaluation
      finishes, to prevent cascades.

    o The plot() and Axis() methods for class "table" now respect
      graphical parameters such as cex.axis.  (Reported by Martin
      Becker.)

    o Under some circumstances package.skeleton() would give out
      progress reports that could not be translated and so were
      displayed by question marks.  Now they are always in English.
      (This was seen for CJK locales on Windows, but may have occurred
      elsewhere.)

    o The evaluator now keeps track of source references outside of
      functions, e.g. when source() executes a script.

    o The replacement method for window() now works correctly for
      multiple time series of class "mts".  (PR#14925)

    o is.unsorted() gave incorrect results on non-atomic objects such
      as data frames.  (Reported by Matthew Dowle.)

    o The value returned by tools::psnice() for invalid pid values was
      not always NA as documented.

    o Closing an X11() window while locator() was active could abort
      the R process.

    o getMethod(f, sig) produced an incorrect error message in some
      cases when f was not a string).

    o Using a string as a "call" in an error condition with
      options(showErrorCalls=TRUE) could cause a segfault.  (PR#14931)

    o The string "infinity" allowed by C99 was not accepted as a
      numerical string value by e.g. scan() and as.character().
      (PR#14933)

    o In legend(), setting some entries of lwd to NA was inconsistent
      (depending on the graphics device) in whether it would suppress
      those lines; now it consistently does so.  (PR#14926)

    o by() failed for a zero-row data frame.  (Reported by Weiqiang
      Qian)

    o Yates correction in chisq.test() could be bigger than the terms
      it corrected, previously leading to an infinite test statistic in
      some corner cases which are now reported as NaN.

    o xgettext() and related functions sometimes returned items that
      were not strings for translation. (PR#14935)

    o plot(<lm>, which=5) now correctly labels the factor level
      combinations for the special case where all h[i,i] are the same.
      (PR#14837)

CHANGES IN R VERSION 2.15.0:

  SIGNIFICANT USER-VISIBLE CHANGES:

    o The behaviour of unlink(recursive = TRUE) for a symbolic link to
      a directory has changed: it now removes the link rather than the
      directory contents (just as rm -r does).

      On Windows it no longer follows reparse points (including
      junctions and symbolic links).

  NEW FEATURES:

    o Environment variable RD2DVI_INPUTENC has been renamed to
      RD2PDF_INPUTENC.

    o .Deprecated() becomes a bit more flexible, getting an old
      argument.

    o Even data-only packages without R code need a namespace and so
      may need to be installed under R 2.14.0 or later.

    o assignInNamespace() has further restrictions on use apart from at
      top-level, as its help page has warned.  Expect it to be disabled
      from programmatic use in the future.

    o system() and system2() when capturing output report a non-zero
      status in the new "status" attribute.

    o kronecker() now has an S4 generic in package methods on which
      packages can set methods.  It will be invoked by X %x% Y if
      either X or Y is an S4 object.

    o pdf() accepts forms like file = "|lpr" in the same way as
      postscript().

    o pdf() accepts file = NULL.  This means that the device does NOT
      create a PDF file (but it can still be queried, e.g., for font
      metric info).

    o format() (and hence print()) on "bibentry" objects now uses
      options("width") to set the output width.

    o legend() gains a text.font argument. (Suggested by Tim Paine,
      PR#14719.)

    o nchar() and nzchar() no longer accept factors (as integer
      vectors).  (Wish of PR#6899.)

    o summary() behaves slightly differently (or more precisely, its
      print() method does).  For numeric inputs, the number of NAs is
      printed as an integer and not a real.  For dates and datetimes,
      the number of NAs is included in the printed output (the latter
      being the wish of PR#14720).

      The "data.frame" method is more consistent with the default
      method: in particular it now applies zapsmall() to
      numeric/complex summaries.

    o The number of items retained with options(warn = 0) can be set by
      options(nwarnings=).

    o There is a new function assignInMyNamespace() which uses the
      namespace of the function it is called from.

    o attach() allows the default name for an attached file to be
      overridden.

    o bxp(), the work horse of boxplot(), now uses a more sensible
      default xlim in the case where at is specified differently from
      1:n, see the discussion on R-devel, <URL:
      https://stat.ethz.ch/pipermail/r-devel/2011-November/062586.html>.

    o New function paste0(), an efficient version of paste(*, sep=""),
      to be used in many places for more concise (and slightly more
      efficient) code.

    o Function setClass() in package methods now returns, invisibly, a
      generator function for the new class, slightly preferred to
      calling new(), as explained on the setClass help page.

    o The "dendrogram" method of str() now takes its default for
      last.str from option str.dendrogram.last.

    o New simple fitted() method for "kmeans" objects.

    o The traceback() function can now be called with an integer
      argument, to display a current stack trace. (Wish of PR#14770.)

    o setGeneric() calls can be simplified when creating a new generic
      function by supplying the default method as the def argument.
      See ?setGeneric.

    o serialize() has a new option xdr = FALSE which will use the
      native byte-order for binary serializations.  In scenarios where
      only little-endian machines are involved (these days, close to
      universal) and (un)serialization takes an appreciable amount of
      time this may speed up noticeably transferring data between
      systems.

    o The internal (un)serialization code is faster for long vectors,
      particularly with XDR on some platforms.  (Based on a suggested
      patch by Michael Spiegel.)

    o For consistency, circles with zero radius are omitted by points()
      and grid.circle().  Previously this was device-dependent, but
      they were usually invisible.

    o NROW(x) and NCOL(x) now work whenever dim(x) looks appropriate,
      e.g., also for more generalized matrices.

    o PCRE has been updated to version 8.30.

    o The internal R_Srcref variable is now updated before the browser
      stops on entering a function.  (Suggestion of PR#14818.)

    o There are 'bare-bones' functions .colSums(), .rowSums(),
      .colMeans() and .rowMeans() for use in programming where ultimate
      speed is required.

    o The formerly internal function .package_dependencies() from
      package tools for calculating (recursive) (reverse) dependencies
      on package databases has been renamed to package_dependencies()
      and is now exported.

    o There is a new function optimHess() to compute the (approximate)
      Hessian for an optim() solution if hessian = TRUE was forgotten.

    o .filled.contour() is a 'bare-bones' function to add a
      filled-contour rectangular plot to an already prepared plot
      region.

    o The stepping in debugging and single-step browsing modes has
      changed slightly: now left braces at the start of the body are
      stepped over for if statements as well as for for and while
      statements.  (Wish of PR#14814.)

    o library() no longer warns about a conflict with a function from
      package:base if the function has the same code as the base one
      but with a different environment.  (An example is Matrix::det().)

    o When deparsing very large language objects, as.character() now
      inserts newlines after each line of approximately 500 bytes,
      rather than truncating to the first line.

    o New function rWishart() generates Wishart-distributed random
      matrices.

    o Packages may now specify actions to be taken when the package is
      loaded (setLoadActions()).

    o options(max.print = Inf) and similar now give an error (instead
      of warnings later).

    o The "difftime" replacement method of units tries harder to
      preserve other attributes of the argument.  (Wish of PR#14839.)

    o poly(raw = TRUE) no longer requires more unique points than the
      degree.  (Requested by John Fox.)

  PACKAGE parallel:

    o There is a new function mcmapply(), a parallel version of
      mapply(), and a wrapper mcMap(), a parallel version of Map().

    o A default cluster can be registered by the new function
      setDefaultCluster(): this will be used by default in functions
      such as parLapply().

    o clusterMap() has a new argument .scheduling to allow the use of
      load-balancing.

    o There are new load-balancing functions parLapplyLB() and
      parSapplyLB().

    o makePSOCKCluster() has a new option useXDR = FALSE which can be
      used to avoid byte-shuffling for serialization when all the nodes
      are known to be little-endian (or all big-endian).

  PACKAGE INSTALLATION:

    o Non-ASCII vignettes without a declared encoding are no longer
      accepted.

    o C/C++ code in packages is now compiled with -NDEBUG to mitigate
      against the C/C++ function assert being called in production use.
      Developers can turn this off during package development with
      PKG_CPPFLAGS = -UNDEBUG.

    o R CMD INSTALL has a new option --dsym which on Mac OS X (Darwin)
      dumps the symbols alongside the .so file: this is helpful when
      debugging with valgrind (and especially when installing packages
      into R.framework).  [This can also be enabled by setting the
      undocumented environment variable PKG_MAKE_DSYM, since R 2.12.0.]

    o R CMD INSTALL will test loading under all installed
      sub-architectures even for packages without compiled code, unless
      the flag --no-multiarch is used.  (Pure R packages can do things
      which are architecture-dependent: in the case which prompted
      this, looking for an icon in a Windows R executable.)

    o There is a new option install.packages(type = "both") which tries
      source packages if binary packages are not available, on those
      platforms where the latter is the default.

    o The meaning of install.packages(dependencies = TRUE) has changed:
      it now means to install the essential dependencies of the named
      packages plus the Suggests, but only the essential dependencies
      of dependencies.  To get the previous behaviour, specify
      dependencies as a character vector.

    o R CMD INSTALL --merge-multiarch is now supported on OS X and
      other Unix-alikes using multiple sub-architectures.

    o R CMD INSTALL --libs-only now by default does a test load on
      Unix-alikes as well as on Windows: suppress with --no-test-load.

  UTILITIES:

    o R CMD check now gives a warning rather than a note if it finds
      inefficiently compressed datasets.  With bzip2 and xz compression
      having been available since R 2.10.0, it only exceptionally makes
      sense to not use them.

      The environment variable _R_CHECK_COMPACT_DATA2_ is no longer
      consulted: the check is always done if _R_CHECK_COMPACT_DATA_ has
      a true value (its default).

    o Where multiple sub-architectures are to be tested, R CMD check
      now runs the examples and tests for all the sub-architectures
      even if one fails.

    o R CMD check can optionally report timings on various parts of the
      check: this is controlled by environment variable
      _R_CHECK_TIMINGS_ documented in 'Writing R Extensions'.  Timings
      (in the style of R CMD BATCH) are given at the foot of the output
      files from running each test and the R code in each vignette.

    o There are new options for more rigorous testing by R CMD check
      selected by environment variables - see the 'Writing R
      Extensions' manual.

    o R CMD check now warns (rather than notes) on undeclared use of
      other packages in examples and tests: increasingly people are
      using the metadata in the DESCRIPTION file to compute information
      about packages, for example reverse dependencies.

    o The defaults for some of the options in R CMD check (described in
      the 'R Internals' manual) have changed: checks for unsafe and
      .Internal() calls and for partial matching of arguments in R
      function calls are now done by default.

    o R CMD check has more comprehensive facilities for checking
      compiled code and so gives fewer reports on entry points linked
      into .so/.dll files from libraries (including C++ and Fortran
      runtimes).

      Checking compiled code is now done on FreeBSD (as well as the
      existing supported platforms of Linux, Mac OS X, Solaris and
      Windows).

    o R CMD build has more options for --compact-vignettes: see R CMD
      build --help.

    o R CMD build has a new option --md5 to add an MD5 file (as done by
      CRAN): this is used by R CMD INSTALL to check the integrity of
      the distribution.

      If this option is not specified, any existing (and probably
      stale) MD5 file is removed.

  DEPRECATED AND DEFUNCT:

    o R CMD Rd2dvi is now defunct: use R CMD Rd2pdf.

    o Options such --max-nsize, --max-vsize and the function
      mem.limits() are now defunct.  (Options --min-nsize and
      --min-vsize remain available.)

    o Use of library.dynam() without specifying all the first three
      arguments is now disallowed.

      Use of an argument chname in library.dynam() including the
      extension .so or .dll (which was never allowed according to the
      help page) is defunct.  This also applies to
      library.dynam.unload() and to useDynLib directives in NAMESPACE
      files.

    o The internal functions .readRDS() and .saveRDS() are now defunct.

    o The off-line help() types "postscript" and "ps" are defunct.

    o Sys.putenv(), replaced and deprecated in R 2.5.0, is finally
      removed.

    o Some functions/objects which have been defunct for five or more
      years have been removed completely.  These include .Alias(),
      La.chol(), La.chol2inv(), La.eigen(), Machine(), Platform(),
      Version, codes(), delay(), format.char(), getenv(), httpclient(),
      loadURL(), machine(), parse.dcf(), printNoClass(), provide(),
      read.table.url(), restart(), scan.url(), symbol.C(), symbol.For()
      and unix().

    o The ENCODING argument to .C() is deprecated.  It was intended to
      smooth the transition to multi-byte character strings, but can be
      replaced by the use of iconv() in the rare cases where it is
      still needed.

  INSTALLATION:

    o Building with a positive value of --with-valgrind-instrumentation
      now also instruments logical, complex and raw vectors.

  C-LEVEL FACILITIES:

    o Passing R objects other than atomic vectors, functions, lists and
      environments to .C() is now deprecated and will give a warning.
      Most cases (especially NULL) are actually coding errors.  NULL
      will be disallowed in future.

      .C() now passes a pairlist as a SEXP to the compiled code.  This
      is as was documented, but pairlists were in reality handled
      differently as a legacy from the early days of R.

    o call_R and call_S are deprecated.  They still exist in the
      headers and as entry points, but are no longer documented and
      should not be used for new code.

  BUG FIXES:

    o str(x, width) now obeys its width argument also for function
      headers and other objects x where deparse() is applied.

    o The convention for x %/% 0L for integer-mode x has been changed
      from 0L to NA_integer_.  (PR#14754)

    o The exportMethods directive in a NAMESPACE file now exports S4
      generics as necessary, as the extensions manual said it does.
      The manual has also been updated to be a little more informative
      on this point.

      It is now required that there is an S4 generic (imported or
      created in the package) when methods are to be exported.

    o Reference methods cannot safely use non-exported entries in the
      namespace.  We now do not do so, and warn in the documentation.

    o The namespace import code was warning when identical S4 generic
      functions were imported more than once, but should not (reported
      by Brian Ripley, then Martin Morgan).

    o merge() is no longer allowed (in some ways) to create a data
      frame with duplicate column names (which confused PR#14786).

    o Fixes for rendering raster images on X11 and Windows devices when
      the x-axis or y-axis scale is reversed.

    o getAnywhere() found S3 methods as seen from the utils namespace
      and not from the environment from which it was called.

    o selectMethod(f, sig) would not return inherited group methods
      when caching was off (as it is by default).

    o dev.copy2pdf(out.type = "cairo") gave an error.  (PR#14827)

    o Virtual classes (e.g., class unions) had a NULL prototype even if
      that was not a legal subclass.  See ?setClassUnion.

    o The C prototypes for zdotc and zdotu in R_ext/BLAS.h have been
      changed to the more modern style rather than that used by f2c.
      (Patch by Berwin Turlach.)

    o isGeneric() produced an error for primitives that can not have
      methods.

    o .C() or .Fortran() had a lack-of-protection error if the
      registration information resulted in an argument being coerced to
      another type.

    o boxplot(x=x, at=at) with non finite elements in x and non integer
      at could not generate a warning but failed.

    o heatmap(x, symm=TRUE, RowSideColors=*) no longer draws the colors
      in reversed order.

    o predict(<ar>) was incorrect in the multivariate case, for p >= 2.

    o print(x, max=m) is now consistent when x is a "Date"; also the
      "reached ... max.print .." messages are now consistently using
      single brackets.

    o Closed the <li> tag in pages generated by Rd2HTML(). (PR#14841.)

    o Axis tick marks could go out of range when a log scale was used.
      (PR#14833.)

    o Signature objects in methods were not allocated as S4 objects
      (caused a problem with trace() reported by Martin Morgan).

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Apr 15 03:29:48 2012 UTC (14 years, 7 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -11 lines
Update to 2.14.2

CHANGES IN R VERSION 2.14.2:

  NEW FEATURES:

    o The internal untar() (as used by default by R CMD INSTALL) now
      knows about some pax headers which bsdtar (e.g., the default tar
      for Mac OS >= 10.6) can incorrectly include in tar files, and
      will skip them with a warning.

    o Function compactPDF() in package tools now takes the default for
      argument gs_quality from environment variable GS_QUALITY: there
      is a new value "none", the ultimate default, which prevents
      GhostScript being used in preference to qpdf just because
      environment variable R_GSCMD is set.  If R_GSCMD is unset or set
      to "", the function will try to find a suitable GhostScript
      executable.

    o For consistency with the logLik() method, nobs() for "nls" files
      now excludes observations with zero weight.  (Reported by Berwin
       Turlach.)

  UTILITIES:

    o R CMD check now reports by default on licenses not according to
      the description in 'Writing R Extensions'.

    o R CMD check has a new option --as-cran to turn on most of the
      customizations that CRAN uses for its incoming checks.

  PACKAGE INSTALLATION:

    o R CMD INSTALL will now no longer install certain file types from
      inst/doc: these are almost certainly mistakes and for some
      packages are wasting a lot of space.

  + BUG FIXES

CHANGES IN R VERSION 2.14.1:

  NEW FEATURES:

    o parallel::detectCores() is now able to find the number of
      physical cores (rather than CPUs) on Sparc Solaris.

      It can also do so on most versions of Windows; however the
      default remains detectCores(logical = TRUE) on that platform.

    o Reference classes now keep a record of which fields are locked.
      $lock() with no arguments returns the names of the locked fields.

    o HoltWinters() reports a warning rather than an error for some
      optimization failures (where the answer might be a reasonable
      one).

    o tools::dependsOnPkg() now accepts the shorthand dependencies =
      "all".

    o parallel::clusterExport() now allows specification of an
      environment from which to export.

    o The quartz() device now does tilde expansion on its file
      argument.

    o Option print in Sweave's RweaveLatex() driver now emulates
      auto-printing rather than printing (which can differ for an S4
      object by calling show() rather than print()).

    o filled.contour() now accepts infinite values: previously it might
      have generated invalid graphics files (e.g. containing NaN
      values).

  + BUG FIXES

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Dec 11 18:41:47 2011 UTC (14 years, 11 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +8 -1 lines
Add BUILD_DEPENDS on some TeX components so that NEWS.pdf is successfully
built.  Fix PLIST.  Bump PKGREVISION.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Nov 20 04:57:03 2011 UTC (15 years ago) by markd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +254 -158 lines
Update R to 2.14.0

changes to many to list - see NEWS file in distribution for details.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu May 6 07:33:40 2010 UTC (16 years, 6 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +8 -1 lines
Changes 2.11.0:
* Packages must have been installed under R >= 2.10.0, as the
  current help system is the only one now supported.
* A port to 64-bit Windows is now available as well as binary package
  repositiories: see the 'R Administration and Installation Manual'.
* Argument matching for primitive functions is now done in the same way
  as for interpreted functions except for the deliberate exceptions
	call switch .C .Fortran .Call .External
  all of which use positional matching for their first argument,
  and also some internal-use-only primitives.
* The default device for command-line R at the console on Mac OS X
  is now quartz() and not X11().

New features
* The 'open' modes for connections are now interpreted more consistently.
* R CMD INSTALL now uses the internal untar() in package utils.
* help(try.all.packages = TRUE) is much faster.
* R CMD check has a new option '--timings' to record per-example timings
  in file <pkg>.Rcheck/<pkg>-Ex.timings.
* The TRE library has been updated to version 0.8.0 (minor bugfixes).
More...

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Dec 11 18:53:40 2009 UTC (16 years, 11 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +252 -7857 lines
Changes 2.10.0:
* Package help is now converted from Rd by the R-based converters
  that were first introduced in 2.9.0.
* HTML help is now generated dynamically using an HTTP server
  running in the R process and listening on the loopback interface.
* polygon(), pdf() and postscript() now have a parameter
  'fillOddEven' (default FALSE), which controls the mode used for
  polygon fills of self-intersecting shapes.
* New debugonce() function; further,
  getOption("deparse.max.lines") is now observed when debugging.
* plot() methods for "stepfun" and hence "ecdf" no longer plot
  points by default for n >= 1000.
* [g]sub(*, perl=TRUE) now also supports '\E' in order to *end*
  \U and \L case changes, thanks to a patch from Bill Dunlap.
* factor(), `levels<-`(), etc, now ensure that the resulting factor
  levels are unique (as was always the implied intention).  Factors
  with duplicated levels are still constructible by low-level means,
  but are now declared illegal.
* New print() (S3) method for class "function", also used for
  auto-printing.  Further, .Primitive functions now print and
  auto-print identically.
* The print() and toLatex() methods for class "sessionInfo" now
  show the locale in a nicer format and have arguments to
  suppress locale information.
* In addition to previously only round(), there are other 'Math'
  group (S3) methods for 'difftime', such as floor(), signif(), abs(), etc.
* For completeness, old.packages() and available.packages() allow
  'type' to be specified (you could always specify 'available'
  or 'contriburl').
* More...

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jun 14 18:05:41 2009 UTC (17 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -547 lines
Remove @dirrm entries from PLISTs

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Aug 31 12:37:27 2008 UTC (18 years, 2 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, cube-native-xorg-base, cube-native-xorg
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +51 -9 lines
Update to R 2.7.2

NEW FEATURES

    o   sprintf() returns elements of the result in UTF-8 when the
        format or any character input has a corresponding element
        declared as UTF-8.  Similarly for paste(), elements of the
        result are in UTF-8 when any input to that element is declared
        as UTF-8.

    o   axis() has new arguments 'col.ticks' and 'lwd.ticks' to allow
        the colour and line width of ticks to be set separately from
        that of the line (e.g. to set one or the other to transparent
        or zero width).

    o   legend() has a new argument 'box.col' to set the colour of the
        enclosing box.

    o   legend() gains a 'xpd' argument to make it easier to place a
        legend in the margins or outer margins.

    o   stripchart() now passes '...' to title() (as well as to
        plot.default() and axis()). (Wish of PR#12202)

    o   help.search() has new argument 'searchEngine' to go
        directly to the search form: this is needed by users of
        Firefox 3 to workaround a bug in interpreting the search
        results pages.

+ BUG FIXES

2.7.1 NEW FEATURES

    o   tools::texi2dvi() has a new argument 'texinputs' to allow the
        TeX and bibtex input paths to be specified (even on MiKTeX).

    o   dev.copy2pdf() gains an 'out.type' argument to allow it to be
        used with cairo_pdf() or quartz(type = "pdf").

    o   poly() has additional checks against user error (as in PR#11243).

    o   The Mac OS quartz() device draws contiguous lines much faster.

    o   A field containing just a sign is no longer regarded as numeric
        (it was on all platforms in 2.7.0, but not on most in earlier
        versions of R).  Similarly, '.' is now always non-numeric.

    o   CITATION files are now read in Latin-1: quite a few were
        failing if used in a multibyte locale such as UTF-8.

    o   The DESCRIPTION file of a package can specify an 'OS_type' field
        as either 'unix' or 'windows' to confine installation to that
        OS type.

    o   HoltWinters() now uses optimize() rather than optim for
        one-parameter problems which should be more reliable (PR#11469).

    o   axis() now respects the setting of par("xpd") when clipping.

    o   The 'factor' method of format() now preserves names, dims and
        dimnames in the same way as for character and numeric inputs.
        (PR#11512)

    o   read.DIF(*, transpose=TRUE) now allows to correctly read DIF files
        produced by some versions of Excel.

DEPRECATED & DEFUNCT

    o   The use of unserialize() on character strings is deprecated:
        that was a format used in R < 2.4.0.

    o   The use of embedded nuls in character strings is deprecated:
        They will no longer be allowed in R 2.8.0.


UTILITIES

    o   R CMD check checks for possible check directories in the
        sources -- in mid-2008 there were about 20 examples on CRAN.

    o   R CMD build tries harder to clean up the inst/doc directory
        from the remnants of earlier builds.

        It also removes any directories with extension .Rcheck, and
        files .DS_Store and ._* (created by tar on Mac OS X under some
        circumstances: it now sets environment variables to ask for
        such files not to be created by that tar.)


+ BUG FIXES

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Apr 26 02:39:27 2008 UTC (18 years, 6 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +111 -37 lines
Update to 2.7.0

SIGNIFICANT USER-VISIBLE CHANGES

    o   The default graphics device in non-interactive use is now
        pdf() rather than postscript().  [PDF viewers are now
        more widely available than PostScript viewers.]

        The default width and height for pdf() and bitmap() have been
        changed to 7 (inches) to match the screen devices.

    o   Most users of the X11() device will see a new device that has
        different fonts, anti-aliasing of lines and fonts and
        supports semi-transparent colours.

    o   Considerable efforts have been made to make the default output
        from graphics devices as similar as possible (and in
        particular close to that from postscript/pdf).  Many devices
        were misinterpreting 'pointsize' in some way, for example as
        being in device units (pixels) rather than in points.

    o   Packages which include graphics devices need to be re-installed
        for this version of R, with recently updated versions.

+ New features and bug fixes.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Mar 15 22:16:41 2008 UTC (18 years, 8 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +31 -6 lines
Update to R 2.6.2.

Changes are basically bugfixes.

pkgsrc changes:
  Don't bother patching configure.ac - it was only part of the changes
being made to configure so don't pretend you could use it to regerate
configure.
  Use -fPIC rather than -fpic for NetBSD powerpc.  Should fix PR 38032.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Nov 3 20:14:39 2007 UTC (19 years ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +286 -57 lines
Update R to version 2.6.0

Many new features, changes and bug fixes. See lib/R/doc/NEWS for details.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Mar 20 11:00:58 2007 UTC (19 years, 8 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -2 lines
Fix configure's handling of libblas when compiling with f2c and therefore
remove conditional PLIST entry no longer required. Bump PKGREVISION.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Mar 18 13:13:02 2007 UTC (19 years, 8 months ago) by markd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
Building with f2c effects what libs get installed. Adjust PLIST.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Mar 14 11:50:33 2007 UTC (19 years, 8 months ago) by markd
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +8992 -0 lines
Update R to version 2.4.1.

pkgsrc changes: no longer automatically generate the PLIST.
     use (de)install templates for handling updating the index files
     when adding/removing R packages.

Changes 2.4.1
This is a maintenance release and fixes a number of mostly minor bugs.

Changes 2.4.0
This release has many new features. One important aspect is that S4
classes now have their own internal type, and S4 method dispatch has
been completely revised to using cached generic functions, giving
substantial performance improvements. As a consequence, all packages
depending on "methods" need to be reinstalled.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Nov 1 00:12:00 2001 UTC (25 years ago) by zuntum
Branches: MAIN
CVS tags: pkgviews-base, pkgviews, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1, pkgsrc-2005Q4-base, pkgsrc-2005Q4, pkgsrc-2005Q3-base, pkgsrc-2005Q3, pkgsrc-2005Q2-base, pkgsrc-2005Q2, pkgsrc-2005Q1-base, pkgsrc-2005Q1, pkgsrc-2004Q4-base, pkgsrc-2004Q4, pkgsrc-2004Q3-base, pkgsrc-2004Q3, pkgsrc-2004Q2-base, pkgsrc-2004Q2, pkgsrc-2004Q1-base, pkgsrc-2004Q1, pkgsrc-2003Q4-base, pkgsrc-2003Q4, netbsd-1-6-RELEASE-base, netbsd-1-6-1-base, netbsd-1-6-1, netbsd-1-6, netbsd-1-5-PATCH003, buildlink2-base, buildlink2
Move pkg/ files into package's toplevel directory

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>