|
73 | 73 | #'
|
74 | 74 | #' @examples
|
75 | 75 | #'
|
76 |
| -#' message("Use the following example after having installed cmdstanr with install.packages(\"cmdstanr\", repos = c(\"https://stan-dev.r-universe.dev/\", getOption(\"repos\")))") |
| 76 | +#' print("cmdstanr is needed to run this example.") |
| 77 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 78 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
77 | 79 | #'
|
78 | 80 | #' \donttest{
|
79 | 81 | #' if (instantiate::stan_cmdstan_exists()) {
|
@@ -601,7 +603,9 @@ sccomp_estimate.data.frame <- function(.data,
|
601 | 603 | #'
|
602 | 604 | #' @examples
|
603 | 605 | #'
|
604 |
| -#' message("Use the following example after having installed install.packages(\"cmdstanr\", repos = c(\"https://stan-dev.r-universe.dev/\", getOption(\"repos\")))") |
| 606 | +#' print("cmdstanr is needed to run this example.") |
| 607 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 608 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
605 | 609 | #'
|
606 | 610 | #' \donttest{
|
607 | 611 | #' if (instantiate::stan_cmdstan_exists()) {
|
@@ -1036,7 +1040,9 @@ sccomp_remove_outliers.sccomp_tbl = function(.estimate,
|
1036 | 1040 | #'
|
1037 | 1041 | #' @examples
|
1038 | 1042 | #'
|
1039 |
| -#' message("Use the following example after having installed install.packages(\"cmdstanr\", repos = c(\"https://stan-dev.r-universe.dev/\", getOption(\"repos\")))") |
| 1043 | +#' print("cmdstanr is needed to run this example.") |
| 1044 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 1045 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
1040 | 1046 | #'
|
1041 | 1047 | #' \donttest{
|
1042 | 1048 | #' if (instantiate::stan_cmdstan_exists()) {
|
@@ -1223,7 +1229,9 @@ sccomp_test.sccomp_tbl = function(.data,
|
1223 | 1229 | #'
|
1224 | 1230 | #' @examples
|
1225 | 1231 | #'
|
1226 |
| -#' message("Use the following example after having installed install.packages(\"cmdstanr\", repos = c(\"https://stan-dev.r-universe.dev/\", getOption(\"repos\")))") |
| 1232 | +#' print("cmdstanr is needed to run this example.") |
| 1233 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 1234 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
1227 | 1235 | #'
|
1228 | 1236 | #' \donttest{
|
1229 | 1237 | #' if (instantiate::stan_cmdstan_exists() && .Platform$OS.type == "unix") {
|
@@ -1325,7 +1333,9 @@ sccomp_replicate.sccomp_tbl = function(fit,
|
1325 | 1333 | #'
|
1326 | 1334 | #' @examples
|
1327 | 1335 | #'
|
1328 |
| -#' message("Use the following example after having installed install.packages(\"cmdstanr\", repos = c(\"https://stan-dev.r-universe.dev/\", getOption(\"repos\")))") |
| 1336 | +#' print("cmdstanr is needed to run this example.") |
| 1337 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 1338 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
1329 | 1339 | #'
|
1330 | 1340 | #' \donttest{
|
1331 | 1341 | #' if (instantiate::stan_cmdstan_exists() && .Platform$OS.type == "unix") {
|
@@ -1468,6 +1478,11 @@ sccomp_predict.sccomp_tbl = function(fit,
|
1468 | 1478 | #'
|
1469 | 1479 | #' @export
|
1470 | 1480 | #'
|
| 1481 | +#' print("cmdstanr is needed to run this example.") |
| 1482 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 1483 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
| 1484 | +#' |
| 1485 | +#' |
1471 | 1486 | #' @examples
|
1472 | 1487 | #' \donttest{
|
1473 | 1488 | #' if (instantiate::stan_cmdstan_exists() && .Platform$OS.type == "unix") {
|
@@ -1568,7 +1583,9 @@ sccomp_calculate_residuals.sccomp_tbl = function(.data){
|
1568 | 1583 | #'
|
1569 | 1584 | #' @examples
|
1570 | 1585 | #'
|
1571 |
| -#' message("Use the following example after having installed cmdstanr with install.packages(\"cmdstanr\", repos = c(\"https://stan-dev.r-universe.dev/\", getOption(\"repos\")))") |
| 1586 | +#' print("cmdstanr is needed to run this example.") |
| 1587 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 1588 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
1572 | 1589 | #'
|
1573 | 1590 | #' \donttest{
|
1574 | 1591 | #' if (instantiate::stan_cmdstan_exists()) {
|
@@ -1702,7 +1719,9 @@ sccomp_remove_unwanted_variation.sccomp_tbl = function(.data,
|
1702 | 1719 | #'
|
1703 | 1720 | #' @examples
|
1704 | 1721 | #'
|
1705 |
| -#' message("Use the following example after having installed install.packages(\"cmdstanr\", repos = c(\"https://stan-dev.r-universe.dev/\", getOption(\"repos\")))") |
| 1722 | +#' print("cmdstanr is needed to run this example.") |
| 1723 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 1724 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
1706 | 1725 | #'
|
1707 | 1726 | #' \donttest{
|
1708 | 1727 | #' if (instantiate::stan_cmdstan_exists()) {
|
@@ -1859,6 +1878,8 @@ simulate_data.tbl = function(.data,
|
1859 | 1878 | #' @export
|
1860 | 1879 | #'
|
1861 | 1880 | #' @examples
|
| 1881 | +#' |
| 1882 | +#' print("cmdstanr is needed to run this example.") |
1862 | 1883 | #' # Note: Before running the example, ensure that the 'cmdstanr' package is installed:
|
1863 | 1884 | #' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos")))
|
1864 | 1885 | #'
|
@@ -1969,7 +1990,9 @@ sccomp_boxplot = function(
|
1969 | 1990 | #'
|
1970 | 1991 | #' @examples
|
1971 | 1992 | #'
|
1972 |
| -#' message("Use the following example after having installed install.packages(\"cmdstanr\", repos = c(\"https://stan-dev.r-universe.dev/\", getOption(\"repos\")))") |
| 1993 | +#' print("cmdstanr is needed to run this example.") |
| 1994 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 1995 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
1973 | 1996 | #'
|
1974 | 1997 | #' \donttest{
|
1975 | 1998 | #' if (instantiate::stan_cmdstan_exists()) {
|
@@ -2131,6 +2154,12 @@ clear_stan_model_cache <- function(cache_dir = sccomp_stan_models_cache_dir) {
|
2131 | 2154 | #' }
|
2132 | 2155 | #'
|
2133 | 2156 | #' @examples
|
| 2157 | +#' |
| 2158 | +#' print("cmdstanr is needed to run this example.") |
| 2159 | +#' # Note: Before running the example, ensure that the 'cmdstanr' package is installed: |
| 2160 | +#' # install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos"))) |
| 2161 | +#' |
| 2162 | +#' |
2134 | 2163 | #' \donttest{
|
2135 | 2164 | #' if (instantiate::stan_cmdstan_exists()) {
|
2136 | 2165 | #' # Load example data
|
|
0 commit comments