Skip to contents

All functions in the etn R package require credentials to access the etn database: a username and password.

If you do not have credentials already, you can register an account here or fill in the contact form.

The easiest way to use the package is to store your credentials in your .Renviron file. You can edit this file by running:

install.packages("usethis")
usethis::edit_r_environ()

Add your credentials to the file like so:

ETN_USER = "pieter.huybrechts@inbo.be"
ETN_PWD = "this_isnt_really_my_password"

Then restart your R session and everything should just work. For example:

If you do not have your credentials stored already, functions will prompt you for them. You can then enter your username and password (without quotes "") but they will not be stored in .Renviron so you’ll have to enter them every time you use a function.