Creates a permission policy that only allows reading files. All write operations, code execution, and web access are denied.
Value
A Permissions object
Examples
perms <- permissions_readonly()
perms$check("read_file", list(path = "test.txt"))
#> $decision
#> [1] "allow"
#>
#> $message
#> NULL
#>
#> attr(,"class")
#> [1] "PermissionResultAllow" "PermissionResult" "list"