R: Difference between revisions
fix links |
Add a section for positron. |
||
| Line 23: | Line 23: | ||
RStudio-with-my-packages = rstudioWrapper.override{ packages = with rPackages; [ ggplot2 dplyr xts ]; }; | RStudio-with-my-packages = rstudioWrapper.override{ packages = with rPackages; [ ggplot2 dplyr xts ]; }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Positron == | |||
Currently, the easiest way to use positron with nix is with mkShell:<syntaxhighlight lang="nix"> | |||
let | |||
pkgs = import <nixpkgs> { }; | |||
in | |||
pkgs.mkShell { | |||
packages = [ | |||
# Positron | |||
pkgs.positron-bin | |||
# R & packages. | |||
pkgs.R | |||
pkgs.rPackages.httr | |||
pkgs.rPackages.ggplot2 | |||
# Python, ipykernel & packages. | |||
# pkgs.python313 | |||
# pkgs.python313Packages.ipykernel # NOTE: Required for python. | |||
# pkgs.python313Packages.pandas | |||
# pkgs.python313Packages.requests | |||
]; | |||
} | |||
</syntaxhighlight>Other utilities like rWrapper are not compatible. | |||
== Jupyter Notebook == | == Jupyter Notebook == | ||