Skip to content

Commit 31f7055

Browse files
committed
fix documentation mistakes for CRAN submission
add @return everywhere, remove \donttest{}, minor fixes
1 parent 40df86c commit 31f7055

17 files changed

+34
-30
lines changed

CRAN-SUBMISSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Version: 0.1.0
2-
Date: 2024-02-20 10:48:12 UTC
3-
SHA: df33272590580c7236c7f8357b53cf2e2794833a
2+
Date: 2024-02-20 15:36:22 UTC
3+
SHA: 40df86c9c02e76044b2499df231d4ddc43ce4940

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Authors@R:
1616
role = c("ctb"),
1717
comment = c(ORCID = "0000-0002-6302-9252")))
1818
Maintainer: Björn S. Siepe <bjoernsiepe@gmail.com>
19-
Description: Fit, compare, and visualize Bayesian graphical vector autoregressive (GVAR) network models using Stan. These models are commonly used in psychology to represent temporal and contemporaneous relationships between multiple variables in intensive longitudinal data. Fitted models can be compared with a test based on matrix norm differences of posterior point estimates to quantify the differences between two estimated networks. See also Siepe, Kloft & Heck (2024) <doi:10.31234/osf.io/uwfjc>.
19+
Description: Fit, compare, and visualize Bayesian graphical vector autoregressive (GVAR) network models using 'Stan'. These models are commonly used in psychology to represent temporal and contemporaneous relationships between multiple variables in intensive longitudinal data. Fitted models can be compared with a test based on matrix norm differences of posterior point estimates to quantify the differences between two estimated networks. See also Siepe, Kloft & Heck (2024) <doi:10.31234/osf.io/uwfjc>.
2020
License: GPL-3
2121
Encoding: UTF-8
2222
LazyData: true

R/centrality.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ get_centrality <- function(fitobj,
118118
#' plot, distribution of the centrality measures is visualized.
119119
#'
120120
#' @examples
121-
#' \dontrun{
121+
#' \donttest{
122122
#' data(fit_data)
123123
#' obj <- get_centrality(fit_data[[1]])
124124
#' plot_centrality(obj,

R/check_eigen.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
#' [stan_fit_convert()).
1414
#' @param verbose Logical. If TRUE, a verbal summary of the results is printed.
1515
#' Default is TRUE.
16+
#' @examples
17+
#' data(fit_data)
18+
#' fitobj <- fit_data[[1]]
19+
#' result <- check_eigen(fitobj)
20+
#'
1621
#' @return A list containing the eigenvalues and a verbal summary of the
1722
#' results.
1823
#' @export

R/compare_gvar.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' distance between two models based on their point estimates and compares
77
#' them using reference distributions created from their posterior
88
#' distributions. Returns the p-value for the comparison based on a decision
9-
#' rule specified by the user. Details are available in Siepe, Kloft & Heck (2023)
9+
#' rule specified by the user. Details are available in Siepe, Kloft & Heck (2024)
1010
#' <doi:10.31234/osf.io/uwfjc>.
1111
#'
1212
#' @param fit_a Fitted model object for Model A. This can be a tsnet_fit object

R/plot_compare_gvar.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#' corresponding models (mod_a and mod_b). The empirical distances between the
2525
#' networks are indicated by red vertical lines.
2626
#'
27+
#' @return A ggplot object representing the density plots of the posterior
28+
#' uncertainty distributions for distances and the empirical distance for two GVAR models.
29+
#'
2730
#' @import ggplot2
2831
#' @importFrom ggokabeito scale_fill_okabe_ito palette_okabe_ito
2932
#' @importFrom cowplot plot_grid get_legend

R/posterior_plot.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
#' are shown. Lagged variables are displayed along the vertical line of the
1717
#' grid, and non-lagged variables along the horizontal line of the grids.
1818
#'
19+
#' @return A ggplot object representing the posterior distributions of the parameters of the temporal
20+
#' or the contemporaneous networks of a GVAR model.
21+
#'
1922
#' @import ggplot2
2023
#' @importFrom ggdist stat_pointinterval stat_slab
2124
#' @importFrom tidyr separate_wider_delim pivot_longer

R/posterior_samples.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ prepare_samples_plot <- function(fitobj,
196196
#' @importFrom rstan extract
197197
#' @importFrom posterior as_draws_matrix
198198
#' @examples
199-
#' \dontrun{
199+
#' \donttest{
200200
#' data(ts_data)
201201
#' example_data <- ts_data[1:100,1:3]
202202
#' fit <- stan_gvar(data = example_data,

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
0 errors | 0 warnings | 1 note
44

5-
* This is a new release. Fixed previous URL mistake.
5+
* This is a new release. Fixed previous documentation mistakes.

man/check_eigen.Rd

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

0 commit comments

Comments
 (0)