hmd_session: Set the username and password to access the Human Mortality...

View source: R/hmd.R

hmd_sessionR Documentation

Set the username and password to access the Human Mortality Database

Description

You first need to register as a user (if you haven't already) at the Human Mortality Database. To now set a session pass in your username and password from your account or alternatively, you can store your username and password in the .Renviron file containing

HMD_USERNAME=<YOUR USERNAME>

HMD_PASSWORD=<YOUR PASSWORD>

Usage

hmd_session(
  username = Sys.getenv("HMD_USERNAME"),
  password = Sys.getenv("HMD_PASSWORD")
)

Arguments

username

The username (typically your email) that you signed up for HMD.

password

The password used to access HMD.


emitanaka/mortality documentation built on Nov. 2, 2022, 12:29 a.m.