forked from mtgingrass/dynamicTabsRmarkdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
51 lines (39 loc) · 1.7 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
title: "Dynamic tabs for BIOL8700"
author: "Anthony Davidson, Emily Stringer and Mark Gingrass (original content)"
date: "`r Sys.Date()`"
output:
bookdown::html_document2:
theme: journal
highlight: tango
df_print: paged
toc: yes
toc_depth: '3'
keep_md: TRUE
---
```{r}
library(DT)
library(tidyverse)
ged.min <- read.csv("data/random_ged_resample.csv") %>%
mutate(site = factor(site))
# levels(ged.min$site)
# The function library() will show every package and its version installed in our computer
# However it is too much information
# We can create a vector with the name of the packages to check later if a package is in it
my_packages <- library()$results[,1]
head(my_packages)
# Again we could check if a library is loaded
"dplyr" %in% tolower((.packages()))
# We could list if a library is loaded
tolower((.packages()))
```
```{r child = "dynamicTabs-mpd.Rmd"}
```
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Ctrl+Shift+Enter*.
```{r}
plot(cars)
```
Add a new chunk by clicking the *Insert Chunk* button on the toolbar or by pressing *Ctrl+Alt+I*.
When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the *Preview* button or press *Ctrl+Shift+K* to preview the HTML file).
The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike *Knit*, *Preview* does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.