Problem loading package

Issue #405 resolved
GregS created an issue

Please advise.

Trying to load R package aod I get the following error:

In [6]: from rpy2.robjects.packages import importr

In [7]: aod = importr('aod')
RRuntimeError                             Traceback (most recent call last)
<ipython-input-7-72a88f9c2465> in <module>()
----> 1 aod = importr('aod')

/Users/gregsilverman/anaconda/envs/evaluate_it/lib/python2.7/site-packages/rpy2/robjects/packages.pyc in importr(name, lib_loc, robject_translations, signature_translation, suppress_messages, on_conflict, symbol_r2python, symbol_check_after, data)
    451     if _package_has_namespace(rname, 
    452                               _system_file(package = rname)):
--> 453         env = _get_namespace(rname)
    454         version = _get_namespace_version(rname)[0]
    455         exported_names = set(_get_namespace_exports(rname))

RRuntimeError:  loadNamespace(name) でエラー:  aod という名前のパッケージはありません 

NB: Package is loaded in R-environment (see image).

Screen Shot 2017-04-27 at 3.13.58 PM.png

Comments (3)

  1. GregS reporter

    Btw, why are Kanji characters being thrown in the RRuntime error? This is the first I've seen this happening.

  2. Log in to comment