R/use_login.R

Defines functions use_login

Documented in use_login

#' JavaScript and CSS dependencies.
#'
#' This ensures the JavaScript and CSS dependencies are available to the
#' client. Files are located in `assets/` folder when installed..
#'
#' @return a [htmltools::htmlDependency()] object defining the JavaScript and CSS files.
#' @importFrom htmltools htmlDependencies
#' @importFrom utils packageVersion
#' @export
use_login <- function() {
	htmltools::htmlDependency(
		name = 'login-assets',
		version = utils::packageVersion('login'),
		package = 'login',
		src = 'assets',
		script = c('md5.js', 'passwdInputBinding.js'),
		stylesheet = c('style.css')
	)
}

Try the login package in your browser

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

login documentation built on May 29, 2024, 4:07 a.m.