| get_memory_thresholds | R Documentation |
Calculates appropriate memory thresholds for conversions based on total system RAM. Returns conservative values suitable for most systems.
get_memory_thresholds(total_ram = NULL)
total_ram |
Numeric. Total system RAM in GB. If NULL (default), auto-detects using C++ implementation. |
Calculation logic:
Uses percentage of total RAM with safety margins:
Silent: 15\
Warning: 30\
Force: 50\
Blocked: 80\
Fallback values (if RAM detection fails):
Silent: 2 GB
Warning: 4 GB
Force: 8 GB
Blocked: 16 GB
Named list with thresholds in MB:
Size below which conversions happen silently
Size requiring user confirmation
Size requiring force=TRUE
Size that cannot be converted
get_total_ram, memory_info
# Auto-detect
thresholds <- get_memory_thresholds()
# $silent: 3000 MB, $warning: 8000 MB, etc.
# Manual specification (e.g., for 32GB system)
thresholds <- get_memory_thresholds(total_ram = 32)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.