Skip to content

Commit

Permalink
Start relying on usethis::edit_r_environ() (see #99)
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinleinweber committed Dec 9, 2018
1 parent e31ab4e commit 717d92e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,13 @@ Afterwards, remove the above from GitHub. -->
latest upcoming changes, add `ref = 'development'` there.

3. After installing, follow the instructions on the console to save your login
credentials locally and restart R(Studio) or run:
credentials locally and restart R(Studio) or run `usethis::edit_r_environ()`
and ensure it contains the following:

``` r
file.edit(file.path(Sys.getenv('HOME'), '.Renviron'))
```

and make sure it contains the following:

BacDive_email=your.email@provider.org
BacDive_password=YOUR_20_char_password
BacDive_email=your.email@provider.org
BacDive_password=YOUR_20_char_password
```

In the examples and vignettes, the data retrieval will only work if your login credentials are correct in themselves (no typos) _and_ were correctly saved. Console output like `"{\"detail\": \"Invalid username/password\"}"`, or `Error: $ operator is invalid for atomic vectors` indicates that either the login credentials are incorrect, or the `.Renviron` file.

Expand Down
8 changes: 3 additions & 5 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 717d92e

Please sign in to comment.