Skip to content

Commit

Permalink
general srr
Browse files Browse the repository at this point in the history
srr standards for the General category have been completed.
  • Loading branch information
giovsaraceno committed Mar 12, 2024
1 parent 91483f6 commit 6eaaa5c
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 26 deletions.
24 changes: 12 additions & 12 deletions .Rhistory
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
x <- matrix(rnorm(100), ncol = 2)
y <- rep(c(1,2), each=25)
result <- kb.test(x, method = "subsampling", b = 0.5)
expect_s4_class(result, "kb.test")
expect_equal(result@method, "Kernel-based quadratic distance Normality test")
expect_equal(class(result@h$h_sel), "numeric")
result <- kb.test(x, y, method = "subsampling", b = 0.5)
expect_s4_class(result, "kb.test")
expect_equal(class(result@h$h_sel), "numeric")
})
#' Test for pk.test
#'
#'
#' @srrstats {G5.2,G5.2a,G5.2b} all the error and warning messages are tested
#' @srrstats {G5.5} random seed
Expand Down Expand Up @@ -510,3 +498,15 @@ x <- pkgcheck()
summary(x)
x
roxygen2::roxygenise()
roxygen2::roxygenise()
library(pkgcheck)
x <- pkgcheck()
x <- pkgcheck()
summary(x)
x
library(autotest)
b <- autotest_package()
library(srr)
srr_stats_pre_submit()
srr_report()
roxygen2::roxygenise()
2 changes: 1 addition & 1 deletion .Rproj.user/F4975BFA/pcs/files-pane.pper
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"ascending": true
}
],
"path": "~/GitHub/QuadratiK-package/R"
"path": "~/GitHub/QuadratiK-package"
}
2 changes: 1 addition & 1 deletion .Rproj.user/F4975BFA/pcs/source-pane.pper
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"activeTab": 5
"activeTab": 17
}
2 changes: 1 addition & 1 deletion .Rproj.user/F4975BFA/saved_source_markers

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .Rproj.user/shared/notebooks/paths
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ C:/Users/sarac/Documents/GitHub/QuadratiK-package/R/pkbd_functions.R="1BEA4C49"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/R/srr-stats-standards.R="EB260381"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/R/utility.R="F7DAB755"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/R/wireless.R="5FF8D491"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/README.Rmd="DD3767BE"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/_pkgdown.yml="5FD21EDB"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/codecov.yml="C78935A5"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/codemeta.json="35775251"
Expand All @@ -36,4 +35,5 @@ C:/Users/sarac/Documents/GitHub/QuadratiK-package/tests/testthat/test-validation
C:/Users/sarac/Documents/GitHub/QuadratiK-package/vignettes/TwoSample_test.Rmd="77787FE7"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/vignettes/kSample_test.Rmd="61D887F6"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/vignettes/uniformity.Rmd="89CAEE2E"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/vignettes/wireless_clustering.R="2E11C176"
C:/Users/sarac/Documents/GitHub/QuadratiK-package/vignettes/wireless_clustering.Rmd="FC40ACF9"
1 change: 1 addition & 0 deletions R/QuadratiK-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#' @srrstats {G1.0} Reference section reports the related literature
#' @srrstats {G1.1, G1.3} First implementation of provided methods
#' @srrstats {G1.2} see the 'CONTRIBUTING.md' for states of development
#' @srrstats {G1.5} vignettes reproduce results in the associated publication
#' @srrstats {G3.0} in all the codes floating point numbers are not compared
#' @srrstats {G5.7, G5.9} Verified through the simulation studies in the
#' indicated references.
Expand Down
2 changes: 1 addition & 1 deletion R/kb.test.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ setMethod("kb.test", signature(x = "ANY"),
if(any(is.na(y))){
stop("There are missing values in y!")
} else if(any(is.infinite(y) |is.nan(y))){
stop("There are undefined values in y, that is Nan, Inf, -Inf")
stop("There are undefined values in y, that is Nan, Inf")
}
}

