#' Get User Directory
#'
#' Gets user directory
#'
#' @param sc Spark Context
#'
#' @return User directory path
#'
#' @import sparklyr
#' @examples
#' \dontrun{
#' spark_get_user_dir(sc)
#' }
#' @export
spark_get_user_dir <- function(sc) {
sparklyr::invoke_static(sc, "dirsAndPaths.Main", "getDirectory")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.