term 0.4.0
Breaking changes
-
The following functions, deprecated since 0.1.0, are now defunct and error when called (#103).
-
is.term(), replaced byis_term(). -
is.incomplete_terms(), replaced byis_incomplete_terms(). -
is.inconsistent_terms(), replaced byis_inconsistent_terms(). -
parameters()and`parameters<-`(), replaced bypars()and`pars<-`(). -
set_parameters(), replaced byset_pars(). -
tdims(), replaced bytindex().
-
The
termsargument ofpars(), deprecated since 0.2.0, is now defunct (#106). Usepars_terms(as_term(x))in place ofpars(x, terms = TRUE)andpars(x)in place ofpars(x, terms = FALSE).
New features
-
set_pars()andsummary()gainterm_rcrdmethods (#90).
Minor improvements
vctrs (>= 0.4.0) is now the declared minimum, as
levels()is implemented for vctrs vectors and thelevels.term()andlevels.term_rcrd()workarounds are no longer required (#90).The purrr dependency is dropped (#103).
The
pars(scalar = NA)compatibility hack for nlist 0.1.0 and 0.1.1 is removed (#90).as_list()is imported from extras instead of being copied locally (#90).The
complete_terms()examples forterm_rcrdobjects now run (#90).
term 0.3.6
CRAN release: 2025-01-21
- Require R (>= 4.0).
- Fixed
chk_s3_class()reference in documentation that was causing CRAN NOTE.
term 0.3.5
CRAN release: 2022-09-29
- Require R (>= 3.5).
- Moved following from soft to warn deprecated
is.term()is.incomplete_terms()is.inconsistent_terms()parameters()parameters<-()set_parameters()tdims()
term 0.3.4
CRAN release: 2022-03-03
- Removed deprecated
default.stringsAsFactors()fromas.data.frame.term_rcrd
term 0.3.3
CRAN release: 2021-09-28
- Switched order of equality and condition expectations in internal tests.
term 0.3.0
CRAN release: 2020-09-25
Breaking changes
- Stop deprecated
termsargument tonpdims.term(). - Warn deprecated
termsargument topars.terms(). -
nterms()now returns total number of terms not just number of unique non-missing terms. -
is_inconsistent_term()now returns TRUE if includes missing or invalid terms.
Features
Major
- Added
term_rcrdclass to store vector as underlying data frame and implemented some functions.
Minor
- Added
-
unique(). -
summary(). -
anyDuplicated(). -
scalar_term()to test whether each element in a term vector is scalar. -
normalize_terms(). -
normalizeargument toas_term.character().
-
Bug Fixes
- Fix
as.term()so issues deprecation warning.
term 0.2.0
CRAN release: 2020-06-20
Breaking changes
-
is_complete_terms()now requires same number of duplicate copies. -
chk_term()andvld_term()argumentvalidatenow defaults to"complete"andclassvalue is soft-deprecated. - Soft deprecated
-
as.term()foras_term(). -
is.term()foris_term(). -
is.incomplete_terms()foris_incomplete_terms(). -
is.inconsistent_terms()foris_inconsistent_terms(). -
pars(x, terms = TRUE)forpars_terms(x). -
subset(select = )forsubset(pars = ). -
termsargument ofnpdims().
-
Features
- Redefined
termas avtcrclass with-
term()constructor which treats unnamed arguments as term values and named values as parameters with their associated dimensions. -
new_term()to create term vector from character vector without any check. -
vec_cast()to safely cast character.
-
- Added
pars(scalar = TRUE)andnpars(scalar = TRUE). - Added
pars_terms(). - Added
scalar_term()to test if each term element is scalar.
Internal
- Use extras from CRAN.
-
ndims()anddims()imported from universals and reexported. - New implementation for
repair_terms().
