loading...

Obfuscate answers in learnr documents

obfuscate(object, password)

._(object)

obfuscate_logical(x, y, r = FALSE)

ans(correct, text, message = NULL)

Arguments

object

An R object to obfuscate, or Obfuscation string to decrypt.

password

The password to use (otherwise, the password defined by the application is used)

x

A logical value or an integer.

y

Obfuscation parameter.

r

Reset obfuscation (not intended for end-user)?

correct

Is the answer is correct or not (either a logical value, or an integer that obfuscates the results).

text

Text of the option.

message

Message displayed if the item is selected

Value

The encrypted or decrypted object.

Examples

obfuscate("test", "password")
#> [1] "tHP4+QGa3/Z242t54Weo2A=="