v1.1.12
Tong Zhou
2025-09-21
v1.1.12.Rmd
Overview
This release (v1.1.12) is primarily a stability and compliance update intended for CRAN submission.
Updates:
- Fix: Package startup message is now fully suppressible via
suppressPackageStartupMessages()
. - Fix: Resolved R CMD check NOTES/WARNINGs by refining imports and globals.
- Fix:
DATASET_SIMPLEBAR
now supports bothdata.frame
anddata.table
inputs. - Fix: Removed leftover development
print()
checkpoints in binary dual-factor coloring.
1. Suppressible Startup Message
The package startup message was refactored to use a single
packageStartupMessage()
call. This respects
suppressPackageStartupMessages(library(itol.toolkit))
and
aligns with CRAN policy.
Example
# Shown
library(itol.toolkit)
# Suppressed
suppressPackageStartupMessages(library(itol.toolkit))
2. R CMD check Cleanups
- Added precise
@importFrom
entries fordplyr
,stats
,data.table
, andmagrittr
(for%>%
). - Declared globals via
utils::globalVariables()
to silence NSE NOTES. - Replaced deprecated
arrange_
usage in internal utilities.
These changes reduce namespace collisions and eliminate visibility NOTES during checks.
3. DATASET_SIMPLEBAR: data.frame and data.table Support
create_unit(..., type = "DATASET_SIMPLEBAR")
now accepts
both data.frame
and data.table
inputs
seamlessly.
Minimal Example
library(itol.toolkit)
tree <- system.file("extdata","tree_of_itol_templates.tree",package = "itol.toolkit")
# data.frame
df <- data.frame(id = c("A","B","C"), v1 = 1:3, v2 = 4:6)
u_df <- create_unit(data = df, key = "SB_df", type = "DATASET_SIMPLEBAR", tree = tree)
# data.table
dt <- data.table::as.data.table(df)
u_dt <- create_unit(data = dt, key = "SB_dt", type = "DATASET_SIMPLEBAR", tree = tree)
4. Binary Dual-Factor Coloring: Cleanup
Removed temporary print()
checkpoints left from
development to keep console output clean. Functionality unchanged.