diff --git a/DESCRIPTION b/DESCRIPTION index f2b02d1..8156cc4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,17 +1,25 @@ Package: dotty Type: Package -Title: The Destructuring Dot Operator +Title: The Unpacking Dot Operator Version: 0.1.0 -Author: Kevin Ushey -Maintainer: Kevin Ushey -Description: Enables destructuring assignments in R, through the use of a - special `.` object. +Authors@R: c( + person( + "Kevin", "Ushey", + email = "kevinushey@gmail.com", + role = c("aut", "cre"), + comment = c(ORCID = "0000-0003-2880-7407") + ) + ) +Description: Provides a `.` object which can be used for unpacking + assignments. For example, `.[nr, nc] <- dim(mtcars)` could be used to + pull the number of rows and number of columns from `dim(mtcars)` into + individual variables `nr` and `nc` in a single step. License: MIT + file LICENSE Encoding: UTF-8 LazyData: true RoxygenNote: 7.3.2 Suggests: - codetools, - testthat (>= 3.0.0) + codetools, + testthat (>= 3.0.0) Config/testthat/edition: 3 URL: https://kevinushey.github.io/dotty/ diff --git a/tests/testthat.R b/tests/testthat.R index b1ae356..841e4ab 100644 --- a/tests/testthat.R +++ b/tests/testthat.R @@ -6,7 +6,9 @@ # * https://r-pkgs.org/tests.html # * https://testthat.r-lib.org/reference/test_package.html#special-files -library(testthat) -library(dotty) +if (requireNamespace("testthat", quietly = TRUE)) { + library(testthat) + library(dotty) -test_check("dotty") + test_check("dotty") +}