Skip to content

Commit 31131db

Browse files
committed
update
1 parent f4bfdbb commit 31131db

6 files changed

Lines changed: 2555 additions & 193 deletions

File tree

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ articles:
2626
Technical details on the statistical methods implemented in
2727
weightedsurv.
2828
contents:
29-
- weightedcox_methodology
29+
- articles/weightedcox_methodology
3030

3131
reference:
3232
- title: "Data Preparation"

dev/weightedsurv_devtools-helpers.R

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ cat(readLines("NAMESPACE"), sep = "\n")
7979
dir.create("vignettes/articles", recursive = TRUE, showWarnings = FALSE)
8080
usethis::use_build_ignore("vignettes/articles")
8181

82-
8382
pkgdown::check_pkgdown()
8483

85-
8684
# Build the full site (renders all vignettes and articles)
8785
pkgdown::build_site()
8886

@@ -91,12 +89,23 @@ pkgdown::build_home() # README → index.html
9189
pkgdown::build_reference() # Function reference pages
9290
pkgdown::build_articles() # All vignettes and articles
9391
pkgdown::build_article("weightedsurv_examples") # Just the main vignette
94-
pkgdown::build_article("weightedcox_methodology") # Just the methodology article
92+
pkgdown::build_article("articles/weightedcox_methodology") # Just the methodology article
9593

9694
# Preview locally
9795
pkgdown::preview_site()
9896

97+
# What files are in vignettes/articles/?
98+
list.files("vignettes/articles", recursive = TRUE)
99+
100+
# What does pkgdown detect as articles?
101+
pkg <- pkgdown::as_pkgdown()
102+
pkg$vignettes
99103

100104

105+
# Keys referenced in the document
106+
doc <- readLines("vignettes/articles/weightedcox_methodology.Rmd")
107+
regmatches(doc, gregexpr("@[A-Za-z0-9_]+", doc)) |> unlist() |> unique()
101108

109+
# Keys defined in the bib file
110+
grep("^@", readLines("vignettes/articles/weightedcox.bib"), value = TRUE)
102111

vignettes/articles/weightedcox_methodology.qmd renamed to vignettes/articles/weightedcox_methodology.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ output:
55
code_folding: hide
66
toc: true
77
toc_depth: 3
8-
bibliography: ../references.bib
8+
bibliography: ../weightedsurv_references.bib
99
vignette: >
1010
%\VignetteIndexEntry{Weighted Cox Model Estimation Methodology}
11-
%\VignetteEngine{quarto::html}
11+
%\VignetteEngine{knitr::rmarkdown}
1212
%\VignetteEncoding{UTF-8}
1313
---
1414

vignettes/references.bib

Lines changed: 0 additions & 186 deletions
This file was deleted.

vignettes/weightedsurv_examples.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Weighted Survival Analysis Examples"
33
output:
44
html_document:
55
code_folding: hide
6-
bibliography: references.bib
6+
bibliography: weightedsurv_references.bib
77
vignette: >
88
%\VignetteIndexEntry{Weighted Survival Analysis Examples}
99
%\VignetteEngine{knitr::rmarkdown}

0 commit comments

Comments
 (0)