Skip to content

Commit 3ee71a5

Browse files
committed
docs: add suggestion to .gitignore .Renviron
1 parent 08f391a commit 3ee71a5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

R/auth.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,20 @@ save_api_key <- function() {
5656
write {.code DELPHI_EPIDATA_KEY=yourkeyhere} in the file and save it. If the editor
5757
does not open, you will need to edit the file manually.",
5858
"i" = "Press any key to continue."
59-
),
59+
)
6060
)
6161
readline()
6262

6363
if (file.exists(usethis::proj_path(".Renviron"))) {
6464
usethis::edit_r_environ(scope = "project")
65+
66+
cat("\n\n")
67+
cli::cli_inform(
68+
c(
69+
"i" = "Your project {.code .Renviron} file has been updated. Make sure not to share this
70+
file (add it to .gitignore or equivalents)."
71+
)
72+
)
6573
} else {
6674
usethis::edit_r_environ(scope = "user")
6775
}

0 commit comments

Comments
 (0)