JeppeX (talk | contribs)
m A note on knitr: : add example
DHCP (talk | contribs)
m prefix shell command with "$"; fix formatting
 
Line 14: Line 14:
If you with to use `nix-shell` to generate an on-the-fly environment with some R packages, the command is similar:
If you with to use `nix-shell` to generate an on-the-fly environment with some R packages, the command is similar:


<syntaxhighlight lang="sh">
<syntaxhighlight lang="console">
nix-shell --packages 'rWrapper.override{packages = [ rPackages.ggplot2 ];}'
$ nix-shell --packages 'rWrapper.override{packages = [ rPackages.ggplot2 ];}'
</syntaxhighlight>
</syntaxhighlight>


Line 227: Line 227:
When the R package "officer" has been installed from the Nix package manager, "save_as_docx" does not work:
When the R package "officer" has been installed from the Nix package manager, "save_as_docx" does not work:


<pre>
Error in write_xml.xml_document(private$doc, file = private$filename) :  
Error in write_xml.xml_document(private$doc, file = private$filename) :  
Error closing file
Error closing file
Line 235: Line 236:
2: In write_xml.xml_document(private$doc, file = private$filename) :
2: In write_xml.xml_document(private$doc, file = private$filename) :
Permission denie [1501]
Permission denie [1501]
</pre>


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