R: Difference between revisions
imported>Michael-J-Ward m Fix link to the R user guide in nixpkgs manual |
fix links |
||
(One intermediate revision by one other user not shown) | |||
Line 77: | Line 77: | ||
== R with Flakes and nix-direnv== | == R with Flakes and nix-direnv== | ||
R and accompanying R-packages can be installed using a [ | R and accompanying R-packages can be installed using a [[Flakes | Flake]] and then managed/activated with [https://github.com/nix-community/nix-direnv nix-direnv] to create a reproducible development environment. After the initial setup of nix-direnv (instructions provided on the GitHub README), there is a [https://github.com/nix-community/nix-direnv/blob/master/templates/flake/flake.nix flake template] provided by the nix-direnv maintainers to get started. Run <code>nix flake new -t github:nix-community/nix-direnv .</code> to initialize the flake template in your current directory. This will create a `flake.nix` file that can be edited to setup the R-environment: | ||
<syntaxhighlight lang = "nix" > | <syntaxhighlight lang = "nix" > | ||
Line 142: | Line 142: | ||
== Other Editors == | == Other Editors == | ||
'''with vim''' - [ | '''with vim''' - [[Nvim-r | nvim-r]] | ||
Line 166: | Line 166: | ||
However officer does work if installed using the conventional install.packages() which can be enabled as discussed in | However officer does work if installed using the conventional install.packages() which can be enabled as discussed in | ||
https://churchman.nl/tag/r/ | https://churchman.nl/tag/r/ | ||
[[Category:Languages]] |