etn functions require credentials (username and password) to connect to the ETN database.
Where do you find your credentials?
- Go to https://www.lifewatch.be/etn/
- Log in with your MarinePass account.
- In the top right, click your name, then choose
Rstudio info. - See your credentials to connect to the ETN database.
Use these for the next section “Store your credentials”. Note that the password is different than the one for your MarinePass account.
Store your credentials
By default, all functions will ask you for your credentials. Very
tedious! You can avoid this by storing them in a local
.Renviron file. etn will use those rather than asking every
time.
-
Open your
.Renvironfile with:# install.packages("usethis") usethis::edit_r_environ() -
Add the following lines to the file and save:
Restart R.
-
Try:
library(etn) get_animal_projects() # This should return a data frame
Forgot your credentials?
Forgot the credentials to your MarinePass account? Use the password reset form.
Forgot the credentials to connect to the ETN database? See the section above “Where do you find your credentials?”.
Don’t have an account to ETN?
- Register for a MarinePass account. It grants you access to several services at VLIZ: MDA, ETN, and the VLIZ RStudio server.
- Select access to
ETN_dataandrstudio_vliz. - Confirm registration via email.
- Wait for an email indicating that your account was approved by a human.
