THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

map() is formally deprecated; use mapping() instead

fixes #47
feature/c
Henrik Bengtsson 3 months ago
parent
commit
6dce1d35e5
  1. 2
      NEWS
  2. 10
      R/listenv.R
  3. 5
      man/mapping.Rd

2
NEWS

@ -13,6 +13,8 @@ NEW FEATURES:
DEPRECATED AND DEFUNCT:
* map() is formally deprecated; use mapping() instead.
* Dropped the defunct usage of listenv(length = n), meaning it no longer gives
an error but instead produces a listenv with an element named 'length'.

10
R/listenv.R

@ -159,11 +159,6 @@ print.listenv <- function(x, ...) {
#'
#' @return A named character vector
#'
#' @details
#' _Functions `map()` and `map<-()` have been renamed to `mapping()` and
#' `mapping<-()`. The former will soon become deprecated and eventually
#' defunct. Please update accordingly._
#'
#' @aliases mapping.listenv
#' @aliases map.listenv
#' @export
@ -175,7 +170,10 @@ mapping <- function(x, ...) {
#' @rdname mapping
#' @export
#' @keywords internal
map <- mapping
map <- function(x, ...) {
.Deprecated("mapping()", package = .packageName)
mapping(x)
}
`mapping<-` <- function(x, value) {
stop_if_not(is.character(value))

5
man/mapping.Rd

@ -20,9 +20,4 @@ A named character vector
\description{
Name map for elements of list environment
}
\details{
\emph{Functions \code{map()} and \verb{map<-()} have been renamed to \code{mapping()} and
\verb{mapping<-()}. The former will soon become deprecated and eventually
defunct. Please update accordingly.}
}
\keyword{internal}
Loading…
Cancel
Save