Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-release activities (prepare for CRAN release) #176

Merged
merged 68 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
05f4deb
chore: update to roxygen2 7.3.1
averissimo Feb 7, 2024
7765c0b
examples ::: R/call_utils.R
averissimo Feb 7, 2024
5597d36
[skip actions] Roxygen Man Pages Auto Update
dependabot-preview[bot] Feb 7, 2024
2a826a6
examples ::: R/data_extract_filter_module.R
averissimo Feb 7, 2024
0e17987
examples ::: R/data_extract_module.R
averissimo Feb 7, 2024
c32ae42
examples ::: R/data_extract_select_module.R
averissimo Feb 7, 2024
ccfeee6
examples ::: R/data_extract_single_module.R
averissimo Feb 7, 2024
5cc3a76
examples ::: R/filter_spec.R
averissimo Feb 7, 2024
29acabf
examples ::: R/get_dplyr_call.R
averissimo Feb 7, 2024
7bbc7e8
examples ::: R/merge_datasets.R
averissimo Feb 7, 2024
84ec4c9
examples ::: R/resolve.R
averissimo Feb 7, 2024
015b726
keywords internal are last and have empty line after
averissimo Feb 7, 2024
de7c16c
Make sure all teal.* mentions are lower-cased and quoted
averissimo Feb 7, 2024
dd7e97d
update installation instructions
averissimo Feb 7, 2024
f433a4e
lint: correct long line
averissimo Feb 7, 2024
52eb3e5
[skip actions] Roxygen Man Pages Auto Update
dependabot-preview[bot] Feb 7, 2024
206c14e
remove dontrun sections on examples
averissimo Feb 7, 2024
c5e475e
no old Rd tags - partial
averissimo Feb 7, 2024
b4959ac
no old Rd tags - partial
averissimo Feb 7, 2024
ddd13ad
files 1-2/30: Title case, return params, full stop params/descr/detai…
averissimo Feb 7, 2024
697c23a
files 3-5/30: Title case, return params, full stop params/descr/detai…
averissimo Feb 7, 2024
5daa54d
files 6-9/30: Title case, return params, full stop params/descr/detai…
averissimo Feb 8, 2024
bcd8c70
files 10-18/30: Title case, return params, full stop params/descr/det…
averissimo Feb 8, 2024
d414a32
files 19-23/30: Title case, return params, full stop params/descr/det…
averissimo Feb 8, 2024
ce04c69
files 24-30/30: Title case, return params, full stop params/descr/det…
averissimo Feb 8, 2024
a97d7c1
idr: adds the CRAN Package Release Template
averissimo Feb 8, 2024
eedf61f
Remove prefixes from data calls rADRS, rADTTE, etc... (just like {tea…
averissimo Feb 8, 2024
e1ac439
removing pacakge:: call from example and fixing example.
kartikeyakirar Feb 9, 2024
34baa11
Removes `return` call if it is the last expression (#177)
averissimo Feb 9, 2024
54ee1a9
Merge branch 'main' into 178_pre-release-cleanup@main
averissimo Feb 9, 2024
373c613
remove release file as it was propagated to
averissimo Feb 9, 2024
df71ed5
Merge branch 'main' into 178_pre-release-cleanup@main
averissimo Feb 9, 2024
ba42e7b
removing internal functions' examples (#184)
kartikeyakirar Feb 12, 2024
aff0f35
revert export of resolve
averissimo Feb 12, 2024
eb66137
Merge branch 'main' into 178_pre-release-cleanup@main
averissimo Feb 12, 2024
39568f8
Reverting internal function's example (#187)
kartikeyakirar Feb 13, 2024
38e237c
restore `@examples` for resolve
averissimo Feb 13, 2024
31ae8b8
Merge branch 'main' into 178_pre-release-cleanup@main
averissimo Feb 13, 2024
cba2255
backticks on site and adds --as-cran to project settings
averissimo Feb 13, 2024
18727eb
Update README.md
averissimo Feb 13, 2024
a651500
adding cran badges and updated text (consistent with other packages)
kartikeyakirar Feb 13, 2024
3604ebc
Merge branch '178_pre-release-cleanup@main' of https://github.com/ins…
kartikeyakirar Feb 13, 2024
9edc428
revert to use pkg prefix for rAD** calls (see #142)
averissimo Feb 13, 2024
3ec9d7b
remove unused test functions
averissimo Feb 13, 2024
61fb099
Apply suggestions from @kartikeyakirar
averissimo Feb 13, 2024
6f14fbc
[skip actions] Roxygen Man Pages Auto Update
dependabot-preview[bot] Feb 13, 2024
0a348aa
adds `@doctype` to Queue
averissimo Feb 13, 2024
f20642a
Change Self to `self`
averissimo Feb 13, 2024
6accb86
Fixing vignettes (#183)
kartikeyakirar Feb 13, 2024
2b4ce50
Merge 6accb86356a37f16102bf33d80debc87c75de5b9 into f7ee2bc1f507e3dcd…
averissimo Feb 13, 2024
87e68a9
[skip actions] Restyle files
github-actions[bot] Feb 13, 2024
7a18606
docs: fix title of long function
averissimo Feb 14, 2024
b1c0bcd
Apply suggestions from code review
averissimo Feb 14, 2024
31908a3
[skip actions] Roxygen Man Pages Auto Update
dependabot-preview[bot] Feb 14, 2024
d54ed7f
change from comma to 'or' in param allowed types
averissimo Feb 14, 2024
5887a0b
adds tags and titles to functions
averissimo Feb 14, 2024
cfa88ff
shows title of function (described in common man page)
averissimo Feb 14, 2024
3dac547
Update R/utils.R
averissimo Feb 14, 2024
0e52645
correct return
averissimo Feb 14, 2024
ce1ab3d
Backtick teal on site descriptions
averissimo Feb 14, 2024
81e3375
docs: corrects problem with backticks starting on desc
averissimo Feb 14, 2024
4a1d42c
spelling: revert to 'reactive manner' instead of reactively
averissimo Feb 14, 2024
f2d64a4
Convert "# nolint" to specific rule exception (#178)
averissimo Feb 14, 2024
8296b88
minor changes. (#197)
kartikeyakirar Feb 14, 2024
2d43e8e
[skip actions] Roxygen Man Pages Auto Update
dependabot-preview[bot] Feb 14, 2024
cbb8f38
Apply suggestions from code review
averissimo Feb 14, 2024
ba56460
[skip actions] Roxygen Man Pages Auto Update
dependabot-preview[bot] Feb 14, 2024
0b7de57
Replace remainder noRd
averissimo Feb 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions R/Queue.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# Queue ====

#' @title R6 Class - A First-In-First-Out Abstract Data Type
averissimo marked this conversation as resolved.
Show resolved Hide resolved
#' R6 Class - A First-In-First-Out Abstract Data Type
#' @docType class
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' @description `r lifecycle::badge("experimental")`\cr
#' Abstract data type that stores and returns any number of elements.
#'
#' @details
#' A `Queue` object stores all elements in a single vector,
averissimo marked this conversation as resolved.
Show resolved Hide resolved
#' thus all data types can be stored, but silent coercion may occur.
#'
#' Elements are returned in the same order that they were added.
#'
#' @name Queue
#' @keywords internal
#'
Queue <- R6::R6Class( # nolint
Expand All @@ -19,9 +24,9 @@ Queue <- R6::R6Class( # nolint
#' @description
#' Adds element(s) to `Queue`.
#'
#' @param new_elements vector of elements to add
#' @param new_elements vector of elements to add.
#'
#' @return self invisibly
#' @return `self`, invisibly.
#'
push = function(new_elements) {
for (i in seq_along(new_elements)) {
Expand All @@ -34,16 +39,16 @@ Queue <- R6::R6Class( # nolint
#' @description
#' Returns all contents of the `Queue` object.
#'
#' @return single vector containing all `Queue` contents
#' @return Single vector containing all `Queue` contents.
#'
get = function() {
private$array
},
#' @description
#' Returns the first (oldest) element of the `Queue` and removes it.
#'
#' @return
#' vector of length 1 containing the first element of `Queue` or NULL if `Queue` is empty
#' @return vector of length 1 containing the first element of `Queue`
#' or `NULL` if `Queue` is empty.
#'
pop = function() {
returned_element <- self$get()[1L]
Expand All @@ -54,9 +59,9 @@ Queue <- R6::R6Class( # nolint
#' Removes the oldest occurrence of specified element(s) from `Queue`.
#' Relies on implicit type conversions of R identify elements to remove.
#'
#' @param elements vector of elements to remove from `Queue`
#' @param elements vector of elements to remove from `Queue`.
#'
#' @return self invisibly
#' @return `self`, invisibly.
#'
remove = function(elements) {
for (el in elements) {
Expand All @@ -68,7 +73,7 @@ Queue <- R6::R6Class( # nolint
#' @description
#' Removes all elements from `Queue`.
#'
#' @return self invisibly
#' @return `self`, invisibly.
#'
empty = function() {
private$array <- c()
Expand All @@ -77,17 +82,17 @@ Queue <- R6::R6Class( # nolint
#' @description
#' Returns the number of elements in `Queue`.
#'
#' @return integer of length 1
#' @return `integer(1)`.
#'
size = function() {
length(self$get())
},
#' @description
#' Prints this `Queue`.
#'
#' @param ... additional arguments to this method, ignored
#' @param ... Additional arguments to this method, ignored.
#'
#' @return invisibly self
#' @return `self`, invisibly.
print = function(...) {
cat(
sprintf(
Expand Down
12 changes: 8 additions & 4 deletions R/all_choices.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#' An S3 structure representing the selection of all
#' possible choices in a `filter_spec`, `select_spec` or `choices_selected` object.
#' Bare constructor for `all_choices` object
#'
#' @description `r lifecycle::badge("experimental")`
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' @return `all_choices` object
#' An S3 structure representing the selection of all possible choices in a
#' `filter_spec`, `select_spec` or `choices_selected` object
#'
#' @return `all_choices` object.
#'
#' @examples
#' # Both structures are semantically identical
Expand All @@ -22,6 +25,7 @@
#' choices_selected(choices = letters, selected = letters)
#' choices_selected(choices = letters, selected = all_choices())
#' @export
#'
all_choices <- function() {
structure(list(), class = "all_choices")
}
Loading
Loading