Creates a RecipeUser object with a simple
functional interface.
Usage
recipe_user(
name,
type = "individual",
email = NULL,
affiliation = NULL,
institution = NULL,
url = NULL,
verified = FALSE
)Arguments
- name
Character. User or institution name.
- type
Character. One of
"individual"(default),"institutional_member", or"institution".Character or
NULL(defaultNULL). Email address.- affiliation
Character or
NULL(defaultNULL). Organizational affiliation.- institution
RecipeUser object or character institution name. Required for
"institutional_member"type. If a string is provided, it creates an institution user with that name automatically.- url
Character or
NULL(defaultNULL). Institution URL.- verified
Logical (default
FALSE). Whether the account is verified.
Value
A RecipeUser object.
See also
RecipeUser,
set_user_info,
certify_recipe
Other tidy-api:
RecipeCategory,
RecipeCertification,
RecipeUser,
add_category(),
certify_recipe(),
default_categories(),
filter_recipes(),
filter_workflows(),
find_workflows_for_recipe(),
list_recipes(),
list_workflows(),
rank_recipes(),
rank_workflows(),
recipe_category(),
recipe_certification(),
remove_category(),
search_recipes(),
search_workflows(),
set_user_info(),
set_version()
Examples
# Individual user
user <- recipe_user("Juan Perez", email = "juan@example.com")
# Institution
inst <- recipe_user(
"Instituto de Economia",
type = "institution", verified = TRUE
)
# Member linked to institution
member <- recipe_user(
"Maria",
type = "institutional_member",
institution = inst
)
# Member with institution name shortcut
member2 <- recipe_user(
"Pedro",
type = "institutional_member",
institution = "IECON"
)