File: test-aaa.R

package info (click to toggle)
r-cran-reticulate 1.41.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,088 kB
  • sloc: cpp: 5,154; python: 620; sh: 13; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12

# TODO: throw error in py_initialize() if attempting to bind to Python 2, then delete this test helper

# prefer Python 3 if available
# if (!is_windows() &&
#     !py_available(initialize = FALSE) &&
#     is.na(Sys.getenv("RETICULATE_PYTHON", unset = NA)))
# {
#   python <- Sys.which("python3")
#   if (nzchar(python) && python != "/usr/bin/python3")
#     use_python(python, required = TRUE)
# }