Package check result: ERROR Check: examples, Result: ERROR Running examples in ‘tidysq-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: export_sq > ### Title: Export sq objects into other formats > ### Aliases: export_sq > > ### ** Examples > > # DNA and amino acid sequences can be exported to most packages > sq_ami <- sq(c("MVVGL", "LAVPP"), alphabet = "ami_bsc") > export_sq(sq_ami, "ape::AAbin") Error in export_sq.sq_ami_bsc(sq_ami, "ape::AAbin") : Assertion on '"ape"' failed: you need to install 'ape' package. Calls: export_sq ... export_sq.sq_ami_bsc -> assert_package_installed -> -> mstop Execution halted Check: tests, Result: ERROR Running ‘spelling.R’ [0s/0s] Running ‘testthat.R’ [4s/4s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(tidysq) Attaching package: 'tidysq' The following object is masked from 'package:base': paste > > test_check("tidysq") [ FAIL 8 | WARN 0 | SKIP 1 | PASS 584 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • warning handling on C++ side is poorly implemented (1): 'test-warnings.R:39:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-casting.R:49:3'): (code run outside of `test_that()`) ────────── Error in `loadNamespace(x)`: there is no package called 'Biostrings' Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-casting.R:48:1 2. │ └─base::withCallingHandlers(...) 3. └─base::loadNamespace(x) at test-casting.R:49:3 4. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 5. └─base (local) withOneRestart(expr, restarts[[1L]]) 6. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-find_motifs.R:169:3'): 'start' and 'end' columns have values between 1 and length(sequence) ── Error in `loadNamespace(x)`: there is no package called 'purrr' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-find_motifs.R:169:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-find_motifs.R:209:3'): index columns can be used to retrieve found subsequence from original sequence ── Error in `loadNamespace(x)`: there is no package called 'purrr' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-find_motifs.R:209:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-pkg-Biostrings.R:29:1'): (code run outside of `test_that()`) ─── Error in `loadNamespace(x)`: there is no package called 'Biostrings' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-pkg-Biostrings.R:29:1 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-pkg-ape.R:12:1'): (code run outside of `test_that()`) ────────── Error in `loadNamespace(x)`: there is no package called 'ape' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-pkg-ape.R:12:1 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-pkg-bioseq.R:15:1'): (code run outside of `test_that()`) ─────── Error in `loadNamespace(x)`: there is no package called 'bioseq' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-pkg-bioseq.R:15:1 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-pkg-seqinr.R:8:31'): (code run outside of `test_that()`) ─────── Error in `loadNamespace(x)`: there is no package called 'seqinr' Backtrace: ▆ 1. ├─base::lapply(str_dna, function(x) seqinr::as.SeqFastadna(seqinr::s2c(x))) at test-pkg-seqinr.R:8:1 2. │ └─tidysq (local) FUN(X[[i]], ...) 3. └─base::loadNamespace(x) at test-pkg-seqinr.R:8:31 4. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 5. └─base (local) withOneRestart(expr, restarts[[1L]]) 6. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-random_sq.R:31:3'): using sd argument of random_sq() doesn't generate negative-length sequences ── Error in `loadNamespace(x)`: there is no package called 'mockr' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-random_sq.R:31:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) [ FAIL 8 | WARN 0 | SKIP 1 | PASS 584 ] Error: Test failures Execution halted