@@ -22,8 +22,8 @@ using the help (`?import::from`).
2222
2323The typical way of using functionality exposed by a package in R scripts is to
2424load (and attach) the entire package with ` library() ` (or ` require() ` ). This can
25- have the ** undesirable effect of masking objects** in the user's search path and
26- can also make it difficult and ** confusing to identify** what functionality
25+ have the undesirable effect of masking objects in the user's search path and
26+ can also make it difficult and confusing to identify what functionality
2727comes from which package when using several ` library ` statements.
2828
2929The ` import ` package provides a simple alternative, allowing the user specify in
@@ -36,7 +36,6 @@ import those functions only:
3636import :: from(Hmisc , impute , nomiss )
3737```
3838
39-
4039## Installation and Documentation
4140
4241Install the release version of ` import ` from CRAN using ` pak ` or
@@ -47,15 +46,17 @@ pak::pak("import")
4746 # or
4847install.packages(" import" )
4948```
50- Documentation (for the main branch, which should match the CRAN release)
51- is available on:
49+
50+ A documentation site is available on GitHub. For the ` main ` branch, which
51+ usually matches the CRAN release, the link is:
5252
5353- https://rticulate.github.io/import/
5454
5555
56- ### Development Versions
56+ ### Installing from GitHub
5757
58- Install the development version of ` import ` from GitHub using ` pak ` :
58+ Install the either the ` main ` (release) or the ` dev ` (development) branch of
59+ ` import ` from GitHub using ` pak ` :
5960
6061``` R
6162# The main branch typically matches the CRAN release
@@ -65,7 +66,7 @@ pak::pak("rticulate/import")
6566pak :: pak(" rticulate/import@dev" )
6667```
6768
68- Documentation for the development version is available on:
69+ Documentation for the ` dev ` branch is available on:
6970
7071- https://rticulate.github.io/import/dev/
7172
@@ -74,9 +75,9 @@ Documentation for the development version is available on:
7475
7576### Importing functions from R packages
7677
77- The most basic use case is to import a few functions from package (here the
78- ` psych ` package). We start by using ` import::what() ` to list available
79- functions.
78+ The most basic use case is to import a few functions from package using
79+ ` import::from() ` . Here we import from the ` psych ` package. We start by using
80+ ` import::what() ` to list available functions.
8081
8182``` R
8283import :: what(psych ) | > head()
@@ -115,6 +116,7 @@ These and other examples are discussed in more detail in the
115116[ Importing from Packages] ( https://rticulate.github.io/import/articles/import.html#importing-from-packages )
116117section of the package vignette.
117118
119+
118120### Importing Functions from "Module" Scripts
119121
120122The ` import ` package allows R files to be used as "modules" from which functions
0 commit comments