Create a user
rt_user_create( name, password = NULL, email_address = NULL, real_name = NULL, organization = NULL, privileged = NULL, disabled = NULL, ... )
(character) Optional. User name
(character) The password
(character) Optional. User email
(character) Optional. User real name
(character) Optional. User organization
(numeric) Optional. User privilege status
(numeric) Optional. User disabled status
Other arguments passed to rt_POST
rt_POST
(numeric) The ID of the newly-created user
# NOT RUN { # Create a barebones user with just a name rt_user_create("Some Person") # Create user that also has an email address rt_user_create("Person", email_address = "person@example.com") # }
Run the code above in your browser using DataLab