Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: README.rst

Issue 30023558: Noissue - Update R documentation (Closed) Base URL: https://hg.adblockplus.org/python-abp
Patch Set: Created March 5, 2019, 9:54 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.rst
===================================================================
--- a/README.rst
+++ b/README.rst
@@ -212,23 +212,33 @@
------------------------
``python-abp`` can be installed directly onto your system, or in a virtual
-environment. To install it directly onto your system::
+environment. To install it directly onto your system with pip::
$ pip install --upgrade python-abp
-To install it in a virtual environment::
+Or install onto your system from source::
Vasily Kuznetsov 2019/03/06 17:18:19 Perhaps we could make this a bit more comprehensiv
rhowell 2019/03/07 03:59:07 Seems like it's starting to get complicated trying
+
+ $ cd python-abp
+ $ pip install --upgrade .
Vasily Kuznetsov 2019/03/06 17:18:19 A simpler version would be: $ pip install -U
rhowell 2019/03/07 03:59:07 Done.
+
+To install ``python-abp`` in a virtual environment with pip::
$ virtualenv venv
$ venv/bin/pip install --upgrade python-abp
+Or install from source in a virtualenv::
+
+ $ cd python-abp
+ $ virtualenv venv
+ $ venv/bin/pip install --upgrade .
Then import it with ``reticulate`` in R:
.. code-block:: R
> library(reticulate)
- > use_virtualenv("~/python-abp/env", required=TRUE) # If using virtualenv
+ > use_virtualenv("~/path/to/python-abp/venv", required=TRUE) # If using virtualenv
> abp <- import("abp.filters.rpy")
Now you can use the functions with ``abp$functionname``, e.g.
-``abp.line2dict("@@||g.doubleclick.net/pagead/$subdocument,domain=hon30.org")``.
+``abp$line2dict("@@||g.doubleclick.net/pagead/$subdocument,domain=hon30.org")``.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld