R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
  # at the compile time a flag is set which can
  # be accessed by using the function isDllVersion 
  if ( !.Call( "isDllVersion") ){
      pyConnect()
  } else if ( nchar(Sys.getenv('PYTHON_EXE')) > 0 ) {
  	  pyConnect(pythonExePath=Sys.getenv('PYTHON_EXE'))
  }
  
  invisible(NULL)
}

Try the PythonInR package in your browser

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

PythonInR documentation built on July 1, 2020, 6:05 p.m.