Skip to content
R for the Rest of Us Logo

Advanced Markdown Text Formatting

This lesson is locked

Get access to all lessons in this course.

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

Add the Oregon Department of Education logo to the top of your report. You can find it at https://github.com/rfortherestofus/going-deeper/raw/master/slides/images/ode-logo.jpg

Add the following text (make sure you include the link, which points to https://www.oregon.gov/ode/pages/default.aspx ):

This is a report for the Oregon Department of Education on diversity in Oregon school districts.

Add the following text as a block quote:

The Oregon Department of Education fosters equity and excellence for every learner through collaboration with educators, partners, and communities.

Add a link to the source for mission statement above (https://www.oregon.gov/ode/about-us/Pages/default.aspx ) as a footnote.

Learn More

The RMarkdown cheatsheet is a great place to turn to for questions on formatting text. The second page has information on advanced markdown text formatting.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Atlang Mompe

Atlang Mompe

June 25, 2021

Hi David - I get these error messages when I try to run the code: > Error: unexpected '[' in "![" > > # Introduction > > This is a report for the Oregon Department of Education on diversity in Oregon school districts. Here is the mission statement for ODE: Error: unexpected symbol in "This is" > > > The Oregon Department of Education fosters equity and excellence for every learner through collaboration with educators, partners, and communities.^[Source: ODE Website] Error: unexpected '>' in ">"

David Keyes

David Keyes

June 26, 2021

Is this text in a code chunk? It seems like it likely is, but this is just text so it should just be in the text of your RMarkdown report. Let me know if that makes sense!

Atlang Mompe

Atlang Mompe

June 27, 2021

Ahh thank you, I had put it in the YAML - totally makes sense. It ran now.

Is there a reason to use the github version of remedy vs the CRAN version? https://cran.r-project.org/web/packages/remedy/index.html

If there is a CRAN version, I usually just use that. GitHub versions sometimes have changes that lead to code breaking.

Lauren McGuigan

Lauren McGuigan

January 24, 2022

Hi David - I'm getting stuck when trying to knit the document. It's giving me the following error:
"Error in contrib.url(repos, "source") : trying to use CRAN without setting a mirror Calls: ... withVisible -> eval -> eval -> install.packages -> contrib.url Execution halted"

I installed the remotes package then used remotes::install_github("ThinkR-open/remedy").

Any thoughts? I couldn't seemed to find any solutions online that helped me. Thank you.

David Keyes

David Keyes

January 24, 2022

Can you post the entire code for your RMarkdown document so I can see what that looks like? The easiest thing is to create a GitHub account (if you don't have one), copy your code into a gist, and then share the link.

Lauren McGuigan

Lauren McGuigan

January 24, 2022

https://gist.github.com/lcmcguigan20/ec7261ea48cd910a48dd960420551e16

Thank you

Lauren McGuigan

Lauren McGuigan

January 24, 2022

Also ... the "repos = "http://cran.us.r-project.org" was just added bc I was looking for different solutions online

David Keyes

David Keyes

January 25, 2022

I think I can help now! Check out this quick video and let me know if this works!

Lauren McGuigan

Lauren McGuigan

January 25, 2022

Thank you so much for your time with this. It worked! Should have known not to install packages there. Thanks again.

Rachel Nicholson

Rachel Nicholson

December 9, 2022

I am having trouble with knitting on all of my projects. I get the following error message: "Error while opening file. No such file or directory."

David Keyes

David Keyes

December 9, 2022

Can you provide a bit more context? I'm having trouble figuring out what's going on without a bit more info on your situation.

Rachel Nicholson

Rachel Nicholson

December 10, 2022

I actually, watched one of your previous videos posted above and it's working now! I had "install.packages" included that was preventing the knit. I am still having trouble with my personal project, but I asked about that in the week 11 assignment.

Ok, great! Charlie will get back to you on your assignment.

Is there a way to edit the size of the logo, like make it smaller for example?

Yep! Instead of adding logos in the text with the syntax, you also use the include_graphics() function from the knitr package. See more info here.