Hi Rstudio Community,
I am trying to make a paper in Rmarkdown. It is mandatory for me to do it with the diagnostic and interventional imaging. I am doing like this:
---
title: "reserach document"
author: "Mister and miss X"
date: '`r format(Sys.time(), "%d %B, %Y")`'
#header-includes:
output:
#word_document:
# fig_caption: yes
# toc: true
pdf_document:
fig_caption: yes
keep_tex: no
number_sections: yes
toc: false
bibliography: biblio.bib
csl: diagnostic-and-interventional-imaging.csl
---
here's my option to knit:
library(thesisdown)
require("knitr")
knitr::opts_knit$set(root.dir = rprojroot::find_rstudio_root_file())
knitr::opts_chunk$set(echo = FALSE)
when I knit the document I have the following error in the terminal (I anonymized intentionally the user/password/server/port) :
/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS dose_study_FG.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output dose_study_FG.tex --lua-filter /Library/Frameworks/R.framework/Versions/4.1/Resources/library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/4.1/Resources/library/rmarkdown/rmarkdown/lua/latex-div.lua --self-contained --number-sections --highlight-style tango --pdf-engine pdflatex --variable graphics --variable 'geometry:margin=1in' --citeproc
output file: dose_study_FG.knit.md
pandoc: HttpExceptionContentWrapper {unHttpExceptionContentWrapper = InvalidProxyEnvironmentVariable "https_proxy" "https://user:passwork@server:port"}
Erreur : pandoc document conversion failed with error 1
If I comment the csl line in the YAML section it works but without the right format (this behavior is OK).
If I knit the document with my home network (so without institutional proxy) it works.
So,I have a conflict with proxy parameters.
I work on macOS system and I configure the ~/.Renviron file with the right proxy parameters as I can upload and install package on CRAN.
Could you please help me to solve this problem.
Thanks a lot.