| Project | R Documentation |
Project class representing the basic properties of a CorrelAid Project
Project class representing the basic properties of a CorrelAid Project
tagstibble. Returns the tags of the project as a tibble. Read-only.
local_chapterstibble. Returns the local_chapters of the project as a tibble. Read-only.
descriptiontibble. Returns the description of the project as a Description object.
organizationtibble. Returns the organization of the project as a Organization object.
project_memberstibble. Returns the project_members of the project as a tibble. Read-only.
project_idcharacter. id of the project, in the form YYYY-mm-ABB where ABB is any three-character, uppercase abbreviation
namecharacter. title of the project.
status_idinteger. Returns integer corresponding to the status of the project. Check out projectutils::status to see the available status and the corresponding ids.
statusinteger. Returns the status of the project. Check out projectutils::status to see the available status and the corresponding ids.
slugcharacter. Returns or sets the slug (the part of the URL after correlaid.org/projects) for the website. Must not contain spaces and only - as special characters.
is_publicboolean. Returns or sets whether the project is made public on the CorrelAid website. Use with caution!
start_ymcharacter. Return or set the start of the project, in YYYY-mm form. Does not change the project id.
end_ymcharacter. Return or set the actual end of the project, in YYYY-mm form.
end_ym_predictedcharacter. Return or set the predicted end of the project, in YYYY-mm form.
is_internalboolean. Return or set whether or not the project is an internal project.
url_git_repocharacter. Return or set the full URL of the git repository, either GitHub or Gitlab.
url_gh_issuecharacter. Returns the full URL to the GitHub issue in the projects repository. read-only. to set use num_gh_issue.
num_gh_issueinteger. Returns the number of the issue in the projects repository. read-only (use u)
team_sizeinteger. Team size of the project.
url_ideation_padcharacter. Returns or sets the full URL to the CodiMD Pad for the ideation phase of the project.
url_call_padcharacter. Returns or sets the full URL for the call for applications for the project.
slack_channelcharacter. Returns or sets the name of the Slack channel for the project.
organization_idinteger. Returns the three letter, uppercase ID corresponding to the partner organization of the project. e.g. COR for CorrelAid create a project
new()Project$new(project_id, name)
project_idcharacter. id of the project, in the form YYYY-mm-ABB where ABB is any three-character, uppercase abbreviation
namecharacter. Short title of the project. print
print()print the project add a new tag to the project
Project$print()
add_tag()Project$add_tag(category, value = NA)
categorycharacter. the tag category. see projectutils::tags for available values.
valuecharacter. the tag value. see projectutils::tags for available values and combinations. Defaults to NA. add a local chapter to the project
add_local_chapter()Project$add_local_chapter(lc_name)
lc_namecharacter. local chapter name. see projectutils::local_chapters for available options. add a local chapter to the project
add_project_member()Project$add_project_member(volunteer_id, role, ...)
volunteer_idinteger. id of the volunteer.
rolecharacter. role of the volunteer. see projectutils::roles for available options.
...optional arguments for ProjectMember constructor get team member by volunteer id
get_team_member()Project$get_team_member(volunteer_id)
volunteer_idinteger. numeric id of the volunteer. set status of the project
set_status()Project$set_status(status)
statuscharacter. the status. See projectutils::status for options. to_tibble
to_tibble()returns a one row tibble representation of the Project object. get_sql_tables
Project$to_tibble()
get_sql_tables()function that returns a tibble for each table to_website_json
Project$get_sql_tables()
to_website_json()function that returns list that can be used for the website (will need to add team separately)
Project$to_website_json()
clone()The objects of this class are cloneable with this method.
Project$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.