qualtRics icon indicating copy to clipboard operation
qualtRics copied to clipboard

`devtools::load_all()` overwrites qualtrics_base_url

Open dsen6644 opened this issue 3 years ago • 2 comments

devtools::load_all() overwrites qualtrics_base_url in .Renviron when loading helper-qualtRics.

# Use default URL rather than branded one:
Sys.setenv("QUALTRICS_BASE_URL" = "www.qualtrics.com")

Requires developer to re-read .Renviron each time devtools::load_all() is used.

Reprex-

Sys.getenv("QUALTRICS_BASE_URL")
#> [1] "gene.iad1.qualtrics.com"
devtools::load_all()
#> Loading qualtRics
Sys.getenv("QUALTRICS_BASE_URL")
#> [1] "www.qualtrics.com"

dsen6644 avatar Mar 16 '21 03:03 dsen6644

Yeah, I've definitely experienced this too. 😩 I'll look into whether there are other options for storing the credentials that may not have this frustration and/or that can avoid this problem.

juliasilge avatar Mar 16 '21 20:03 juliasilge

Maybe related to #145

juliasilge avatar Mar 17 '21 03:03 juliasilge