Skip to content

set_credentials throws error when HOME is dynamic #44

Description

@elliottob

Objective 🎯

Store user credentials consistently

User stories 📇

If a user is using renv, the .Renviron file should be created to the project directory, or append credentials to existing .Renviron. Expecting the environmental variable HOME is not consistent across platforms or business computer systems.
Issue pops up when Sys.getenv("HOME") responds with "C:\Users\${USERNAME}". It also makes more sense to use the .Renviron in a R project home directory using here::here() instead.

Tasks ⚙️

Development 👨‍💻

I suggest using here::here() instead of Sys.getent("HOME"). See https://github.com/arthur-shaw/susoapi/blob/f878729a77fc472bd3547a91ae35cc358f7a0128/R/authenticate.R#L21C5-L21C36.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions