{ "info": { "author": "Noah Hoffman", "author_email": "noah.hoffman@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Operating System :: POSIX", "Programming Language :: Python :: 2.7" ], "description": "=======\n rvenv\n=======\n\nInstall and manage R packages in a python virtualenv.\n\nWhy?\n====\n\nI need someplace to put project-specific R packages. The python\nvirtualenv I inevitably have installed in any given\nproject/analysis/pipeline seems as good a place as any.\n\nInstallation\n============\n\nInstall to an active virtualenv using pip (or simply copy ``rvenv`` to\n``$VIRTUAL_ENV/bin``)::\n\n % virtualenv r-env\n % source r-env/bin/activate\n % pip install rvenv\n\nOr to install from the GitHub repository::\n\n % pip install git+https://github.com/nhoffman/rvenv.git\n\nYou can use the ``rvenv`` script from the command line to install\npackages to ``$VIRTUAL_ENV/lib/R.%v-library``::\n\n % rvenv dplyr\n\nIncluding the following lines in an R script will set the library path\nto use locally-installed packages::\n\n #!/usr/bin/env Rscript\n if(Sys.getenv(\"VIRTUAL_ENV\") == \"\"){ stop(\"An active virtualenv is required\") }\n source(file.path(Sys.getenv('VIRTUAL_ENV'), 'bin', 'rvenv'))\n\nLoading ``rvenv`` as above prepends ``$VIRTUAL_ENV/lib/R.%v-library``\nto the library search path. See example script ``script.R``\n\nTo start an interactive R session with the library path defined::\n\n % eval $(rvenv -e)\n % R\n\nAnd to define the library path within an already running R session::\n\n > Sys.setenv(VIRTUAL_ENV='some/path/to/virtualenv')\n > source(file.path(Sys.getenv(\"VIRTUAL_ENV\"), \"bin\", \"rvenv\"))\n\n\nusage\n=====\n\n::\n\n usage: ./rvenv [-h] [-r REQUIREMENTS] [--rm] [-U] [-l] [-e] [-R REPOS] [-v]\n\t\t [packages [packages ...]]\n\n Install R packages to a python virtualenv\n\n Include the following in an R script to add \"$VIRTUAL_ENV/lib/R.%v-library\"\n to the library search path:\n\n #!/usr/bin/env Rscript\n if(Sys.getenv(\"VIRTUAL_ENV\") == \"\"){ stop(\"An active virtualenv is required\") }\n source(file.path(Sys.getenv(\"VIRTUAL_ENV\"), \"bin\", \"rvenv\"))\n\n Also see https://github.com/nhoffman/rvenv\n\n positional arguments:\n packages one or more package names\n\n optional arguments:\n -h, --help show this help message and exit\n -r REQUIREMENTS, --requirements REQUIREMENTS\n\t\t\t a file listing packages\n --rm remove listed packages\n -U, --update update existing packages\n -l, --list list packages installed locally\n -e, --environ print shell command to set R_LIBS\n -R REPOS, --repos REPOS\n\t\t\t value for \"install.packages(repos)\" [http://cran.fhcrc.org/]\n -v, --verbose be verbose when installing packages\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nhoffman/rvenv", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "rvenv", "package_url": "https://pypi.org/project/rvenv/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rvenv/", "project_urls": { "Homepage": "https://github.com/nhoffman/rvenv" }, "release_url": "https://pypi.org/project/rvenv/0.2/", "requires_dist": null, "requires_python": "", "summary": "Install and manage R packages in a python virtualenv", "version": "0.2" }, "last_serial": 1819182, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "417836c86a07e75d2d81183dc402f26b", "sha256": "e9ac9bf3db0c3128610f474fb1305aa03c138d73e363d400868bf853566dd73d" }, "downloads": -1, "filename": "rvenv-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "417836c86a07e75d2d81183dc402f26b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3884, "upload_time": "2015-11-16T19:15:25", "url": "https://files.pythonhosted.org/packages/d0/97/956f6895623483ef47651a55c084aa6450aa3b41536e60b3f3c74517eb2a/rvenv-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bcbae22306bc51bcef5aecb5f32f334a", "sha256": "e8c3ac15f4a6587da57646e52772a48724d3c77094eefb06cef3e2392a6dbafc" }, "downloads": -1, "filename": "rvenv-0.1.tar.gz", "has_sig": false, "md5_digest": "bcbae22306bc51bcef5aecb5f32f334a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3418, "upload_time": "2015-11-16T19:15:30", "url": "https://files.pythonhosted.org/packages/d1/33/1e71ce5261da18019cdcdbaf464889e8114c66559d76bdcbfec5e2d789a4/rvenv-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "96d3dbe3fa72fa7156d9cec9b622df74", "sha256": "1d65280b1cdcb3feff8e1776efd32e790bf081dfdeb67fd5ea3d8e293be59dff" }, "downloads": -1, "filename": "rvenv-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "96d3dbe3fa72fa7156d9cec9b622df74", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3882, "upload_time": "2015-11-16T19:20:47", "url": "https://files.pythonhosted.org/packages/20/dd/89f91bdb09010b7fec16214106dcc831dcafc2fe500afacacb1dc3611c4a/rvenv-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9b2770f251a7cca2bda163aa04c3cbba", "sha256": "6bb88686d7489b63158d510181752bdd415581828fac3b725355912fad493e56" }, "downloads": -1, "filename": "rvenv-0.2.tar.gz", "has_sig": false, "md5_digest": "9b2770f251a7cca2bda163aa04c3cbba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3436, "upload_time": "2015-11-16T19:20:53", "url": "https://files.pythonhosted.org/packages/c3/eb/598ad664124831c0f012006e76c6c3bfb21c5f801d6b293fdafb269cb2b8/rvenv-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "96d3dbe3fa72fa7156d9cec9b622df74", "sha256": "1d65280b1cdcb3feff8e1776efd32e790bf081dfdeb67fd5ea3d8e293be59dff" }, "downloads": -1, "filename": "rvenv-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "96d3dbe3fa72fa7156d9cec9b622df74", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3882, "upload_time": "2015-11-16T19:20:47", "url": "https://files.pythonhosted.org/packages/20/dd/89f91bdb09010b7fec16214106dcc831dcafc2fe500afacacb1dc3611c4a/rvenv-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9b2770f251a7cca2bda163aa04c3cbba", "sha256": "6bb88686d7489b63158d510181752bdd415581828fac3b725355912fad493e56" }, "downloads": -1, "filename": "rvenv-0.2.tar.gz", "has_sig": false, "md5_digest": "9b2770f251a7cca2bda163aa04c3cbba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3436, "upload_time": "2015-11-16T19:20:53", "url": "https://files.pythonhosted.org/packages/c3/eb/598ad664124831c0f012006e76c6c3bfb21c5f801d6b293fdafb269cb2b8/rvenv-0.2.tar.gz" } ] }