Show More
@@ -61,10 +61,31 b' class RMagicError(ValueError):' | |||
|
61 | 61 | |
|
62 | 62 | @magics_class |
|
63 | 63 | class RMagics(Magics): |
|
64 | """A set of magics useful for interactive work with R via rpy2. | |
|
65 | """ | |
|
64 | 66 | |
|
65 | 67 | def __init__(self, shell, Rconverter=np.asarray, |
|
66 | 68 | pyconverter=np.asarray, |
|
67 | 69 | cache_display_data=False): |
|
70 | """ | |
|
71 | Parameters | |
|
72 | ---------- | |
|
73 | ||
|
74 | shell : IPython shell | |
|
75 | ||
|
76 | Rconverter : callable | |
|
77 | To be called on return values from R before returning | |
|
78 | to ipython. | |
|
79 | ||
|
80 | pyconverter : callable | |
|
81 | To be called on values in ipython namespace before | |
|
82 | assigning to variables in rpy2. | |
|
83 | ||
|
84 | cache_display_data : bool | |
|
85 | If True, the published results of the final call to R are | |
|
86 | cached in the variable 'display_cache'. | |
|
87 | ||
|
88 | """ | |
|
68 | 89 | super(RMagics, self).__init__(shell) |
|
69 | 90 | self.cache_display_data = cache_display_data |
|
70 | 91 |
General Comments 0
You need to be logged in to leave comments.
Login now