Deep thoughts and gists
by Paweł Piątkowski

Python-flavored imports

Inspired by this recent blog post found on R-Bloggers, I wrote two very simple functions that tackle the problem in a slightly different way:

Now, you can import selected functions from a package (including unexported ones) to the global namespace without littering it with all functions from that package:

importFrom("shiny", c("hr", "%OR%"))

or make a more convenient alias for that package’s namespace:

importAs("dplyr", "dp")