From ad6a4e736c1afed13fa7998d4edaad2b83d9e84d Mon Sep 17 00:00:00 2001 From: Egill Fridgeirsson Date: Wed, 17 Aug 2022 17:26:57 +0200 Subject: [PATCH] Use styler instead of OHDSIRtools to style - add pdf of installing --- extras/PackageMaintenance.R | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/extras/PackageMaintenance.R b/extras/PackageMaintenance.R index c76ed7a..0b86eda 100644 --- a/extras/PackageMaintenance.R +++ b/extras/PackageMaintenance.R @@ -16,16 +16,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -# recreate the html index when new documentation -pkgdown::build_site() -OhdsiRTools::fixHadesLogo() - # Format and check code -OhdsiRTools::formatRFolder() +styler::style_pkg() OhdsiRTools::checkUsagePackage("DeepPatientLevelPrediction") OhdsiRTools::updateCopyrightYearFolder() devtools::spell_check() + # Create manual and vignettes unlink("extras/DeepPatientLevelPrediction.pdf") system("R CMD Rd2pdf ./ --output=extras/DeepPatientLevelPrediction.pdf") @@ -36,3 +33,12 @@ rmarkdown::render("vignettes/BuildingDeepModels.Rmd", toc = TRUE, toc_depth = 3, number_sections = TRUE)) + + +rmarkdown::render("vignettes/Installing.Rmd", + output_file = "../inst/doc/Installing.pdf", + rmarkdown::pdf_document(latex_engine = "pdflatex", + toc = TRUE, + toc_depth = 3, + number_sections = TRUE)) +