Skip to content

Commit

Permalink
Merge pull request #17 from bsaul/fix-cran-checks
Browse files Browse the repository at this point in the history
Fix cran checks
  • Loading branch information
bsaul committed May 6, 2024
2 parents bdd0061 + 12d0ba5 commit 05a137c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/smd.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' When using the SMD to evaluate the effectiveness of weighting in achieving
#' covariate balance, it is important to isolate the change in SMD before and
#' after weighting to the change in mean difference, so the denominator (covariance matrix)
#' must be held constant \doi{10.1002/sim.3207}{Stuart 2008}.
#' must be held constant (Stuart 2008, \doi{doi:10.1002/sim.3207}).
#' By default, the unweighted covariance matrix is used to compute SMD in both
#' the unweighted and weighted case. If the weights are not being used to adjust
#' for covariate imbalance (e.g. case weights), the \code{unwgt.var} argument
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@
buildInputs = [
pkgs.R
pkgs.pandoc
pkgs.rPackages.devtools
pkgs.qpdf
pkgs.texlive.combined.scheme-full
] ++ smdSuggests ++ smdImports ;
doCheck = true;
buildPhase = ''
${pkgs.R}/bin/Rscript -e 'devtools::document()'
${pkgs.R}/bin/R CMD build .
'';
# NOTE:
Expand Down
2 changes: 1 addition & 1 deletion man/smd.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 05a137c

Please sign in to comment.