How to install python rpy2 so it sees installed r packages?

try (py.rpy2.override {extraRPackages = with rPackages; [ metafor data_table ];})

PS when you say “didn’t work”, please be specific. It’s basic troubleshooting etiquette, and also gets others to understand if you applied the fix incorrectly vs if the suggested fix itself was incorrect. If there’s an error, give the full error without truncation.

1 Like