Code : Tout sélectionner
copy "D:\BIOTOPE\RÉGION OUTRE MER - Asotheque\Asotheque.xlsx" "D:\OneDrive - BIOTOPE\Personnel\R\Rmarkdown\Html_wiki\Asotheque.xlsx"
C:\Users\asoulard\Documents\R\R-4.0.2\bin\R.exe CMD BATCH "D:\OneDrive - BIOTOPE\Personnel\R\Rmarkdown\Html_wiki\Asotheque.R"
J'utilise le copy car sinon j'ai des problèmes d'encodage dans R quand je passe par le .bat.
mon fichier R génère un fichier Rmarkdown avec sink() et test ensuite de knit mon fichier .Rmd
J'obtiens :
Code : Tout sélectionner
rmarkdown::render("Asotheque.Rmd",output_format = "html_document",output_file = "D:/OneDrive - BIOTOPE/Personnel/R/Rmarkdown/Html_wiki/Asotheque.html")
Erreur : pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
Exécution arrêtée
Pourtant quand je rentre manuellement dans mon fichier Rmarkdown, le knit fonctionne très bien. Et quand j'utilise mon fichier R sans passer par le .bat, cela fonctionne aussi.