Skip to content

Commit 154a9ab

Browse files
committed
updated some text
1 parent 48375c2 commit 154a9ab

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Title: 'R6'-Based Flexible Framework for Permutation Tests
33
Version: 1.2.3
44
Authors@R:
55
person(given = "Yan", family = "Du", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0009-0009-1169-921X"))
6-
Description: Implements non-parametric tests from Higgins (2004, ISBN:0534387756), including one-sample, two-sample, k-sample, paired comparison, randomized complete block design, correlation and contingency table tests. Built with 'Rcpp' for efficiency and 'R6' for flexible, object-oriented design, the package provides a unified framework for performing or creating custom permutation tests.
6+
Description: Implements non-parametric tests from Higgins (2004, ISBN:0534387756), including tests for one sample, two samples, k samples, paired comparisons, blocked designs, trends, and association. Built with 'Rcpp' for efficiency and 'R6' for flexible, object-oriented design, the package provides a unified framework for performing or creating custom permutation tests.
77
BugReports: https://github.com/qddyy/LearnNonparam/issues
88
URL: https://github.com/qddyy/LearnNonparam, https://qddyy.github.io/LearnNonparam/
99
License: GPL (>= 2)
@@ -22,4 +22,4 @@ Suggests:
2222
Encoding: UTF-8
2323
LazyData: true
2424
Roxygen: list(markdown = TRUE)
25-
RoxygenNote: 7.3.1
25+
RoxygenNote: 7.3.2

R/pmt.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pmts <- function(
106106
#' @details The test statistic in `define_pmt` can be defined using either `R` or `Rcpp`, with the `statistic` parameter specified as:
107107
#'
108108
#' - `R`: a function returning a closure that returns a double.
109-
#' - `Rcpp`: a character string defining a captureless lambda (introduced in C++11) returning another lambda that may capture by value, accepts const arguments of the same type, and returns a double.
109+
#' - `Rcpp`: a character string defining a captureless lambda (introduced in C++11) returning another lambda that may capture by value, accepts parameters of the same type as const references, and returns a double.
110110
#'
111111
#' When using `Rcpp`, the parameters for different `inherit` are listed as follows. Note that the parameter names are illustrative and may be modified.
112112
#'
@@ -135,7 +135,7 @@ pmts <- function(
135135
#' statistic = "[](NumericVector x, NumericVector y) {
136136
#' R_len_t n_x = x.size();
137137
#' R_len_t n_y = y.size();
138-
#' return [n_x, n_y](const NumericVector x, const NumericVector y) -> double {
138+
#' return [n_x, n_y](const NumericVector& x, const NumericVector& y) -> double {
139139
#' return sum(x) / n_x - sum(y) / n_y;
140140
#' };
141141
#' }"

man/pmt.Rd

Lines changed: 6 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)