Skip to content

Commit

Permalink
Use styler instead of OHDSIRtools to style - add pdf of installing
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Aug 17, 2022
1 parent 0834e29 commit ad6a4e7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions extras/PackageMaintenance.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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))

0 comments on commit ad6a4e7

Please sign in to comment.