Pharmaverse code (E2): an eligible left join can be written with
admiral::derive_vars_merged(), and a join step has a
Columns picker. Checked with unit tests, the mock-DOM tests,
real-browser tests and by hand in RStudio.
sv_compare() and the compare tab now refuse names that
clashed with the ones compare makes for itself. Before, they gave wrong
results with no error: a key called column,
old or new was overwritten in the changed
table; a column x.old or x.new beside a shared
column x could report changes between identical tables; and
a data column .sv_k1 beside a key of differing kinds could
hide a real change. The message says which column to rename. The check
ignores case, as duckdb does.not_compared field of the result. Before, it was left
out without a word.dplyr::select(<right>, <keys>, <ticked columns>)
replaces the bare right table, in both code styles and both pipes. Right
keys are always kept and are not listed; the columns a date rule uses
are always kept and shown ticked and locked.None is allowed.TRT01A, TRTSDT, SEX, or A, B, C + 4 more, or
no columns). Semi and anti joins ignore the list and have
no picker; a right table with steps of its own that change its columns
disables the button and says why.cols field on the join step (the schema is unchanged).
Opening such a workspace in an older sideview ignores cols
and brings in every column.admiral::derive_vars_merged()<left chain> %>% admiral::derive_vars_merged(dataset_add = <right>, by_vars = admiral::exprs(...), new_vars = admiral::exprs(...)),
with relationship = when Strict has one.
new_vars is left out when the join brings in every
column.combine_supp(), sideview writes it only when its
result (values, labels, row order and column order) equals the
dplyr code’s. Otherwise the join stays dplyr
and the step line says why: the join is not a left join, it has a date
rule, a table is an arrow or duckdb table, the right table has steps of
its own, the join check failed or saw only part of the right table, keys
repeat in the right table (derive_vars_merged() would
stop), a column is in both tables, or Strict’s
unmatched = "error" is set. A join whose check has not come
back yet stays dplyr and says nothing.derive_vars_merged(): yes or
derive_vars_merged(): no, <reason> in the pharmaverse
style. In the gadget or a module the step line says when
admiral 1.1.0 or later is not installed (the reply has an
R-only admiral_installed field; the widget cannot know).
admiral (1.1.0 or later) is in Suggests.admiral code where it had a dplyr join. The
result of the code is the same.Pharmaverse code (E1): a SUPP– merge can be written with
metatools::combine_supp(). Checked with unit tests,
real-browser tests (headless Chrome) and by hand in RStudio.
code_style = c("dplyr", "pharmaverse") on
sideview(), sideview_ui(),
sideview_widget() and sideviewServer();
save_sideview(code_style = NULL) keeps the widget’s style.
It is the starting style: an applied workspace state sets the style (a
state without one loads as "dplyr"). The pipeline bar has a
Code select to change it, and the style is saved in the
pipeline state.<parent chain> %>% metatools::combine_supp(<supp>).
The argument is <supp>_q when the code needs a prep
line (a dplyr::filter(RDOMAIN == ...), or
IDVAR blanks set to NA) or the SUPP table has
a step chain. A guard block comes before the pipeline. Every other step
stays dplyr.combine_supp() only when the merge
check finds its result equal to the dplyr code’s. Otherwise
the merge stays dplyr and the step line says why (for
example
dplyr: IDVARVAL "01" would not match AESEQ 1 in combine_supp()).
A merge that needs refreshing also stays dplyr, and so does
a merge whose SUPP card has steps of its own or whose parent has an
enabled step before or after the merge other than a filter, a sort or
another SUPP merge
(dplyr: ae has steps after the merge that combine_supp() cannot check):
the dplyr code sets the QNAM labels where the parent’s
chain ends, combine_supp() at the merge, so a later mutate
or rename could change them.IDVARVAL column, IDVAR values the merge does
not handle, a QNAM on two levels or repeated for a record, a
DOMAIN or key column that would not keep its type,
DOMAIN/RDOMAIN and key matching that differs,
a QNAM column the dplyr code would not make, factor
QNAM or QLABEL, and changed labels. This does
not prove that no other difference is possible, so run the merge check
again on a new data cut. Not every message gives the same advice (see
the CDISC article). combine_supp() also stops by itself on
some changes.combine_supp field,
{ok, reason, prep}, from the R checks:
sv_supp_check() for data frames, and the internal lazy
check that the gadget and module use for a lazy card (never ok:
combine_supp() needs data frames). The browser check
returns the same with installed: null, and only the gadget
and module server sets installed to TRUE or
FALSE. The Discrepancy merge panel and print()
of the check show combine_supp(): yes or
combine_supp(): no, <reason> in both styles.
metatools (0.3.0 or later) stays in Suggests.
In the gadget or a module, in the pharmaverse style, the step line of an
eligible merge says when it is not installed; the widget cannot
know.sideview_code_style (see CLAUDE.md).Derived cards: the rows behind a check count become a card of their own (D1), tables stack with a check (D2), and two cuts of a table compare by key (D3). Checked with real-browser tests (headless Chrome) and unit tests, and by hand in RStudio (dialog, Viewer pane, external browser).
unmatched), the rows a date rule dropped
(outside_window), and the SUPP rows with no parent row
(supp_orphans) or with an IDVARVAL that does
not convert (supp_bad_idvarval). The card is named for what
it holds (ae_unmatched_dm), sits near its first input, and
is built by R from the tables as loaded, so a duckdb or Arrow input
stays lazy. The same buttons appear in the list view as real buttons,
and the result is announced.sv_unmatched(x, y, by, rule, side, what) and
sv_supp_orphans(parent, supp, rdomain, what) return the
same rows from the console.kind: "derive")
and its generated R code rebuilds the rows with dplyr, so a
script reproduces the card. The step is part of workspace state.derive_request and
derive_forget, new message
sideview_derive_result, and a derive_offers
field on the join-check and SUPP-check replies (see CLAUDE.md). The
widget has no R: it shows no buttons, and a saved state’s derive steps
stay in the code (when both inputs are there) but the tables are not
shown, with a notice.Derived cards, second part (D2): stack tables. Checked with real-browser tests (headless Chrome) and unit tests; also checked by hand in RStudio (dialog, Viewer pane, external browser).
sv_stack_check(..., cast, rename) lines up the columns
of 2 to 8 tables and reports, per column, its type in each table, its
label, and what a stack would do: the same type, a cast to a common
type, a name that differs only by case offered as a rename, and a column
missing from some tables. Nothing changes until you pick a fix.
sv_stack(..., check) stacks the tables with the check’s
fixes: exactly the sum of the rows, a source column naming
each row’s table, labels kept, a value that cannot be cast becomes
NA (and the check counts those). sv_stack()
refuses a check made for other tables, or for data frames whose columns,
types or row count have changed since.wave1_stacked). The step is derive with
op = "stack"; its R code is
dplyr::bind_rows(), and the code R writes and the code the
browser writes are byte-equal (R builds the card itself with the same
plan). A duckdb or Arrow input stays lazy (one union_all,
never collected). The result is announced, and Open on a stack that
exists zooms to it. A saved state keeps the step; when it is opened, R
plans the stack again from the data as they are then.NA: a
date-time cast to text drops fractional seconds; a number cast to text
keeps 15 significant digits; an integer64 column that is
cast is read as a double first, so digits beyond 2^53 are lost.stack_check_request and new message
sideview_stack_check (see CLAUDE.md). The widget has no R:
no Stack tab; a saved stack step stays in the code but the table is not
shown, with a notice.AGE, Age) as one, so a lazy stack with
such a pair left apart is refused (tick Rename to merge them); the
generated code for a lazy date-time column cast to text names the time
zone of the session that made it; a number cast to text can differ
between in-memory (“1e+05”) and duckdb (“100000”) for very large or
small values; duckdb tables carry no labels (Arrow tables do); a saved
state with a stack of lazy date-time columns carries the zone rules
(about 20 KB per time column per input).Derived cards, third part (D3): compare two cuts of a table by key. Checked with real-browser tests (headless Chrome) and unit tests, and by hand in RStudio (dialog, Viewer pane, external browser).
sv_compare(old, new, by) matches the rows of two tables
on a key (1 to 20 columns) and counts the rows added (key only in
new), removed (key only in old), changed (key
in both, a value differs) and the same. It also lists the columns added,
removed or with a changed type, the changed values by column, and keys
that repeat. It prints a summary; nothing is modified. With no
by, two tables with the same CDISC tag use that domain’s
natural key; otherwise the key is suggested from the shared columns
(same name, similar values, no repeated value).<new>_added, <old>_removed and
<new>_changed (the changed rows carry the old and new
value side by side). The steps are derive steps with
op = "compare_added", "compare_removed" or
"compare_changed"; their R code is plain
dplyr, and the code R writes and the code the browser
writes are byte-equal. A duckdb or Arrow input stays lazy and is never
collected. The result is announced.compare_request and new message
sideview_compare (see CLAUDE.md). The widget has no R: no
Compare tab; a saved compare step stays in the code but the table is not
shown, with a notice.Accessible canvas: one switch that makes the canvas itself usable by keyboard and at low vision. Off by default; with it off the canvas is unchanged. Checked with automated WCAG tests (axe, switch on and off) and real-browser keyboard tests; a manual pass (Windows Magnifier at 200% and 400%, High Contrast, Edge, RStudio dialog and Viewer, Alt+Arrow card jumps) found no problems. The release number is decided at merge time.
sideview(), sideview_ui() and
sideviewUI() take access = FALSE, set for a
session by options(sideview.access = TRUE). The widget has
no access argument: use
sideview_widget(..., options = list(access = TRUE)), or the
same option, which sideview_widget() and
save_sideview() also follow. It sets the starting state
only: the ? dialog has an “Accessible canvas” switch beside
the shortcuts switch, and the browser remembers the choice
(localStorage key sideview.access), which wins
over R. Each canvas reads its state once when it starts, so switching
one of two canvases on a page leaves the other as it is until the next
load. The container carries data-sv-access and the class
sv-access while on. The choice is not part of workspace
state.user_sized: true (no schema bump) and keeps its
size when the state is opened with the switch on.? dialog.-, 0, Fit all and a restored view are all
clamped). Turning it on below 100% zooms to 100% around the focused
card. Text is at least 16 px, every control is at least 24 by 24 px on
screen, the focus ring is 3 px, and a high-contrast colour set (text
7:1, lines and ports 4.5:1) replaces the theme colours. Splines are 3 px
wide with one of six dash patterns (butt caps, so the gaps stay open)
and an arrowhead, so crossing joins can be told apart without colour;
suggested joins end in a hollow marker. Badges that used only colour
(CDISC, key-check state, discrepancies) carry text.forced-colors: active) and
prefers-contrast: more are followed even with the switch
off: system colours for splines, ports, borders and the focus ring,
stronger borders under more contrast..sideview-search-hint kbd) now use
the text colour (--sv-text) rather than the hint’s muted
colour, for contrast.?
and search dialogs) with no accepted rules, so target-size
passes there. The default (switch off) canvas keeps its
target-size exemption: its buttons are 24 px in CSS but the
fit zoom shrinks them on screen.sideview_card_moved per pause,
announced “AE moved.”), Alt+Arrows focus the nearest card, Enter goes to
the first header, PageUp/PageDown/Home/End scroll the table. On a column
header: Left/Right, Esc, C to start connecting (Enter
completes the join as a click does: one column_mapped, one
undoable step), Delete to remove a join (a menu when there are several),
J to jump to the joined column. These keys work with the
shortcuts switch off and never fire while typing. They are listed in the
? dialog while the switch is on.JUMP_MODS in
sv-access.js).Text-first accessibility: a list view that reads top to bottom, results printed as plain sentences, live announcements and an accessibility test suite. sideview 0.8.0 is checked with automated WCAG tests (axe) and real-browser keyboard tests; the NVDA script was run once in Edge with NVDA 2026.2 (all 15 tasks as written; the RStudio dialog and Viewer pane were not covered); not yet tested by blind users. See the new article “Using sideview with a screen reader” and the accessibility feedback issue template.
sv_add_card(), sv_replace_card(),
sv_remove_card()) updates only that table’s section of the
list view and is announced (“Table labs replaced.”). With no tables the
Tables section reads “No tables yet.” A table that falls back to its
preview now says so in its heading.sideview(), sideview_widget(),
save_sideview(), sideview_ui() and
sideviewUI() take view = "canvas" (default) or
"list", set for a session by
options(sideview.view = "list"). The container carries
data-sv-view and the widget options$view. A
saved workspace may now carry view.mode; an invalid value
is dropped.view = "list" starts in it. A saved workspace now
records the view (view.mode) and wins over the
view argument when it is opened.aria-rowcount (rows
plus the header), aria-colcount, and a row index on every
rendered row, so a screen reader says “row 2002 of 5001” while the table
shows only a window of it. The counts follow sort and filter.? list has a “Keyboard shortcuts” switch that turns
the single-key shortcuts off (WCAG 2.1.4). The choice is remembered in
the browser; if the browser blocks storage it holds for the session.
Ctrl+K and Ctrl+Enter always work.sideview.shortcuts (default
TRUE): FALSE starts the gadget, widget and
module with the shortcuts off.
sideview_widget(options = list(shortcuts = FALSE)) does the
same for one widget..sideview-announcer, role="status") that says
what happened: a finished join, SUPP or column check reads its first
sentence, a step added, removed, undone or redone reads “Join step
added. 3 steps.”, Copy and Insert read “Code copied.” / “Code
inserted.”, and a Copilot reply reads “Copilot replied, 4 lines of
code.” It works in the gadget, the widget and a module.role="alert"; the other toasts are spoken through the
announcer.test-a11y-browser.R): every canvas control has an
accessible name in the gadget, widget and module; Tab reaches the
toolbar before the drawer; axe-core (WCAG 2.2 A/AA) finds no violation
across the three modes, two themes and two sizes (the list view with
none; the canvas has one documented target-size exception);
and today’s single-key shortcut and typing rules are pinned (typing in
the AI bar never fires a shortcut).a11y CI job runs these tests with axe-core 4.10.3
pinned.sv_say_* in R,
say* on SideviewPipeline) for plain-text
output, with R and JS twins held equal by test-say.R.print() of a join check
(sv_join_diagnostics()) now reads as plain sentences: “Join
of patients and visits by patient_id is one to many.”, match counts with
percentages, sample unmatched keys, rows by join type, and each hint or
warning as its own sentence. The result also carries x_name
and y_name.print() of a SUPP merge check
(sv_supp_check()), a column profile
(sv_column_profile()), discrepancies
(sv_detect_discrepancies()) and suggested joins
(sv_suggest_mappings()) now reads as plain sentences, for
example “Merging suppae into ae adds 1 column: AETRTEM.” These results
have the classes sv_supp_check,
sv_column_profile, sv_discrepancies and
sv_mappings; they are still a list or data frame, and
as.data.frame() on the mappings gives the plain data frame.
The data the browser receives is unchanged.as.data.frame()
(mappings) or unclass() (discrepancies, checks, profiles)
for the raw object.sv_describe() writes a table sentence and one line
per column (label, kind, missing, distinct, ranges, top values) as plain
text. It reads lazy duckdb and Arrow tables through their summaries and
never collects them.SUPPAE,
SUPPDM or SUPPQUAL card gets a Merge
into QNAM, with
its QLABEL as the column label ("" when there
is none). The step writes tidyr + dplyr code with guards that stop when
the data no longer fits. Pressing the button again replaces the step,
and one undo takes it back. A SUPPQUAL with several
RDOMAINs gets one merge per parent on the canvas.RDOMAINs, a
QNAM that repeats for one record, a clash with a parent
column, a QNAM at two IDVAR levels,
IDVARVAL values that do not convert (counted apart from
orphans), the new columns and a 5-row preview. The step line in the
Pipeline tab carries a one-line summary.suppae), the
step reads “Merge needs refreshing” and Refresh takes
the plan that check found, as one undo step (Refresh itself runs no new
check).sv_supp_check() (new, exported) runs
the merge check on two data frames or cards.
sv_supp_check_json() and sv_supp_key_type()
are exported with it. sv_suggest_mappings() gains rows with
kind = "supp".supp_check_request
({id, parent, supp, plan?, rdomain?}) and the message
sideview_supp_check.IDVARVAL such as 1e999 (too large for a
number) is now counted as “does not convert”, not as an orphan, and no
longer stops the generated code on an Arrow int64 parent.QNAM is read as the text NA in
the gadget and the widget alike (the merged column is named
NA).USUBJID or
STUDYID is NA now receive their qualifiers, as
the check says they do."0.1"): such rows are orphans in the
check, and the generated Arrow code no longer rounds them onto the
parent.SUPPQUAL with three or more
RDOMAINs now offers a merge for every one, as in memory
(only the first two were seen before). The default RDOMAIN
is the first in byte order (AE before CM), the
same in any locale and on every backend.IDVARVAL is
ignored, as R does. A no-break space, BOM or ideographic space makes the
value “does not convert”, in the gadget and the widget alike (the widget
ignored them before).IDVARVAL past 1e308 “does not convert” in the
gadget and the widget alike. Before, R and the widget disagreed at the
very top of the range.QNAM and a QNAM of
"NA", the generated code now treats them as one name, as
the check does.IDVARVAL of a float32 key
(0.10000000149011612) matches in the lazy check as it does
in memory.BIGINT already was), so a key past 2^31 no longer reads as
“does not convert” on Arrow.USUBJID, IDVAR, IDVARVAL,
QNAM and QVAL.collect(head(x, 0)), so arrow queries
work.RDOMAIN, so a step loaded
with cdisc = FALSE, or after a tag changed, keeps its
domain.RELREC tables are still not merged or suggested.RDOMAINs are read from a lazy
SUPPQUAL.STUDYID,
USUBJID and <D>SEQ (adae to
ae by AESEQ).STUDYID + USUBJID,
with DM (SDTM, SEND) or ADSL (ADaM) as the
lookup table.VISITNUM to
SV, by the subject key and VISITNUM. Where a
table has no STUDYID, the subject key is
USUBJID alone, and the reason says so.sideview-spline-suggested-cdisc). Hovering one lights up
the group, and a click accepts all of it as one left_join
(one undo step). A partial key set is never offered, because it would
give a many-to-many join.Add AESEQ: ...), a many-to-many join with no rule (for
example two Findings tables), and a natural key that repeats
(STUDYID, USUBJID, AESEQ should identify one AE record, but 3 keys repeat).
The notes are worked out in R, so they appear in the gadget and in Shiny
modules; the widget has none.sv_cdisc_join_keys(cards) (new,
exported) returns the suggested key sets for a list of cards.sv_suggest_mappings() gains the
columns group and kind (both NA
for heuristic rows) and a cdisc argument
("auto", FALSE or a named vector, as in
sv_codebook()). Rule rows come first with confidence 1 and
are never dropped by min_confidence. Between two tagged
tables the old DOMAIN and lone-STUDYID guesses
are gone.SUPP-- and RELREC tables are not suggested
as joins (folding them into their parent is future work). Neither are
tables without a USUBJID column (for example
TS, TA, TE).<D>SEQ is not traced; the pair still gets the subject
rule.LB with VS) get no
suggestion, only a note: that join is many-to-many by nature.cdisc = FALSE turns the rules and the notes off.Domain badges. Tables that look like SDTM, SEND
or ADaM datasets get a small badge after the card name (DM,
AE, ADSL, …). Hover for the dataset label, the
standard and class, and why sideview thinks so. Supplemental qualifier
tables (SUPPAE) say which parent they supplement. Other
tables are never touched.
Variable labels. Column headers show a
variable’s label as a tooltip, L shows a row of labels
under the headers (saved with the workspace as
view.labels_row), Ctrl+K also finds a card by
its domain or dataset label, and the column inspector shows the
label.
cdisc = on sideview(),
sideview_widget(), save_sideview(),
sideviewServer() and sv_codebook():
"auto" (default), FALSE, or a named vector
such as c(my_ae = "AE"). Module canvases update their
badges when a card is added or replaced.
sv_codebook() has a domain
column. The widget’s CSV download matches it byte for
byte.
sv_cdisc_catalogue() returns the
dataset catalogue the detection uses.
sv_read_cdisc() reads a folder or a
set of .xpt, .sas7bdat, Dataset-JSON and
.parquet files into a named list for
sideview(), keeping variable labels. Nothing goes over the
network.
Copilot. The schema text sent to the LLM now includes column labels and a domain line. Row data is still never sent.
Overrides. A table you tag yourself
(cdisc = c(my_adae = "ADAE")) gets the same class as an
auto-detected one: ADaM tags take BDS, OCCDS, TTE or ADSL from the
table’s columns, and SUPPAE-style tags get Relationship and
their parent. On a SEND canvas an auto-detected SUPP table is SEND too;
your own tags are never flipped. The hover text says why a table is
SEND. Names in cdisc = ignore a file extension
("lab.csv" names the table lab); case still
matters.
Codebook and canvas agree. The gadget’s codebook uses the badges on the canvas, so a tag you cleared stays cleared in the CSV. Labels sent to the Copilot are cut to 200 characters.
ig_versions column of the catalogue (SDTM, SEND and
ADaM implementation guide versions) is approximate. It is for awareness,
not conformance checking: sideview does not validate a dataset against
an implementation guide.AD... (ADLB,
ADAE, ADVS) whose columns confirm an ADaM
structure is tagged ADaM even when it keeps SDTM-prefixed columns
(LBTESTCD, AETERM, …); the tooltip notes the
prefix as a disagreement. A table with any other name and SDTM-prefixed
columns is still tagged by its prefix.STUDYID,
studyid, StudyID), so tables cleaned with
janitor::clean_names() are still recognised. A
STUDYID column is still required.sideview_server(cdisc =), used with your own
sideview_ui(), only sets the domain column of
the codebook; the badges come from the cards given to
sideview_ui().sv_read_cdisc() skips a file found by scanning a
folder, with one warning, when its reading package is not installed; a
file named explicitly is still an error.cdisc = FALSE shows no tags but, for lazy (arrow /
duckdb) cards, detection at construction time still runs, with its cost.
A named cdisc = vector with several lazy cards costs more
on every verb (quadratic in the number of cards).sv_read_cdisc() reads Dataset-JSON with the
datasetjson package (checked against datasetjson 0.4.1,
with column and dataset labels); if a file’s structure differs, it is
skipped with a warning.viewer = "dialog" and
"pane" were not checked in RStudio for this release.view.labels_row field
without a new schema version; older sideview versions ignore it.sideview_widget()
and save_sideview() take max_rows = 5000. A
longer data-frame table is cut to its first rows, its card says “First N
of M rows” and one message names the tables cut (silent while knitting).
max_rows = Inf embeds everything. Lazy tables are
unchanged.viewer =,
sideview() and sideview_addin() open the
browser in Positron, which has no dialog viewer;
viewer = "dialog" there also opens the browser, with one
message.sv_load_state() and state = read a file
without a version as 0.2.0 and upgrade older files (stamped
0.3.0); a file from a newer sideview loads with one warning.sideviewUI() /
sideviewServer() put an R-backed canvas into your
own Shiny app, several per page. The server returns a proxy with the
reactives code(), pipeline(),
state() and cards(), and
sideviewProxy(id) reaches the same canvas from elsewhere in
the session. cards = can be a reactive; req()
in it means “no cards yet”. Lazy (arrow / duckdb) cards in a module show
their true size, not “First 500 of …”, because R serves the whole
table.sv_add_card(),
sv_replace_card(), sv_remove_card(),
sv_set_state() and sv_highlight(), which pipe.
A replace keeps the card’s place and size, re-checks the join keys, and
disables, not deletes, any pipeline step that names a
column the new table lacks (a mutate expression that uses
it included), with one toast. A replace also keeps the card’s header
sort and filter, so the canvas still agrees with the code.$code() is composed
in the browser: treat it as untrusted text.llm_fn is given.inst/examples/proxy/app.R has two
canvases and a button for each verb. The gadget and the widget are
unchanged.A join step can carry a date rule, so “labs within 7
days of the visit” is a join and not a hand-written filter. Click the
calendar button on a join step to open the rule row. The shapes are
Between (a date inside the other table’s start and
end), Window (within a number of days before and
after), Nearest before, Nearest after
and Overlaps. Date, date-time and numeric columns work.
The code uses join_by() and, for a window, two helper
columns (.sv_lo, .sv_hi) that it drops
again.
sv_join_diagnostics() has a new rule argument,
and the gadget, the saved widget and duckdb/arrow cards all agree.relationship = and unmatched = arguments taken
from the join check, so the join stops with dplyr’s own error if the
data changes under it. Strict is R-only for duckdb and arrow tables. The
check looks at the two original tables, so Strict applies only to a join
on them: when an earlier step on the left table changes its rows (a
filter, another join, a summary, a pivot), or the right table has steps
of its own, the checkbox is greyed with the reason, keeps its setting,
and the code is the plain join.na_matches = "never".
sideview writes na_matches = "never" on every rule join
(dplyr’s default would match NA to NA), so a
key that is NA never matches another NA and
the key check counts them the same way when a rule is set.TimeZone setting a boundary can move. Running the
code in R on a mixed arrow/data-frame and duckdb chain may leave
temporary dbplyr_* tables on your connection until it
closes.lubridate::days(), so run it with lubridate installed (it
is in Suggests; Date and numeric windows do not need it).Arrow tables, datasets and queries and duckdb tables
(dplyr::tbl()) used to keep only their first 50 rows, so a
sort, a join check or a codebook looked complete when it was not. They
now use the whole table.
sv_join_diagnostics() accepts duckdb and Arrow tables,
sv_column_profile() has a new column argument
for them, and sv_codebook() accepts them and has a
progress argument. Arrow tables go through a private duckdb
connection that closes with the session.rows_profiled, after n.
n is the table’s true row count and
rows_profiled is how many rows the profile used. They are
equal except for a preview-only card.collect(). Joins across duckdb, arrow and data frames are
written so they run, a “contains” filter is
stringr::str_detect(col, "<escaped literal>")
(stringr is in Suggests), and a reshape on arrow collects first. If
Run in R fails, the message adds “This step may need
data in R: move collect() above it.”>, >=,
<, <= or = filter on an
Arrow date-time column with a time zone matched no rows. duckdb 2.0
turns that comparison into a filter inside the Arrow scan, which loses
every row.count() and
range()) made the lazy join check, filters and “contains”
fail."yes" on a logical, "abc" on a date) matches
no rows, as on a data frame, instead of failing.200,000, not 200000 or 2e+05; a
widget codebook gives a lazy card’s true row count as
n." or
\ gets code that parses; a saved state never holds a card’s
lazy table.Known differences from an in-memory card:
.0, but in generated code duckdb writes a double
as "130.0" where R writes "130", and float
noise or scientific notation can differ.-0, can print
differently.TIMESTAMPTZ
columns show in UTC. duckdb ordered factors report class
"factor".arrow::to_duckdb() then
dplyr::compute()), which uses memory. A data frame joined
into duckdb is copied as sideview_<table>.NA. sideview decodes these columns itself, but
generated code that calls arrow::to_duckdb() on one may hit
it: convert the factor to character first.A full pass over the user interface, tested in a real browser and in RStudio (dialog, Viewer pane, external browser, the addin, a saved HTML file and a Quarto page), plus new features for clinical data work.
Ctrl+Z / Ctrl+Y) and a choice of
%>% or |>. The drawer has real builder
tabs: Join, Filter (several conditions, AND/OR), Arrange, Mutate,
Recode, Reshape and Summarise.sv_join_diagnostics().sv_column_profile() and sv_codebook() do the
same from R.sideview(..., state =) and
sideview_widget(..., state =) restore card positions, zoom,
sorts, filters, joins and the pipeline, and
sv_load_state(launch = TRUE) now really launches.M hides it), Ctrl+K to find a card or column,
and double-click a card title to zoom to it. Fit and
Arrange buttons, and a tidy grid layout at launch.theme = "auto" (follows
RStudio or the browser), "light", "dark",
sv_theme() or a bslib::bs_theme(). Every text
colour meets WCAG AA contrast.? lists them), real buttons with labels and visible focus
rings, and the OS “reduce motion” setting is respected.sv_llm_models() lists the models an Ollama or
OpenAI-compatible server offers. AI errors now say how to fix them, and
options(sideview.llm_think) controls Ollama reasoning
models. See ?sideview for all options.viewer = "browser" works again. Closing or reloading
the tab no longer leaves the console busy or kills the app
(options(sideview.session_grace)).%> instead of
%>%.NULL; “Run in R” keeps its
result in a named object (sv_result by default), in the
environment sideview() was called from (new
env argument; the workspace when called from the
console).dplyr::case_when()
(case_match() is deprecated in dplyr 1.2).sideview-core HTML dependency with a content-based
version, so browsers never use stale JavaScript or CSS. The bundled
pan/zoom code is now honestly named sv-panzoom.js.tests/testthat/test-layout-browser.R, run with
NOT_CRAN=true) checks layout and behaviour with real mouse
and keyboard input.VirtualTable in sideview.js and
sideview.css, bounding active table DOM nodes to ~30 rows
with dynamic spacer elements and supporting 100k+ rows at 60 FPS
scrolling.sv_normalize.arrow_table(),
sv_normalize.Dataset(),
sv_normalize.tbl_duckdb_connection()) with soft-dependency
guards in Suggests:.sv_code_join() and server reactivity to support vector keys
(by = c("key1" = "key1", "key2" = "key2")) and relational
multi-table pipeline chaining.sv_code_pivot_longer() and
sv_code_pivot_wider() with full syntactic backtick escaping
and custom values_fn aggregation.sv_code_group_summarize() generating reproducible
dplyr::group_by(...) %>% dplyr::summarise(..., .groups = 'drop')
workflows.<svg class="sideview-sparkline">), categorical
frequency distribution bars (.sideview-cat-profile), and
color-coded missingness badges (.sideview-na-badge) with
25k-sample performance optimization.new_sideview_state(), sv_save_state(), and
sv_load_state() supporting both portable .json
and native R .rds workspace serialization for canvas
pan/zoom, card coordinates, splines, and pipelines.sv_suggest_mappings() computing 3-part composite scores
(name similarity with ID suffix detection, type compatibility, and
Jaccard overlap) with precomputed unique sets and logical column
exclusion..sideview-spline-suggested dashMove) with click-to-accept
join mapping, and sv_auto_clean_rules() /
sv_code_auto_clean() for automatic
dplyr::case_match() crosswalk synthesis.sv_build_chat_prompt()),
turn-based history sliding window (20 turns), and active pipeline code
guards.tests/testthat/test-computer-use-gui.R and headless DOM
test runner gui-test-runner.js verifying 6 core interaction
scenarios (canvas coordinates, dragging, port click / spline connect,
suggested spline acceptance, sorting/filtering, drawer action dispatch)
with diagnostic dumps in tempdir().[🔗] link icon in card headers) now synchronously
locks both vertical rows (scrollTop) and horizontal columns
(scrollLeft) in proportional lockstep across wide
datasets.column_disconnected to
dynamically update code generation and downstream operations.clearOperations() to reliably purge active connecting port
states (this.activePort) and strip visual
.connecting classes when resetting the canvas.tests/testthat/test-assets.R to ensure
zero runtime script syntax errors.▲
Ascending, ▼ Descending, original).dplyr::arrange()
pipelines in the Action Drawer.🔍).>, >=,
<, <=), exact matches (==,
!=), and text substring filters
(contains).dplyr::filter() pipelines.escapeColIdentifier() in
sideview.js so column names with spaces or symbols
(e.g. Patient ID, Glucose (mg/dL)) are safely
wrapped in backticks across filter and arrange pipelines.sideview_ui() to handle nested
list-columns and vectors safely with a [list] placeholder,
avoiding length > 1 evaluation errors under R 4.2+.Insert Script: Pastes code at the current cursor
location in the active RStudio script document via
rstudioapi::insertText().Run & Exit: Sends code to the R console and closes
the gadget immediately.Run in R: Evaluates code directly inside the current R
environment (.GlobalEnv) with live row/column toast
feedback.Run Console: Previews and buffers code for the RStudio
console.Clear button in the Action Drawer to
reset all active splines, sort orders, and filters.[✓] Auto-clear toggle to automatically reset
canvas interactions upon code insertion or copy.gemma4:26b and llama3.2 with
zero data leakage (http://localhost:11434).sideview:
Multi-Table 2D Infinite Canvas for interactive data exploration, visual
field mapping, and LLM-assisted Tidyverse code generation.sv_normalize())
supporting data.frame, tibble,
base::table, matrix, gt,
flextable, and htmlwidgets.save_sideview().sideview(),
sideview_addin()).