-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiling the document #6
Comments
Hi Robert, You are correct about the name of the function, it is The error message you are getting from pandoc sounds as if the script Cheers, |
While researching this error I came across this issue in the pandoc repo: jgm/pandoc#1096. This may or may not be related. Could you confirm that you are using a pandoc version that incorporates the fix for this? As far as I can see the first release of pandoc that includes this was 1.12.4. |
I was already checking if I had the latest versions.
I installed these two with pip install. I don't know which one (or maybe both) was needed but the python error seems to be resolved. Everything is not solved because when I now run pandoc.exe: Could not fetch figure/distributions2.ogg
figure/distributions2.ogg: openBinaryFile: does not exist (No such file or directory)
Error in (function (input, format, ext, cfg) : conversion failed
In addition: Warning messages:
1: In readLines(con) : incomplete final line found on 'example.md'
2: running command 'pandoc --self-contained --webtex --template=include/report.html5 -c include/buttondown.css --default-image-extension=gif --filter=include/equation.py --include-in-header=include/equation.js --include-in-header=include/affiliation.js --standalone --smart --normalize --toc --highlight-style=tango -f markdown -t html5 -o example.html "example.utf8md"' had status 67 I checked and there's no distributions2.ogg file in the figure folder. |
pandocfilters is the one I think. That is used by the filter script but I evidently forgot to add it to the requirements. Regarding the missing distributions2.ogg file, do you have ffmpeg installed? There may be additional error messages from knitr hiding in example.md that could shed some light on what went wrong. |
I solved it! threeDists <- function(df, x=seq(-6,6, by=0.1)){
yNorm <- dnorm(x)
yCauchy <- dcauchy(x)
yt <- dt(x, df=df)
par(bg="white")
plot(x, yNorm, type="l", ylab="Density")
lines(x, yt, col=2)
lines(x, yCauchy, col=4)
legend("topright", legend=c("standard normal", paste0("t (df = ", df, ")"), "Cauchy"),
col=c(1,2,4), lty=1)
}
png(file="figure/threeDist%02d.png", width=500, heigh=500)
lapply(1:20, threeDists)
dev.off()
shell("imConvert -delay 40 figure/threeDist*.png dist3.gif") Now the html, docx and pdf files are created. |
Thanks for working through these issues. I have closed this as you immediate problem seems to be resolved. If you have any additional information on the issues with the HTML version I'd be happy to try and resolve that as well. |
Hi,
I had some problems compiling the document.
First in the documentation it's said that we have to compile to markdown with the command
knitr("example.Rmd")
that command gave an error. I think the command should beknit("example.Rmd")
Second when I try to compile the markdown file with the command
pandoc('example.md')
I get the error messages:With the command
Pandoc.convert('example.md',format='pdf')
however I was able to compile to pdfGreat Tutorial by the way thank you very much!
Regards,
Robert
The text was updated successfully, but these errors were encountered: