User identity for the recipe ecosystem. Supports three account types: individual, institutional_member, and institution.
See also
Other tidy-api:
RecipeCategory,
RecipeCertification,
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(),
recipe_user(),
remove_category(),
search_recipes(),
search_workflows(),
set_user_info(),
set_version()
Public fields
nameCharacter. User or institution name.
emailCharacter or NULL. Email address.
user_typeCharacter. One of "individual", "institutional_member", "institution".
affiliationCharacter or NULL. Organizational affiliation.
institutionRecipeUser or NULL. Parent institution (for institutional_member).
urlCharacter or NULL. Institution URL.
verifiedLogical. Whether the account is verified.
review_statusCharacter. One of "approved", "pending", "rejected".
Methods
Method new()
Create a new RecipeUser
Usage
RecipeUser$new(
name,
user_type,
email = NULL,
affiliation = NULL,
institution = NULL,
url = NULL,
verified = FALSE,
review_status = "approved"
)Arguments
nameCharacter. User or institution name.
user_typeCharacter. One of "individual", "institutional_member", "institution".
emailCharacter or NULL. Email address.
affiliationCharacter or NULL. Organizational affiliation.
institutionRecipeUser or NULL. Parent institution for institutional_member.
urlCharacter or NULL. Institution URL.
verifiedLogical. Whether account is verified.
review_statusCharacter. "approved", "pending", or "rejected".
Method print()
Print user card
Examples
# Use recipe_user() for the public API:
user <- recipe_user("Juan Perez", email = "juan@example.com")
inst <- recipe_user("IECON", type = "institution")
member <- recipe_user(
"Maria",
type = "institutional_member",
institution = inst
)