tensorflow (version 0.3.0)

import: Import a Python module

Description

Import the specified Python module for calling from R. Use "__main__" to import the main module.

Usage

import(module, silent = FALSE)

Arguments

module
Module name
silent
Return NULL rather than throwing an error if the specified module cannot be loaded.

Value

A Python module

Examples

Run this code
## Not run: 
# main <- import("__main__")
# sys <- import("sys")
# ## End(Not run)

Run the code above in your browser using DataLab