I am very new to Rmarkdown, and I am having problems with setting up libraries that I will use later in my document.
My .Rmd file:
# Rmarkdown for tree
####
####
### load packages
```{r}
library(ctv)
install.views('Phylogenetics')
update.views('Phylogenetics')
library(ape)
library(adegenet)
library(phangorn)
```
The error message that I will get is
error in available.views(repos = repos) : trying to use CRAN without setting a mirror Calls:
<Anonymous> ... install.views -> .get_pkgs_from_ctv_or_repos -> available.views
How do I install packages successfully so that my downstream analyses will work?
Thanks!