Provides pre-compiled static 'VTK' libraries and headers so that downstream R packages can link against the Visualization Toolkit without requiring users to install 'VTK' manually. On all platforms the package first honours a user-supplied 'VTK_DIR' environment variable. On macOS it then tries 'Homebrew', followed by 'pkg-config'. On Linux it tries 'pkg-config' and well-known system prefixes ('/usr', '/usr/local'). If no suitable system installation is found on macOS or Linux, pre-built static libraries are downloaded automatically from the package's GitHub releases. On Windows the package tries 'VTK_DIR', then 'Rtools45' 'pacman', then common 'MSYS2' prefixes, accepting both static ('.a') and shared ('.dll.a' import libs + DLLs) installations. When shared libraries are used, the VTK DLLs are staged in 'inst/vtk-dlls/' and an '.onLoad' hook prepends that directory to PATH via 'Sys.setenv()' when the package is loaded, and restored in '.onUnload()'. The pre-built fallback downloads static libraries by default; set 'VTK_LINK_TYPE=shared' before installation to download the DLL build instead. Note that on Windows the modules 'VTK_IONetCDF', 'VTK_IOHDF', 'VTK_GeovisCore', and 'VTK_RenderingCore' are disabled because 'netcdf' and 'libproj' are not available in the 'Rtools45' 'static.posix' sysroot. Downstream packages can declare 'Imports: rvtk' and obtain the correct compiler and linker flags at install time via rvtk::CppFlags() and rvtk::LdFlagsFile().
| Version: | 0.1.3 |
| Suggests: | tinytest |
| Published: | 2026-05-11 |
| DOI: | 10.32614/CRAN.package.rvtk |
| Author: | Aymeric Stamm |
| Maintainer: | Aymeric Stamm <aymeric.stamm at cnrs.fr> |
| BugReports: | https://github.com/astamm/rvtk/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/astamm/rvtk |
| NeedsCompilation: | no |
| Materials: | README, NEWS |
| CRAN checks: | rvtk results |
| Reference manual: | rvtk.html , rvtk.pdf |
| Package source: | rvtk_0.1.3.tar.gz |
| Windows binaries: | r-devel: rvtk_0.1.3.zip, r-release: rvtk_0.1.3.zip, r-oldrel: rvtk_0.1.3.zip |
| macOS binaries: | r-release (arm64): rvtk_0.1.3.tgz, r-oldrel (arm64): rvtk_0.1.3.tgz, r-release (x86_64): rvtk_0.1.3.tgz, r-oldrel (x86_64): rvtk_0.1.3.tgz |
Please use the canonical form https://CRAN.R-project.org/package=rvtk to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.