Expand description
System, file, directory, path, and temp builtins.
Each function is auto-registered via #[builtin] + linkme.
EnumsΒ§
- System
Error - Structured error type for system/file operations.
StaticsΒ§
- __
BUILTIN_ πREG_ BUILTIN_ CAPABILITIES - __
BUILTIN_ πREG_ BUILTIN_ L10N_ INFO - __
BUILTIN_ πREG_ BUILTIN_ SHELL_ EXEC - __
BUILTIN_ πREG_ BUILTIN_ SYS_ GETPID - __
INTERP_ πREG_ BUILTIN_ DIR_ CREATE - __
INTERP_ πREG_ BUILTIN_ DIR_ EXISTS - __
INTERP_ πREG_ BUILTIN_ FILE_ COPY - __
INTERP_ πREG_ BUILTIN_ FILE_ CREATE - __
INTERP_ πREG_ BUILTIN_ FILE_ INFO - __
INTERP_ πREG_ BUILTIN_ FILE_ MTIME - __
INTERP_ πREG_ BUILTIN_ FILE_ REMOVE - __
INTERP_ πREG_ BUILTIN_ FILE_ RENAME - __
INTERP_ πREG_ BUILTIN_ FILE_ SIZE - __
INTERP_ πREG_ BUILTIN_ LIB_ PATHS - __
INTERP_ πREG_ BUILTIN_ LIST_ DIRS - __
INTERP_ πREG_ BUILTIN_ LIST_ FILES - __
INTERP_ πREG_ BUILTIN_ NORMALIZE_ PATH - __
INTERP_ πREG_ BUILTIN_ PATH_ EXPAND - __
INTERP_ πREG_ BUILTIN_ R_ HOME - __
INTERP_ πREG_ BUILTIN_ SESSION_ INFO - __
INTERP_ πREG_ BUILTIN_ SYSTEM - __
INTERP_ πREG_ BUILTIN_ SYSTE M2 - __
INTERP_ πREG_ BUILTIN_ SYS_ GLOB - __
INTERP_ πREG_ BUILTIN_ SYS_ INFO - __
INTERP_ πREG_ BUILTIN_ SYS_ TIMEZONE - __
INTERP_ πREG_ BUILTIN_ UNLINK - __
INTERP_ πREG_ INTERP_ FIND_ PACKAGE - __
INTERP_ πREG_ INTERP_ PRINT_ PROC_ TIME - __
INTERP_ πREG_ INTERP_ PROC_ TIME - __
INTERP_ πREG_ INTERP_ SETWD - __
INTERP_ πREG_ INTERP_ SYSTEM_ FILE - __
INTERP_ πREG_ INTERP_ SYS_ SETENV - __
INTERP_ πREG_ INTERP_ SYS_ SLEEP - __
INTERP_ πREG_ INTERP_ SYS_ UNSETENV - __
INTERP_ πREG_ INTERP_ SYS_ WHICH - __
INTERP_ πREG_ INTERP_ TEMPDIR - __
INTERP_ πREG_ INTERP_ TEMPFILE
FunctionsΒ§
- builtin_
capabilities π - Report which optional features are available in this interpreter.
- builtin_
dir_ πcreate - Create a directory, optionally with parent directories.
- builtin_
dir_ πexists - Test whether directories exist at the given paths.
- builtin_
file_ πcopy - Copy a file from one path to another.
- builtin_
file_ πcreate - Create empty files at the given paths.
- builtin_
file_ πinfo - Get detailed file metadata (size, type, permissions, timestamps).
- builtin_
file_ πmtime - Get file modification times as POSIXct timestamps (seconds since Unix epoch).
- builtin_
file_ πremove - Delete files at the given paths.
- builtin_
file_ πrename - Rename (move) a file.
- builtin_
file_ πsize - Get the size of files in bytes.
- builtin_
l10n_ πinfo - Report localization information (encoding support).
- builtin_
lib_ πpaths - Return the library search paths for package installation.
- builtin_
list_ πdirs - List subdirectories of a directory.
- builtin_
list_ πfiles - List files in a directory, optionally filtering by pattern.
- builtin_
normalize_ πpath - Normalize a file path to its canonical absolute form.
- builtin_
path_ πexpand - Expand a tilde (~) prefix in a file path to the userβs home directory.
- builtin_
r_ πhome - Return the miniR βhomeβ directory (data directory for miniR resources).
- builtin_
session_ πinfo - Return session information (miniR version, platform, locale).
- builtin_
shell_ πexec - Open a file or URL with the systemβs default application.
- builtin_
sys_ πgetpid - Return the process ID of the current R process.
- builtin_
sys_ πglob - Expand file system glob patterns to matching paths.
- builtin_
sys_ πinfo - Return system information as a named character vector.
- builtin_
sys_ πtimezone - Get the current timezone from the TZ environment variable.
- builtin_
system π - Execute a shell command.
- builtin_
system2 π - Execute a command with arguments, optionally capturing stdout/stderr.
- builtin_
unlink π - Delete files or directories.
- home_
dir_ πstring - interp_
find_ πpackage find.package(package, lib.loc, quiet)β find the directory of an installed package.- interp_
print_ πproc_ time - Print a
proc_timeobject in Rβs standard format. - interp_
proc_ πtime - Get elapsed (wall-clock) time since the interpreter started.
- interp_
setwd π - Set the interpreterβs working directory.
- interp_
sys_ πsetenv - Set environment variables in the interpreterβs private environment.
- interp_
sys_ πsleep - Pause execution for a specified number of seconds.
- interp_
sys_ πunsetenv - Unset environment variables in the interpreterβs private environment.
- interp_
sys_ πwhich - Look up the full paths of programs on the system PATH.
- interp_
system_ πfile - Find files in installed packages.
- interp_
tempdir π - Get the path to the interpreterβs per-session temporary directory.
- interp_
tempfile π - Generate a unique temporary file path.
- list_
dirs_ πflat - Non-recursive directory listing (immediate subdirectories only).
- list_
dirs_ πrecursive - Recursive directory listing using walkdir.
- list_
files_ πflat - Non-recursive directory listing.
- list_
files_ πrecursive - Recursive directory listing using walkdir (when available) or std::fs fallback.
- make_
proc_ πtime - Construct a
proc_timeRValue with the standard names and class attributes. - minir_
data_ πdir - resolved_
path_ πstring