Installing the DANL Tools
February 1, 2024
tidyverse
PackageMac
<-
.Windows
<-
.o or Esc overviews lecture slides
You can also click the menu button at the top-right corner, and go to a specific slide.
Ctrl + Shift + F to search.
Posit Cloud is a cloud version of RStudio, and it has a free version.
Posit Cloud is a good option for those who could not install tidyverse
package on a laptop.
Regarding the website building and management, Posit Cloud users should follow the instruction in Classwork 2.
Regarding local data files, Posit Cloud users needs to upload them on a RStudio cloud project.
Quarto and GitHub-based Discussion Boards use markdown as its underlying document syntax.
Let’s do Classwork 3.
---
.
When we knit the document, Quarto sends the .qmd
file to jupyter/knitr, which executes all of the code chunks and creates a new markdown (.md
) document which includes the code and its output.
The markdown file (*.md
) generated by jupyter/knitr is then processed by pandoc, which is responsible for creating the output file.
- SOME_TEXT
in “.md” is equivalent to <ul><li> SOME_TEXT </li>
in ”.html”To create an HTML document from Quarto, we specify the html
output format in the YAML metadata of our document.
format: html
is set.In RStudio, we can create a new Quarto file from the menu, File -> New File -> Quarto Document.
Open an empty Quarto file.
USERNAME.github.io.Rporj
if it is on.
USERNAME.github.io.Rporj
at the top-right corner.danl-200-quarto.qmd
from Brightspace, and open it from RStudio.danl-200-quarto.qmd
.
USERNAME.github.io.Rporj
.
Project: (None)
at the top-right corner.USERNAME.github.io.Rporj
._quarto.yml
configuration file.
Cascading Style Sheets (CSS) is used to format the layout of a webpage (color, font, text size, background, display, etc.).
HTML will format the architecture of the house.
CSS will be the carpet and walls to decorate the house.
JavaScript (*.js
) adds interactive elements in the house, such as opening doors and lighting.
We are not front-end web developers.
The Render button (command/Ctrl + shift + K) renders a single Quarto file.
quarto render
from Terminal renders all Quarto files in your local working directory:
We should use quarto render
when we have changes in _quarto.yml
.
Make changes only from your local laptop.
theme
specifies the Bootstrap theme to use for the page (themes are drawn from the Bootswatch theme library).
default
, bootstrap
, cerulean
, cosmo
, darkly
, flatly
, journal
, lumen
, paper
, readable
, sandstone
, simplex
, spacelab
, united
, and yeti
.highlight-style
specifies the code highlighting style.
default
, tango
, pygments
, kate
, monochrome
, espresso
, zenburn
, haddock
, breezedark
, and textmate
.index.qmd
sets a page about you.
jolla
trestles
solana
marquee
broadside
navbar
in _quarto.yml
menu