R/PackageMaintenance.R

Defines functions .createManualAndVignettes

# @file PackageMaintenance
#
# Copyright 2014 Observational Health Data Sciences and Informatics
#
# This file is part of Cyclops
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


.createManualAndVignettes <- function(){
    if (.Platform$OS.type == "unix") {
        system("rm extras/Cyclops.pdf")
        system("R CMD Rd2pdf ./ --output=extras/Cyclops.pdf")
    } else {
        shell("rm extras/Cyclops.pdf")
        shell("R CMD Rd2pdf ./ --output=extras/Cyclops.pdf")
    }

    #No vignettes yet
    #require(rmarkdown)
    #render("vignettes/SingleStudies.Rmd", pdf_document(latex_engine = "pdflatex",toc = TRUE,number_sections = TRUE))
}

Try the Cyclops package in your browser

Any scripts or data that you put into this service are public.

Cyclops documentation built on Aug. 10, 2022, 5:08 p.m.