Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Noissue - Update virtualenv instructions
  • Loading branch information
rhowell7 committed Jan 29, 2019
1 parent c20aa0a commit 4129547
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.rst
Expand Up @@ -211,20 +211,23 @@ instantiate (such as exceptions).
Using the library with R
------------------------

Clone the repo to your local machine. Then create a virtualenv and install
python-abp there::
``python-abp`` can be installed directly onto your system, or in a virtual
environment. To install it directly onto your system::

$ cd python-abp
$ virtualenv env
$ pip install --upgrade .
$ pip install --upgrade python-abp

To install it in a virtual environment::

$ virtualenv venv
$ venv/bin/pip install --upgrade python-abp


Then import it with ``reticulate`` in R:

.. code-block:: R
> library(reticulate)
> use_virtualenv("~/python-abp/env", required=TRUE)
> use_virtualenv("~/python-abp/env", required=TRUE) # If using virtualenv
> abp <- import("abp.filters.rpy")
Now you can use the functions with ``abp$functionname``, e.g.
Expand Down

0 comments on commit 4129547

Please sign in to comment.