Skip to contents

Report to console current setup status of restez.

Usage

restez_status(gb_check = FALSE)

Arguments

gb_check

Check whether last download was from latest GenBank release? Default FALSE.

Value

Status class

Details

Set gb_check=TRUE to see if your downloads are up-to-date.

Examples

library(restez)
fp <- tempdir()
restez_path_set(filepath = fp)
#> ... Creating '/tmp/RtmpHGLduS/restez'
#> ... Creating '/tmp/RtmpHGLduS/restez/downloads'
demo_db_create(n = 5)
restez_status()
#> Checking setup status at  ...
#> ────────────────────────────────────────────────────────────────────────────────
#> Restez path ...
#> ... Path '/tmp/RtmpHGLduS/restez'
#> ... Does path exist? 'Yes'
#> ────────────────────────────────────────────────────────────────────────────────
#> Download ...
#> ... Path '/tmp/RtmpHGLduS/restez/downloads'
#> ... Does path exist? 'Yes'
#> ... N. files 0
#> ... Total size 0
#> ... GenBank division selections ''
#> ... GenBank Release '0'
#> ... Last updated ''
#> ────────────────────────────────────────────────────────────────────────────────
#> Database ...
#> ... Path '/tmp/RtmpHGLduS/restez/sql_db'
#> ... Does path exist? 'Yes'
#> ... Total size 780K
#> ... Does the database have data? 'Yes'
#> ... Number of sequences 5
#> ... Min. sequence length '0'
#> ... Max. sequence length 'Inf'
#> ... Last_updated ''
db_delete(everything = TRUE)
# Errors:
# restez_status()