problem with PDF

Hello everyone. I am trying to make the resume with R Markdown and I can print it in HTML but not in PDF. I tried to change the "output" in from "pagedown :: html_resume:" to "pdf_document" but it doesn't load me and this error screen appears:
"Error in yaml::yaml.load(..., eval.expr = TRUE) :
Scanner error: mapping values are not allowed in this context at line 4, column 21
Calls: ... parse_yaml_front_matter -> yaml_load ->
Esecuzione interrotta"

What can i do?


title: "Andrea "
author: Lijia Yu
date: "r Sys.Date()"
output:
pagedown::html_resume:

or

output: pdf_document:

Did you accidentally leave in both output statements?

what do you mean exactly for statements?
if i run this:
title: "Andrea "
author: Lijia Yu
date: " r Sys.Date() "
output:
pagedown::html_resume:

it works but it is in HTML and not in PDF.
If i run this:

title: "Andrea "
author: Lijia Yu
date: " r Sys.Date() "
output: pdf_document:
it gives me the error

Take off the colon after output: pdf_document:

I did but I get this error
Error in yaml::yaml.load(..., eval.expr = TRUE) :
Parser error: while parsing a block mapping at line 1, column 1 did not find expected key at line 7, column 5
Calls: ... parse_yaml_front_matter -> yaml_load ->
Execution aborted

When I ran the code you posted without the extra colon, it ran fine. So probably the problem is in something you haven't posted.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.