R/clear_username.R

Defines functions clear_username

Documented in clear_username

#' @rdname set_username
#'
#' @export
clear_username <- function() {
  if (file.exists(file.path(config_dir(), "username.dcf"))) {
    message("removing username from icesConnect configuration.")
    unlink(
      file.path(config_dir(), "username.dcf")
    )
  }
  else {
    message("no username found in icesConnect configuration.")
  }
}

Try the icesConnect package in your browser

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

icesConnect documentation built on June 8, 2025, 10:53 a.m.