title: "Lab 0" output: htmldocument: default pdfdocument: default ---
Deven Patel
For all questions, include the R commands/functions that you used to find your answer (show R chunk). Answers without supporting code will not receive credit. Write full sentences to describe your findings.
In this lab, you will write some simple R Markdown to ensure that you can compile R Markdown documents into PDF files. Assignments in this course will be submitted in the form of compiled PDF documents so it is important that you have the tools installed to do this.
R packages can be installed with the install.packages()
function.
If you haven't already, install the tidyverse
package using the install.packages() function.
You will also need to install the rmarkdown package
in order to knit R Markdown files into HTML or PDF files.
NOTE: DO NOT put the install.packages()
code in this document. You should only ever call
install.packages() in the console in RStudio.
The code chunk below loads the tidyverse package with
the library() function.
{r} ## This is a comment. It does not get executed by R. library(tidyverse)
Using the same format as above, write a code chunk that loads the
datasets package.
{r} library(datasets)
You can obtain the version of R that you are using with the following code.
{r} print(R.version.string)
You can find the version of RStudio from the "About RStudio" menu option.
Using an unordered list (i.e. bulleted list), write the version of R that you are using and the version of RStudio that you are using.
R version: 4.3.2 (2023-10-31 ucrt)
RStudio version: 2023.12.0
Write the same information using an ordered / numbered list below.
4.3.2 (2023-10-31 ucrt)
2023.12.0
Links can be indicated using square brackets and parentheses. So this is a link to the Google homepage.
Modify the text of this sentence to link some of the text to the UT Austin main web page.
Bold face can be indicated in Markdown using two asterisks. So this is bold face.
Modify this sentence to make some of the words in the sentence bold face.
Italics can be indicated using a single asterisk.
Modify this sentence to make some of the words in the sentence italic face.
Render your file! You can
Render your file into HTML
Once it renders in HTML, click on Open in Browser at
the top left of the window pops out.
Print your HTML file into PDF from your browser.
Upload your PDF file to Gradescope.
Any issues? Ask your classmates or a TA!