# NOT RUN {
# Print all limits
rlimit_all()
# Get one limit
rlimit_as()
# Set a soft limit
lim <- rlimit_as(1e9)
print(lim)
# Reset the limit to max
rlimit_as(cur = lim$max)
# }
# NOT RUN {
# Set a hard limit (irreversible)
rlimit_as(max = 1e10)
# }
Run the code above in your browser using DataLab