I am running the R CMD check --as-cran option to check a package which I am writing before the submission to CRAN. The tests on MAC and Linux seems to be ok. However, checking the package on Windows returns me an ERROR (below). I already tried to close possible cluster left open by the packages parallel and doParallel. This error only happen when I use the flag --as-cran. If I run the check without it, the process run without errors.
Running examples in 'package1-Ex.R' failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: find_genes_qtls_around_markers
> ### Title: Search genes and QTLs around candidate regions
> ### Aliases: find_genes_qtls_around_markers
>
> ### ** Examples
>
> data(QTLmarkers)
> data(gffQTLs)
> out.qtls<-find_genes_qtls_around_markers(db_file=gffQTLs,
+ marker_file=QTLmarkers, method = "qtl",
+ marker = "snp", interval = 500000, nThreads = 2)
You are using the method: qtl with snp
Starting QTL searching using 5e+05 bp as interval
Preparing output file for QTL annotation
>
>
>
> base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv")
> base::cat("find_genes_qtls_around_markers", base::get(".format_ptime", pos = 'CheckExEnv')(get(".dptime", pos = "CheckExEnv")), "\n", file=base::get(".ExTimings", pos = 'CheckExEnv'), append=TRUE, sep="\t")
> cleanEx()
Error: connections left open:
<-DESKTOP-9GJBKTN:11235 (sockconn)
<-DESKTOP-9GJBKTN:11235 (sockconn)
Execution halted```