The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
read_bundle() gains a bundle_data
argument. An optional named list can now be passed to
read_bundle() and will be stored in the
@bundle_data slot of the returned bundle
object. This makes it easy to attach bundle-level metadata (e.g. subject
ID, hemisphere, affine transform) at import time without a separate
assignment step. When the file contains a single streamline the argument
is ignored with a warning.VignetteBuilder: quarto).fascicle* →
bundle*. src/fascicleReaders.{cpp,h}
and src/fascicleWriters.{cpp,h} have been renamed to
src/bundleReaders.{cpp,h} and
src/bundleWriters.{cpp,h} to align with the
bundle terminology used throughout the package API. The
include guards have been updated accordingly
(_BUNDLEREADERS_H, _BUNDLEWRITERS_H). No
functional change.TRK reader is now dramatically faster (up to ~20× on real-world data). Two bottlenecks were removed:
I/O layer: the old read_trk() called
readBin() twice per streamline (once for
num_points, once for the point block), causing 2 × N
sequential file reads. A new C++ function ReadTRK()
replaces the R loop: it reads the entire file body in a single
fread() call, then makes two fast in-memory passes — one to
count total points and pre-allocate output vectors, and one to parse
coordinates and scalars using direct memcpy-based reads
with optional byte-swapping.
Bundle assembly: flat_list_to_bundle()
previously evaluated sid == i inside a loop over all
streamlines, making the conversion O(streamlines × points). It now calls
split(seq_along(sid), sid) once (a C-level operation,
O(points)) to compute per-streamline index vectors up front. This fix
also benefits the VTK/VTP/FDS readers, which share the same conversion
function.
Windows R CMD check fix: quarto
CLI TMPDIR error. The R-CMD-check
workflow now sets QUARTO_PATH=nonexistent on Windows before
running the check. The quarto R package calls
system2("quarto", "-V", env = paste0("TMPDIR=", …)), which
on Windows passes the env assignment as a positional argument to the CLI
rather than setting it as an environment variable, causing
ERROR: Unknown command "TMPDIR=…". Setting
QUARTO_PATH to a nonexistent value makes
find_quarto() return NULL immediately, so
system2 is never called.
Windows R CMD check fix: VTK symbols
undefined / linker failures. configure,
configure.win, cleanup,
cleanup.win, and src/Makevars.in have been
removed. They are replaced by a static src/Makevars that
uses POSIX backtick syntax (per Writing R Extensions) to call
tools/configure.R directly at compile time:
PKG_CPPFLAGS = `"$(R_HOME)/bin/Rscript" ../tools/configure.R --cppflags`
PKG_LIBS = `"$(R_HOME)/bin/Rscript" ../tools/configure.R --libs`tools/configure.R calls rvtk::CppFlags() or
rvtk::LdFlagsFile(path = "vtk_libs.rsp") (no
modules argument). LdFlagsFile() writes the
complete list of static VTK libraries to src/vtk_libs.rsp
and returns @vtk_libs.rsp, which the linker reads directly
— avoiding Windows command-line length limits. The modules
argument was dropped because rvtk:::filter_libs() matches
module names directly against .a filenames: on Windows the
files are named libvtkIOLegacy-9.5.a but the module names
were "VTK_IOLegacy" (uppercase prefix + underscore), so
none matched and the .rsp file contained no VTK libraries.
On macOS/Linux with system VTK (e.g. homebrew), filter_libs
is not called, so modules was a no-op there
anyway.
macOS R CMD check fix:
_NSEventTrackingRunLoopMode not found.
tools/configure.R calls rvtk::LdFlagsFile()
with an explicit modules argument, linking only the VTK I/O
and Common modules that riot actually uses. Previously, when
rvtk fell back to its pre-built static bundle (the case for
the CRAN binary on macOS CI), -Wl,-all_load forced every
symbol from every .a — including rendering modules that
reference _NSEventTrackingRunLoopMode from
AppKit.framework — into riot.so, causing
dlopen() to fail at check time.
read_bundle() and write_bundle()read_tractogram() and
write_tractogram() are renamed to
read_bundle() and write_bundle() for
consistency with the bundle data model.reticulate::py_require("dipy") (reticulate ≥ 1.41) instead
of the previous manual py_module_available() check.
Reticulate will automatically provision DIPY in an ephemeral virtual
environment when one of the DIPY-backed formats (.trx,
.fib, .dpy) is first used.streamline and bundle classes
moved to {fiber}maf_df tibble
(with columns X, Y, Z,
PointId, StreamlineId) is replaced by two
S7 classes now defined in the fiber
package:
streamline — stores three typed slots accessed with
@:
@points: an \(n \times
3\) numeric matrix with columns "X",
"Y", "Z" for the ordered coordinates of the
\(n\) points along the tract.
PointId is implicit in row order and is no longer
stored.@point_data: a named list of numeric vectors of length
\(n\), holding per-point scalar
attributes (e.g. fractional anisotropy at each point).@streamline_data: a named list of numeric scalars
(length-1 vectors) holding per-streamline attributes (e.g. a tract-level
weight or mean FA).bundle — stores two typed slots:
@streamlines: a list of streamline
objects. StreamlineId is implicit in list position and is
no longer stored.@bundle_data: a named list of bundle-level metadata
(e.g. the affine transform used during tracking).streamline(), is_streamline(),
bundle(), is_bundle(), format(),
print(), length(), [[,
[, …) are all provided by fiber and
re-exported from there.read_bundle() returns a streamline when
the file contains exactly one tract, and a bundle
otherwise.write_bundle() accepts both streamline and
bundle objects.readr package is no longer a dependency.ReadVTK, ReadVTP,
ReadFDS) no longer write a temporary CSV file. They now
return a cpp11::writable::list directly to R, eliminating
all temporary file I/O and the associated string-reference issues.WriteVTK,
WriteVTP, WriteFDS) no longer read from a
temporary CSV. They now accept a cpp11::list directly from
R.WriteCSV (vtkPolyData → CSV) and
ReadCSV (CSV → vtkPolyData) are replaced by
PolyDataToList and ListToPolyData
respectively, operating entirely in memory.rvtkrvtk
package (now on CRAN). rvtk supplies pre-compiled VTK
headers and libraries so that no manual VTK installation is required on
most platforms: it honours a user-supplied VTK_DIR
environment variable first, then tries Homebrew (macOS),
pkg-config (macOS/Linux), and well-known system prefixes;
on Windows it checks VTK_DIR, Rtools45 pacman, and common
MSYS2 prefixes; if no suitable system VTK is found it downloads
pre-built static libraries automatically from the rvtk
GitHub releases.rvtk is listed as an Imports dependency;
downstream packages no longer need to locate VTK themselves.v9.2.4;vtkzlib when using LLVM
Clang compiler.In this first major release, we:
.tck/.tsf file formats (#5)..trk file formats (#5).We make it the first major release as we consider that the most popular tractography formats are now supported by riot. We chose by design to support only VTK and medInria file formats for writing.
NEWS.md file to track changes to the
package..vtk,
.vtp and .fds file formats.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.