Log in as a LaminDB user
lamin_login(user = NULL, api_key = NULL)Handle for the user to login as
API key for a user
Depending on the input, one of these commands will be run (in this order):
If user is set then lamin login <user>
Else if api_key is set then set the LAMIN_API_KEY environment variable
temporarily with withr::with_envvar() and run lamin login
Else if there is a stored user handle run lamin login <handle>
Else if the LAMIN_API_KEY environment variable is set run lamin login
Otherwise, exit with an error