R/oh.logout.R

Defines functions oh.logout

Documented in oh.logout

#' Logout from an ohmage session
#' @export
oh.logout <- function(){
	if(is.null(getOption("TOKEN"))){
		stop("Not logged in.");
	}
	options(TOKEN = NULL);
	options(SERVERURL = NULL);
	options(ohmage_username = NULL)
	message("Logged out.\n")
}

Try the Ohmage package in your browser

Any scripts or data that you put into this service are public.

Ohmage documentation built on Feb. 1, 2019, 1:04 a.m.