# NOT RUN {
pyImport("os")
# }
# NOT RUN {
#NOTE: The following does not only import numpy but also register the
# alias in the options under the name "numpyAlias".
# The same is done for pandas, the default alias for pandas and numpy
# are respectively "pandas" and "numpy". The numpyAlias is used
# when calling pySet with the pyOption useNumpy set to TRUE.
pyOptions("numpyAlias")
pyImport("numpy", as="np")
pyOptions("numpyAlias")
pyImport("pandas", as="pd")
pyImport(c("getcwd", "sep"), from="os")
getcwd()
sep
sep = "Hello R!"
pyExecp("sep")
# }
Run the code above in your browser using DataLab