| Type: | Package | 
| Title: | Enables Importing/Loading of Packages or Functions While Creating an Alias for Them | 
| Version: | 0.1.1 | 
| Author: | Andrea Cantieni | 
| Maintainer: | Andrea Cantieni <andrea.cantieni@phsz.ch> | 
| Description: | Enables 'Python'-like importing/loading of packages or functions with aliasing to prevent namespace conflicts. | 
| URL: | https://github.com/andreaphsz/importar | 
| License: | GPL-3 | 
| Encoding: | UTF-8 | 
| LazyData: | true | 
| RoxygenNote: | 6.0.1 | 
| Suggests: | dplyr | 
| Imports: | utils | 
| NeedsCompilation: | no | 
| Packaged: | 2017-09-27 09:22:33 UTC; phsz | 
| Repository: | CRAN | 
| Date/Publication: | 2017-09-27 09:29:09 UTC | 
This function imports/loads packages as in 'Python', i.e., “import package as alias”
Description
This function imports/loads packages as in 'Python', i.e., “import package as alias”
Usage
import(package, alias)
Arguments
| package | Package name (unquoted). | 
| alias | Alias (unquoted) for the package. | 
Examples
import(dplyr, d)
df <- data.frame(a=1:3, b=4:6)
df %>% d$filter(a == 2)
This function imports/loads functions as in 'Python', i.e., “from package import function as alias”
Description
This function imports/loads functions as in 'Python', i.e., “from package import function as alias”
Usage
import_fun(package, fun, alias)
Arguments
| package | Package name (unquoted). | 
| fun | Function name (unquoted). | 
| alias | Alias (unquoted) for the function. | 
Examples
import_fun(dplyr, filter, fil)
df <- data.frame(a=1:3, b=4:6)
fil(df, a == 2)