This function is used to store user credentials (given and family names,
email, ORCID, GitHub username, etc.) in the .Rprofile file.
This function is useful to store user credentials once for all especially if
the user creates a lot of R projects and/or if the user manually calls
the add_*() functions.
This function will create the .Rprofile file if it does not exist. Then,
the user needs to paste the content of the clipboard to this file (open by
the function).
Usage
set_credentials(
given = NULL,
family = NULL,
email = NULL,
orcid = NULL,
github_user = NULL,
protocol = "https",
open = TRUE
)Arguments
- given
a
characterof length 1. The given name of the user (considered as the maintainer and code owner of the project).- family
a
characterof length 1. The family name of the user (considered as the maintainer and code owner of the project).a
characterof length 1. The email address of the user (considered as the maintainer and code owner of the project).- orcid
a
characterof length 1. The ORCID of the user (considered as the maintainer and code owner of the project).- github_user
a
characterof length 1. The GitHub account name of the user (considered as the maintainer and code owner of the project).- protocol
a
characterof length 1. The GIT protocol used to communicate with GitHub. One of'https'or'ssh'. If you don't know, keep the default value (i.e.https).- open
a
logicalvalue. IfTRUE(default) the.Rprofileis opened in the default text editor (recommended).
See also
Other setup functions:
create_new_compendium(),
create_new_package()