Expand Down
4 changes: 3 additions & 1 deletion R/srr-stats-standards.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
#'
#'
#' @srrstatsNA {G1.6} there are no alternative implementations
#' @srrstatsNA {G2.4, G2.4a, G2.4c, G2.4d, G2.4e} other conversions are not
#' used.
#' @srrstatsNA {G2.5} there are no input of type factor which should be ordered
#' @srrstatsNA {G2.6} we check that each univariate input has the expected type
#' @srrstatsNA {G2.9} there are no conversions needed
#' @srrstatsNA {G2.10} there is no extraction
#' @srrstatsNA {G2.11,G2.12} We consider only data.frame with numeric variables
#' @srrstatsNA {G2.14c,G2.14c} we just report errors in case of missing data
#' @srrstatsNA {G2.14b,G2.14c} we just report errors in case of missing data
#' @srrstatsNA {G3.1,G3.1a} methods are not based on covariance computation
#' @srrstatsNA {G4.0} no outputs are written in local files
#' @srrstatsNA {G5.0} the functions are tested with simple simulated data sets
Expand Down
Binary file modified src/QuadratiK.dll
Binary file not shown.
Binary file removed src/RcppExports.o
Binary file not shown.
Binary file removed src/kernel_function.o
Binary file not shown.
3 changes: 2 additions & 1 deletion tests/testthat/test-dpkb.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
#'
#'
#'
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with fixed seed
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with
#' fixed seed
#' @srrstats {G5.2,G5.2a,G5.2b} all the error and warning messages are tested
#' @srrstats {G5.4,G5.4a} correctness tested on simple cases
#' @srrstats {G5.8, G5.8a,G5.8b,G5.8c} edge conditions
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-kb.test.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
#'
#'
#'
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with fixed seed
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with
#' fixed seed
#' @srrstats {G5.2,G5.2a,G5.2b} all the error and warning messages are tested
#' @srrstats {G5.4,G5.4a} correctness tested on simple cases
#' @srrstats {G5.8, G5.8a,G5.8b,G5.8c} edge conditions
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-pk.test.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#'
#'
#'
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with fixed seed
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with
#' fixed seed
#' @srrstats {G5.2,G5.2a,G5.2b} all the error and warning messages are tested
#' @srrstats {G5.4,G5.4a} correctness tested on simple cases
#' @srrstats {G5.8, G5.8a,G5.8b,G5.8c} edge conditions
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-pkbc.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#'
#' Clustering on the Sphere
#'
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with fixed seed
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with
#' fixed seed
#' @srrstats {G5.2,G5.2a,G5.2b} all the error and warning messages are tested
#' @srrstats {G5.4,G5.4a} correctness tested on simple cases
#' @srrstats {G5.8, G5.8a,G5.8b,G5.8c} edge conditions
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-rpkb.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#'
#'
#'
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with fixed seed
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with
#' fixed seed
#' @srrstats {G5.2,G5.2a,G5.2b} all the error and warning messages are tested
#'
#' @noRd
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-select_h.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#'
#'
#'
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with fixed seed
#' @srrstats {G5.1, G5.5} data sets are generated using simple functions with
#' fixed seed
#' @srrstats {G5.2,G5.2a,G5.2b} all the error and warning messages are tested
#' @srrstats {G5.8, G5.8a,G5.8b,G5.8c} edge conditions
#'
Expand Down
3 changes: 2 additions & 1 deletion vignettes/wireless_clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# #' srr tags
# #'
# #'
# #' @srrstats {G1.5} application to the wireless data set in the associated paper
# #' @srrstats {G1.5} application to the wireless data set in the
# #' associated paper

## -----------------------------------------------------------------------------
library(QuadratiK)
Expand Down
3 changes: 2 additions & 1 deletion vignettes/wireless_clustering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ vignette: >
#' srr tags
#'
#'
#' @srrstats {G1.5} application to the wireless data set in the associated paper
#' @srrstats {G1.5} application to the wireless data set in the
#' associated paper
```
We consider the Wireless Indoor Localization Data Set, publicly available in the UCI Machine Learning Repository’s website. This data set is used to study the performance of different indoor localization algorithms. It is available within the ``QuadratiK`` package as ``wireless``.
```{r}
Expand Down

0 comments on commit 6eaaa5c

Please sign in to comment.