R/check_python.R

Defines functions check_python

check_python = function() {
  con = get_config()
  if (!isTRUE(con$python3)) return(invisible(NULL))
  msg_start("Checking python version")

  if (!isTRUE(nchar(con$knitr$engine.path) > 2)) {
    msg_error("knitr Python engine path fail")
    stop()
  }
  msg_success("Python version looks good")
}
jr-packages/jrNotes documentation built on Dec. 18, 2020, 11:07 p.m.