diff --git a/.Rbuildignore b/.Rbuildignore index b33315d..79771dd 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -11,3 +11,5 @@ ^doc$ ^Meta$ ^\.github$ +^pkgdown$ +^Makefile$ diff --git a/.gitignore b/.gitignore index f12f0f4..61584f3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,9 @@ .Rhistory .RData .DS_Store -docs/.DS_Store inst/doc doc Meta /doc/ /Meta/ +/docs/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4936e0e --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +test: + Rscript -e "devtools::test()" + +check: + Rscript -e "devtools::check()" + +build_site: + Rscript -e "pkgdown::build_site()" + cp pkgdown/cheatsheet/survminer_cheatsheet.pdf docs/ + cp -r tools docs/tools \ No newline at end of file diff --git a/_pkgdown.yml b/_pkgdown.yml index 8cf8bdd..eb75794 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -1,10 +1,21 @@ -templates: - params: - bootswatch: lumen - ganalytics: UA-54921687-5 +url: https://rpkgs.datanovia.com/survminer/index.html + +template: + bootstrap: 5 + bootswatch: lumen + ganalytics: UA-54921687-5 + +development: + mode: "auto" + +copy: + - pkgdown/cheatsheet/survminer_cheatsheet.pdf + - tools + reference: - title: Fit survival curves - Contents: + desc: Fit survival curves and compute p-values as well as median survival times. + contents: - surv_group_by - surv_fit - surv_median @@ -48,13 +59,15 @@ reference: contents: - theme_survminer - add_ggsurvplot + - ggsurvplot_arguments + - BRCAOV.survInfo navbar: title: "survminer" left: - text: Cheatsheet - href: survminer_cheatsheet.pdf + href: https://rpkgs.datanovia.com/survminer/survminer_cheatsheet.pdf - text: Reference href: reference/index.html - text: Articles @@ -64,6 +77,7 @@ navbar: right: - icon: fa-github href: https://github.com/kassambara/survminer + text: GitHub diff --git a/pkgdown/cheatsheet/survminer_cheatsheet.pdf b/pkgdown/cheatsheet/survminer_cheatsheet.pdf new file mode 100644 index 0000000..2ea6deb Binary files /dev/null and b/pkgdown/cheatsheet/survminer_cheatsheet.pdf differ