##############################################################################
##############################################################################
###
### Running command:
###
###   /Library/Frameworks/R.framework/Resources/bin/R CMD check --test-dir=longtests --no-stop-on-test-error --no-codoc --no-examples --no-manual --ignore-vignettes --check-subdirs=no ChromSCape_1.10.0.tar.gz
###
##############################################################################
##############################################################################


* using log directory ‘/Users/biocbuild/bbs-3.17-bioc-longtests/meat/ChromSCape.Rcheck’
* using R version 4.3.1 (2023-06-16)
* using platform: x86_64-apple-darwin20 (64-bit)
* R was compiled by
    Apple clang version 14.0.3 (clang-1403.0.22.14.1)
    GNU Fortran (GCC) 12.2.0
* running under: macOS Monterey 12.6.4
* using session charset: UTF-8
* using options ‘--no-codoc --no-examples --no-manual --ignore-vignettes --no-stop-on-test-error’
* checking for file ‘ChromSCape/DESCRIPTION’ ... OK
* this is package ‘ChromSCape’ version ‘1.10.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 ... NOTE
Found the following hidden files and directories:
  .BBSoptions
These were most likely included in error. See section ‘Package
structure’ in the ‘Writing R Extensions’ manual.
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘ChromSCape’ can be installed ... OK
* used C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
* used SDK: ‘MacOSX11.3.sdk’
* 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 R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking startup messages can be suppressed ... OK
* checking dependencies in R code ... WARNING
'library' or 'require' call not declared from: ‘dplyr’
'library' or 'require' call to ‘dplyr’ in package code.
  Please use :: or requireNamespace() instead.
  See section 'Suggested packages' in the 'Writing R Extensions' manual.
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
bams_to_matrix_indexes: no visible binding for global variable
  ‘files_dir_list’
enrich_TF_ChEA3_genes: no visible binding for global variable
  ‘CheA3_TF_nTargets’
filter_correlated_cell_scExp: no visible binding for global variable
  ‘run_tsne’
generate_analysis: no visible global function definition for ‘head’
generate_analysis: no visible binding for global variable ‘k’
generate_analysis: no visible binding for global variable
  ‘clusterConsensus’
get_most_variable_cyto: no visible binding for global variable
  ‘cytoBand’
get_most_variable_cyto: no visible binding for global variable
  ‘Fri_cyto’
num_cell_after_QC_filt_scExp: no visible binding for global variable
  ‘sample_id’
num_cell_after_QC_filt_scExp: no visible binding for global variable
  ‘total_counts’
num_cell_scExp: no visible binding for global variable ‘sample_id’
num_cell_scExp: no visible binding for global variable ‘total_counts’
plot_correlation_PCA_scExp: no visible binding for global variable
  ‘Component’
plot_coverage_BigWig: no visible binding for global variable ‘molecule’
plot_coverage_BigWig: no visible binding for global variable
  ‘orientation’
plot_coverage_BigWig: no visible binding for global variable ‘Gene’
plot_gain_or_loss_barplots: no visible binding for global variable
  ‘Gain_or_Loss’
plot_gain_or_loss_barplots: no visible binding for global variable
  ‘ncells’
plot_gain_or_loss_barplots: no visible binding for global variable
  ‘cytoBand’
plot_most_contributing_features: no visible binding for global variable
  ‘genes’
plot_percent_active_feature_scExp: no visible binding for global
  variable ‘group’
plot_percent_active_feature_scExp: no visible binding for global
  variable ‘percent_active’
plot_pie_most_contributing_chr: no visible binding for global variable
  ‘absolute_value’
plot_reduced_dim_scExp: no visible binding for global variable ‘V1’
plot_reduced_dim_scExp: no visible binding for global variable ‘V2’
plot_reduced_dim_scExp: no visible binding for global variable
  ‘cluster’
plot_top_TF_scExp: no visible binding for global variable ‘TF’
rebin_helper: no visible binding for global variable ‘new_row’
rebin_helper: no visible binding for global variable ‘origin_value’
rebin_matrix: no visible binding for global variable ‘group’
subset_bam_call_peaks: no visible binding for global variable
  ‘merged_bam’
Undefined global functions or variables:
  CheA3_TF_nTargets Component Fri_cyto Gain_or_Loss Gene TF V1 V2
  absolute_value cluster clusterConsensus cytoBand files_dir_list genes
  group head k merged_bam molecule ncells new_row orientation
  origin_value percent_active run_tsne sample_id total_counts
Consider adding
  importFrom("utils", "head")
to your NAMESPACE file.
* checking Rd files ... NOTE
prepare_Rd: raw_counts_to_sparse_matrix.Rd:6-8: Dropping empty section \source
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... SKIPPED
* checking Rd \usage sections ... WARNING
Undocumented arguments in documentation object 'rebin_matrix'
  ‘rebin_function’

Functions with \usage entries need to have the appropriate \alias
entries, and all their arguments documented.
The \usage entries must correspond to syntactically valid R code.
See chapter ‘Writing R documentation files’ in the ‘Writing R
Extensions’ manual.
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking contents of ‘data’ directory ... OK
* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking compiled code ... OK
* checking files in ‘vignettes’ ... SKIPPED
* checking examples ... SKIPPED
* checking for unstated dependencies in ‘longtests’ ... OK
* checking tests in ‘longtests’ ...
  Running ‘testthat.R’
 ERROR
Running the tests in ‘longtests/testthat.R’ failed.
Last 13 lines of output:
  > library(ChromSCape)
  > 
  > test_check("ChromSCape")
  [1] "Running Batch Correction ..."
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 82 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_correlation_clustering.R:99:3'): Choosing clusters - Wrong inputs. ──
  `choose_cluster_scExp(scExp_cf.)` did not throw an error.
  ── Error ('test_diff_analysis_gene_set_enrichment.R:44:1'): (code run outside of `test_that()`) ──
  Error in `differential_analysis_scExp(scExp_cf, qval.th = 0.8, cdiff.th = 0.3)`: unused arguments (qval.th = 0.8, cdiff.th = 0.3)
  
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 82 ]
  Error: Test failures
  Execution halted
* DONE

Status: 1 ERROR, 2 WARNINGs, 3 NOTEs
See
  ‘/Users/biocbuild/bbs-3.17-bioc-longtests/meat/ChromSCape.Rcheck/00check.log’
for details.