Obfuscate answers in learnr documents
obfuscate(object, password)
._(object)
obfuscate_logical(x, y, r = FALSE)
ans(correct, text, message = NULL)
An R object to obfuscate, or Obfuscation string to decrypt.
The password to use (otherwise, the password defined by the application is used)
A logical value or an integer.
Obfuscation parameter.
Reset obfuscation (not intended for end-user)?
Is the answer is correct or not (either a logical value, or an integer that obfuscates the results).
Text of the option.
Message displayed if the item is selected
The encrypted or decrypted object.
obfuscate("test", "password")
#> [1] "tHP4+QGa3/Z242t54Weo2A=="