R/exists_javastics_pref.R

Defines functions exists_javastics_pref

#' @title Evaluate if model preferences have been set
#'
#' @description Testing if preferences.xml file exist in JavaSTICS
#' installation folder
#'
#' @param javastics JavaSTICS installation folder
#'
#' @examples
#' \dontrun{
#' exists_pref <- exists_javastics_pref("/path/to/JavaSTICS/folder")
#' }
#'
#' @return logical value, TRUE if file exists, FALSE otherwise
#'
#' @keywords internal
#'
#' @noRd
#'
#'
exists_javastics_pref <- function(javastics) {
  # checking javastics path
  check_java_path(javastics)

  # Returning if file exists
  return(file.exists(file.path(javastics, "config", "preferences.xml")))
}

Try the SticsRFiles package in your browser

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

SticsRFiles documentation built on May 29, 2024, 4:18 a.m.