mirror of
https://github.com/Polarolouis/anova-phylogenetique-projet-msv.git
synced 2026-06-17 18:25: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>>=
|
<<'libraries', include=FALSE>>=
|
||||||
necessary_packages <- c("phytools", "here")
|
necessary_packages <- c("phytools", "phylotools", "here")
|
||||||
|
if (any(!(necessary_packages %in% installed.packages()))) {
|
||||||
install.packages(necessary_packages)
|
install.packages(necessary_packages)
|
||||||
|
}
|
||||||
|
|
||||||
require(phytools)
|
require(phytools)
|
||||||
require(phylotools)
|
require(phylotools)
|
||||||
require(here)
|
require(here)
|
||||||
|
|
||||||
|
|
||||||
source(here("R","utils.R"))
|
source(here("R","utils.R"))
|
||||||
@
|
@
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue