From 59d257502b223a836ea38bcdafba4adf2826aa41 Mon Sep 17 00:00:00 2001 From: "George G. Vega Yon" Date: Tue, 26 Nov 2024 12:31:32 -0700 Subject: [PATCH] Update 02-final.qmd --- exams/02-final.qmd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/exams/02-final.qmd b/exams/02-final.qmd index 893e03f..e705085 100644 --- a/exams/02-final.qmd +++ b/exams/02-final.qmd @@ -67,3 +67,28 @@ The R package (May 4th `r fa`): ## Grading The grade will be based on clear communication and coding. + +# Misc + +## Installing the package with the vignettes + +You can install this package from the source using the following +commands from the command line: + +``` bash +R CMD build . +R CMD INSTALL egpkg2024_1.0.tar.gz +``` + +The first command builds a tar.gz file that can be shared. This is what +you share when you submit to CRAN. The second command installs the +package in your computer. Notice that this approach builds the +vignettes, making them available to your R session. Recall you can +access vignettes using the `vignette` command like this: + +``` r +vignette(package="dplyr") +``` + +Which will list the vignettes available to the dplyr R package (learn +more typing `?vignette` in your R console).