Giter Site home page Giter Site logo

Comments (2)

robjhyndman avatar robjhyndman commented on July 18, 2024

Clicking the knit button in Rstudio will actually just generate the command

rmarkdown::render('file.Rmd', encoding = 'UTF-8')

so perhaps there is something wrong with the render() command you are using. You can see what knitr is using by looking at the Rmarkdown tab in Rstudio. In the latest version of Rstudio, you need to turn this on in the Global Options under Rmarkdown/Advanced then check "Display render command".

I would also make sure you update -- you're using a relatively old version of R.

It is also worth testing it on a very simple example such as the following one.

---
title: Note to self
author: Marie Curie
output: MonashEBSTemplates::memo
---

Testing

from monashebstemplates.

farhadsalimi avatar farhadsalimi commented on July 18, 2024

Thanks so much for your quick reponse Rob.
The issue was the output_format = "pdf_document" in the render function, I removed that and it's all good. I should stop copying and pasting my old code :)
I plan to update R for a long time now but I am always in the middle of a big project and am scared of code breaks. We will do it soon though!
I work at the Monash Registry Science Unit and have adopted your templates for our reports, thanks for making this package available to everyone!

from monashebstemplates.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.