mirror of
https://github.com/Polarolouis/anova-phylogenetique-projet-msv.git
synced 2026-06-17 10:15:25 +02:00
🐛Fixing issue with package installation
This commit is contained in:
parent
71b844d5f5
commit
1950793e18
1 changed files with 6 additions and 2 deletions
|
|
@ -54,12 +54,16 @@
|
|||
@
|
||||
|
||||
<<'libraries', include=FALSE>>=
|
||||
necessary_packages <- c("phytools", "here")
|
||||
install.packages(necessary_packages)
|
||||
necessary_packages <- c("phytools", "phylotools", "here")
|
||||
if (any(!(necessary_packages %in% installed.packages()))) {
|
||||
install.packages(necessary_packages)
|
||||
}
|
||||
|
||||
require(phytools)
|
||||
require(phylotools)
|
||||
require(here)
|
||||
|
||||
|
||||
source(here("R","utils.R"))
|
||||
@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue