R: Difference between revisions
imported>Hazelfire Removed accidental redundant part of code |
imported>Reblackwell Officer package does not work unless installed with install.packages() |
||
Line 89: | Line 89: | ||
* [https://nixos.org/nixpkgs/manual/#r-packages R user guide in nixpkgs manual] | * [https://nixos.org/nixpkgs/manual/#r-packages R user guide in nixpkgs manual] | ||
== Officer package == | |||
When the R package "officer" has been installed from the Nix package manager, "save_as_docx" does not work: | |||
Error in write_xml.xml_document(private$doc, file = private$filename) : | |||
Error closing file | |||
Calls: save_as_docx ... print.rdocx -> <Anonymous> -> write_xml -> write_xml.xml_document | |||
In addition: Warning messages: | |||
1: In write_xml.xml_document(private$doc, file = private$filename) : | |||
Permission denie [1501] | |||
2: In write_xml.xml_document(private$doc, file = private$filename) : | |||
Permission denie [1501] | |||
However officer does work if installed using the conventional install.packages() which can be enabled as discussed in | |||
https://churchman.nl/tag/r/ |