BEGIN.Python ============ The function BEGIN.Python starts an Python read-eval-print loop. BEGIN.Python emulates the behavior of the Python terminal and therefore allows interactive Python code development from within R. Usage ----- .. code-block:: R BEGIN.Python() Arguments --------- .. raw:: html
Examples -------- .. code-block:: R \dontrun{ code <- BEGIN.Python() import os os.getcwd() dir(os) x = 3**3 END.Python ## NOTE: BEGIN.Python returns the successfully executed code as character. cat(code) pyGet0("x") }