diff --git a/DESCRIPTION b/DESCRIPTION index a9f7f16ae..168bc00ea 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Type: Package Package: teal.data Title: Data Model for 'teal' Applications -Version: 0.6.0.9027 -Date: 2025-01-24 +Version: 0.7.0 +Date: 2025-01-27 Authors@R: c( person("Dawid", "Kaledkowski", , "dawid.kaledkowski@roche.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-9533-457X")), @@ -29,7 +29,7 @@ URL: https://insightsengineering.github.io/teal.data/, BugReports: https://github.com/insightsengineering/teal.data/issues Depends: R (>= 4.0), - teal.code (>= 0.5.0.9015) + teal.code (>= 0.6.0) Imports: checkmate (>= 2.1.0), lifecycle (>= 0.2.0), @@ -47,8 +47,6 @@ VignetteBuilder: rmarkdown RdMacros: lifecycle -Remotes: - insightsengineering/teal.code Config/Needs/verdepcheck: insightsengineering/teal.code, mllg/checkmate, r-lib/lifecycle, r-lib/rlang, yihui/knitr, rstudio/rmarkdown, r-lib/testthat, r-lib/withr diff --git a/NEWS.md b/NEWS.md index 95f4cf23b..99e93c378 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# teal.data 0.6.0.9027 +# teal.data 0.7.0 ### Breaking changes @@ -7,7 +7,6 @@ - Deprecate of `datanames(x) <- value`. Does nothing, replace with renaming the objects inside the environment. - All parameters and functions deprecated on 0.4.0 were removed. - ### Enhancements - `names()` function is introduced replacing `datanames`. diff --git a/R/deprecated.R b/R/deprecated.R index a7da1c2ab..43abb6421 100644 --- a/R/deprecated.R +++ b/R/deprecated.R @@ -20,7 +20,7 @@ #' @export datanames <- function(x) { lifecycle::deprecate_soft( - when = "0.6.1", + when = "0.7.0", what = "datanames()", with = "names()" ) @@ -31,7 +31,7 @@ datanames <- function(x) { #' @export `datanames<-` <- function(x, value) { lifecycle::deprecate_soft( - when = "0.6.1", + when = "0.7.0", what = "`datanames<-`()", details = "invalid to use `datanames()<-` or `names()<-` on an object of class `teal_data`. See ?names.teal_data" ) @@ -43,7 +43,7 @@ datanames <- function(x) { #' @keywords internal `names<-.teal_data` <- function(x, value) { lifecycle::deprecate_warn( - when = "0.6.1", + when = "0.7.0", what = "`names<-.teal_data`()", details = "invalid to use `datanames()<-` or `names()<-` on an object of class `teal_data`. See ?names.teal_data" ) diff --git a/R/teal_data-constructor.R b/R/teal_data-constructor.R index 8168bd457..25a705342 100644 --- a/R/teal_data-constructor.R +++ b/R/teal_data-constructor.R @@ -19,14 +19,14 @@ #' @details #' #' A `teal_data` is meant to be used for reproducibility purposes. The class inherits from -#' [`teal.data::qenv`] and we encourage to get familiar with \CRANpkg{teal.code} first. +#' [`teal.code::qenv`] and we encourage to get familiar with \CRANpkg{teal.code} first. #' `teal_data` has following characteristics: #' #' - It inherits from the environment and methods such as [`$`], [get()], [ls()], [as.list()], #' [parent.env()] work out of the box. #' - `teal_data` is a locked environment, and data modification is only possible through the -#' [teal.code::eval_code()] and [within.qenv()] functions. -#' - It stores metadata about the code used to create the data (see [get_code()]). +#' [teal.code::eval_code()] and [`within.qenv()`][teal.code::within.qenv()] functions. +#' - It stores metadata about the code used to create the data (see [`get_code()`][get_code,teal_data-method]). #' - It supports slicing (see [`teal.code::subset-qenv`]) #' - Is immutable which means that each code evaluation does not modify the original `teal_data` #' environment directly. @@ -34,7 +34,7 @@ #' #' @return A `teal_data` object. #' -#' @seealso [`teal.code::eval_code`], [get_code()], [join_keys()], [names.teal_data()] +#' @seealso [`teal.code::eval_code`], [`get_code()`][get_code,teal_data-method], [join_keys()], [names.teal_data()] #' #' @export #' diff --git a/R/teal_data-get_code.R b/R/teal_data-get_code.R index 52c237a71..8ebebd56f 100644 --- a/R/teal_data-get_code.R +++ b/R/teal_data-get_code.R @@ -112,7 +112,7 @@ setMethod("get_code", definition = function(object, deparse = TRUE, names = NULL, datanames = lifecycle::deprecated(), ...) { if (lifecycle::is_present(datanames)) { lifecycle::deprecate_warn( - when = "0.6.1", + when = "0.7.0", what = "teal.data::get_code(datanames)", with = "teal.code::get_code(names)", always = TRUE diff --git a/man/teal_data.Rd b/man/teal_data.Rd index a142c2b1e..a53804d60 100644 --- a/man/teal_data.Rd +++ b/man/teal_data.Rd @@ -35,14 +35,14 @@ Initializes a data for \code{teal} application. } \details{ A \code{teal_data} is meant to be used for reproducibility purposes. The class inherits from -\code{\link{qenv}} and we encourage to get familiar with \CRANpkg{teal.code} first. +\code{\link[teal.code:qenv]{teal.code::qenv}} and we encourage to get familiar with \CRANpkg{teal.code} first. \code{teal_data} has following characteristics: \itemize{ \item It inherits from the environment and methods such as \code{\link{$}}, \code{\link[=get]{get()}}, \code{\link[=ls]{ls()}}, \code{\link[=as.list]{as.list()}}, \code{\link[=parent.env]{parent.env()}} work out of the box. \item \code{teal_data} is a locked environment, and data modification is only possible through the -\code{\link[teal.code:eval_code]{teal.code::eval_code()}} and \code{\link[=within.qenv]{within.qenv()}} functions. -\item It stores metadata about the code used to create the data (see \code{\link[=get_code]{get_code()}}). +\code{\link[teal.code:eval_code]{teal.code::eval_code()}} and \code{\link[teal.code:eval_code]{within.qenv()}} functions. +\item It stores metadata about the code used to create the data (see \code{\link[=get_code,teal_data-method]{get_code()}}). \item It supports slicing (see \code{\link[teal.code:subset-qenv]{teal.code::subset-qenv}}) \item Is immutable which means that each code evaluation does not modify the original \code{teal_data} environment directly. @@ -73,5 +73,5 @@ join_keys(data)["b"] } \seealso{ -\code{\link[teal.code:eval_code]{teal.code::eval_code}}, \code{\link[=get_code]{get_code()}}, \code{\link[=join_keys]{join_keys()}}, \code{\link[=names.teal_data]{names.teal_data()}} +\code{\link[teal.code:eval_code]{teal.code::eval_code}}, \code{\link[=get_code,teal_data-method]{get_code()}}, \code{\link[=join_keys]{join_keys()}}, \code{\link[=names.teal_data]{names.teal_data()}} }