- using R version 4.5.1 (2025-06-13 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'assignPOP/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'assignPOP' version '1.3.0'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'assignPOP' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [4s] OK
- checking whether the package can be loaded with stated dependencies ... [4s] OK
- checking whether the package can be unloaded cleanly ... [4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s] OK
- checking whether the namespace can be unloaded cleanly ... [4s] OK
- checking loading without being on the library search path ... [4s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [20s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... [6s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [7s] ERROR
Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(assignPOP)
>
> test_check("assignPOP")
Correct assignment rates were estimated!!
A total of 3 assignment tests for 3 pops.
Results were also saved in a 'Rate_of_3_tests_3_pops.txt' file in the directory.
Correct assignment rates were estimated!!
A total of 3 assignment tests for 3 pops.
Results were also saved in a 'Rate_of_3_tests_3_pops.txt' file in the directory.
Converting data format...
Encoding genetic data...
################ assignPOP v1.3.0 ################
A GENEPOP format file was successfully imported!
Imported Data Info: 24 obs. by 5 loci (diploid)
Number of pop: 3
Number of inds (pop.1): 8
Number of inds (pop.2): 10
Number of inds (pop.3): 6
DataMatrix: 24 rows by 20 columns, with 19 allele variables
Data output in a list comprising the following three elements:
YOUR_LIST_NAME$DataMatrix
YOUR_LIST_NAME$SampleID
YOUR_LIST_NAME$LocusName
Parallele computing is off. Analyzing data using 1 CPU core...
Monte-Carlo cross-validation done!!
3 assignment tests completed!!
Parallele computing is off. Analyzing data using 1 CPU core...
Monte-Carlo cross-validation done!!
3 assignment tests completed!!
Parallele computing is off. Analyzing data using 1 CPU core...
Monte-Carlo cross-validation done!!
6 assignment tests completed!!
Parallele computing is off. Analyzing data using 1 CPU core...
Monte-Carlo cross-validation done!!
12 assignment tests completed!!
Parallele computing is off. Analyzing data using 1 CPU core...
Monte-Carlo cross-validation done!!
12 assignment tests completed!!
Parallele computing is off. Analyzing data using 1 CPU core...
Monte-Carlo cross-validation done!!
3 assignment tests completed!!
Converting data format...
Encoding genetic data...
################ assignPOP v1.3.0 ################
A GENEPOP format file was successfully imported!
Imported Data Info: 24 obs. by 5 loci (diploid)
Number of pop: 3
Number of inds (pop.1): 8
Number of inds (pop.2): 10
Number of inds (pop.3): 6
DataMatrix: 24 rows by 20 columns, with 19 allele variables
Data output in a list comprising the following three elements:
YOUR_LIST_NAME$DataMatrix
YOUR_LIST_NAME$SampleID
YOUR_LIST_NAME$LocusName
Converting data format...
Encoding genetic data...
################ assignPOP v1.3.0 ################
A GENEPOP format file was successfully imported!
Imported Data Info: 24 obs. by 5 loci (diploid)
Number of pop: 1
Number of inds (pop.1): 24
DataMatrix: 24 rows by 20 columns, with 19 allele variables
Data output in a list comprising the following three elements:
YOUR_LIST_NAME$DataMatrix
YOUR_LIST_NAME$SampleID
YOUR_LIST_NAME$LocusName
Known and unknown datasets have identical features.
Performing PCA on genetic data for dimensionality reduction...
Assignment test is done! See results in your designated folder.
Predicted populations and probabilities are saved in [AssignmentResult.txt]
Converting data format...
Encoding genetic data...
################ assignPOP v1.3.0 ################
A GENEPOP format file was successfully imported!
Imported Data Info: 24 obs. by 5 loci (diploid)
Number of pop: 3
Number of inds (pop.1): 8
Number of inds (pop.2): 10
Number of inds (pop.3): 6
DataMatrix: 24 rows by 20 columns, with 19 allele variables
Data output in a list comprising the following three elements:
YOUR_LIST_NAME$DataMatrix
YOUR_LIST_NAME$SampleID
YOUR_LIST_NAME$LocusName
Parallele computing is off. Analyzing data using 1 CPU core...
K-fold cross-validation done!!
3 assignment tests completed!! Import a .CSV file.
4 additional variables detected.
Checking variable data type...
ng1(integer) ng2(integer) ng3(integer) ng4(integer)
New data set created!!
It has 24 observations by 24 variables
including 4 loci(19 alleles) plus 4 additional variables(4 columns)
Parallele computing is off. Analyzing data using 1 CPU core...
K-fold cross-validation done!!
3 assignment tests completed!!
Convert population label to factor.
ng1(integer) ng2(integer) ng3(integer) ng4(integer)
Parallele computing is off. Analyzing data using 1 CPU core...
K-fold cross-validation done!!
3 assignment tests completed!!
Results were saved in a 'High_Fst_Locus_Freq.txt' file in the directory.[ FAIL 3 | WARN 0 | SKIP 0 | PASS 39 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_accuracy.R:8:3'): Calculate assignment accuracy for Monte-Carlo results ──
`plot` has type 'object', not 'list'.
── Failure ('test_accuracy.R:18:3'): Calculate assignment accuracy for K-fold results ──
`plot` has type 'object', not 'list'.
── Failure ('test_membership.R:5:3'): Plot membership probability ──────────────
`plot` has type 'object', not 'list'.
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 39 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 1 ERROR