\newpage

Introduction

This R package does something useful... for sure...

# needed so that the as.data.frame part of the vignette
# does not need a restart of the session everytime the
# vignette is built
rm(list = ls())
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Installing from GitHub with devtools

Let's get started by installing the package straight from \textcolor{blue}{GitHub} and then loading it. For this you will need to have devtools installed. We are planning to add secuTrialR to CRAN but we are not there yet. If you are working on Windows and would like to install with devtools you will likely need to install \textcolor{blue}{Rtools}.

\vspace{5pt}

# install
devtools::install_github("CTU-Basel/pkgTemplateR")

Loading the package

# load
library(pkgTemplateR)
# show pkgTemplateR version
packageVersion("pkgTemplateR")

Printing the contents of a text file

path <- system.file("exdata", "file.txt",
                    package = "pkgTemplateR")
print_file_content(file_path = path)

\newpage

sessionInfo()


CTU-Basel/pkgTemplateR documentation built on Aug. 4, 2020, 2:17 a.m.