Running examples in 'smartsnp-Ex.R' failed
The error most likely occurred in:

> ### Name: smart_mva
> ### Title: Smart Multivariate Analyses (wrapper of PCA, PERMANOVA and
> ###   PERMDISP)
> ### Aliases: smart_mva
> 
> ### ** Examples
> 
> # Path to example genotype matrix "dataSNP"
> pathToGenoFile = system.file("extdata", "dataSNP", package = "smartsnp")
> 
> # Assign 50 samples to each of two groups and colors
> my_groups <- as.factor(c(rep("A", 50), rep("B", 50))); cols = c("red", "blue")
> 
> # Run PCA, PERMANOVA and PERMDISP
> mvaR <- smart_mva(snp_data = pathToGenoFile, sample_group = my_groups)
Checking argument options selected...
Argument options are correct...
Loading data...
Imported 10000 SNP by 100 sample genotype matrix
Time elapsed: 0h 0m 0s
Filtering data...
No samples projected after PCA computation
10000 SNPs included in PCA & PERMANOVA & PERMDISP computations
1 SNPs omitted from PCA computation
100 samples included in PCA & PERMANOVA & PERMDISP computations
0 samples ommitted from PERMANOVA & PERMDISP analyses
Completed data filtering
Time elapsed: 0h 0m 0s
Scanning for invariant SNPs...
Scan complete: no invariant SNPs found
Time elapsed: 0h 0m 0s
Checking for missing values...
6341 SNPs contain missing values
Removing SNPs with missing values...
Removal completed: 6341 SNPs removed
3659 SNPs remaining
Time elapsed: 0h 0m 0s
Scaling values by SNP...
Centering and scaling by drift dispersion...
Completed scaling using drift
Time elapsed: 0h 0m 0s
Computing singular value decomposition using RSpectra...
Completed singular value decomposition
Time elapsed: 0h 0m 1s
Extracting eigenvalues and eigenvectors...
Eigenvalues and eigenvectors extracted
Time elapsed: 0h 0m 1s
Completed PCA computation
Time elapsed: 0h 0m 1s
Performing PERMANOVA & PERMDISP testing...
Construct triangular matrix of sample by sample proximities in multidimensional space...
Completed construction of triangular matrix of sample by sample proximities
Time elapsed: 0h 0m 1s
Computing variance partioning by PERMANOVA: global test...
Error in vegan::adonis(formula = snp_eucli ~ group, permutations = permutation_n) : 
  'adonis' is defunct.
Use 'adonis2' instead.
See help("Defunct") and help("vegan-defunct").
Calls: smart_mva -> <Anonymous> -> .Defunct
Execution halted