Python: Difference between revisions
m fix broken link to pyproject docs |
Adds a section about using rPackages with rpy2 in python |
||
| Line 39: | Line 39: | ||
])) | ])) | ||
]; | ]; | ||
</syntaxhighlight> | |||
=== Using R packages in python with rpy2 === | |||
<syntaxhighlight lang="nix"> | |||
environment.systemPackages = with pkgs; [ | |||
# ... | |||
(python3.withPackages (python-pkgs: with python-pkgs; [ | |||
pandas | |||
requests | |||
rpy2 | |||
])) | |||
# don't use rWrapper.override | |||
rPackages.tidyverse | |||
rPackages.uwot | |||
]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||