Quarto Live (webR) and ojs
: Penguins
Quarto
Test
Pay attention to how the path is specified:
/_extensions/r-wasm/live/_knitr.qmd
Choose a species of penguin, we’ll work with that species for the rest of the tutorial.
ojs
: PenguinsTest
Chi Zhang
November 11, 2024
Pay attention to how the path is specified:
/_extensions/r-wasm/live/_knitr.qmd
Choose a species of penguin, we’ll work with that species for the rest of the tutorial.
viewof input_species = Inputs.select(["Adelie", "Chinstrap", "Gentoo"])
penguin_info = {
const description = {
Adelie: md`The **Adelie** is the most widespread penguin species, and, along with the emperor penguin, is the most southerly distributed of all penguins.`,
Chinstrap: md`The **chinstrap** penguin's name stems from the narrow black band under its head, which makes it appear as if it were wearing a black helmet, making it easy to identify.`,
Gentoo: md`The **gentoo** penguin calls in a variety of ways, but the most frequently heard is a loud trumpeting, which the bird emits with its head thrown back.`,
}
return description[input_species]
}