Code Monkey home page Code Monkey logo

Comments (9)

ismayc avatar ismayc commented on August 11, 2024

Can you share your repository or provide a reproducible example with me? I can't reproduce this error.

from thesisdown.

ismayc avatar ismayc commented on August 11, 2024

You can put your abstract in the file name specified there to have it build the abstract. Do you have a 00-abstract.Rmd containing your abstract?

from thesisdown.

raffdoc avatar raffdoc commented on August 11, 2024

There is no error produced when I compile pdf file. It just ignores r code in 00-abstract.Rmd.
In your example YAML you have following comment
If you are creating a PDF you'll need to write your preliminary content here or use code similar to line 20 for the files. If you are producing in a different format than PDF, you can delete or ignore lines 20-31 in this YAML header. abstract: > r if(knitr:::is_latex_output()) paste(readLines("00-abstract.Rmd"), collapse = ' ')
So I have calculations in my abstract (R code for statistics, etc) that is ignored by the compilation.
I would like to compile it with knitr.
Am I clear?
screen shot 2017-05-27 at 21 55 53

from thesisdown.

ismayc avatar ismayc commented on August 11, 2024

Currently, the abstract for a PDF is designed to not have any R code embedded into it viareadLines. Can you load your R code in index.Rmd?

from thesisdown.

raffdoc avatar raffdoc commented on August 11, 2024

You mean the abstract part to YAML header, or in the body of index.Rmd?

from thesisdown.

ismayc avatar ismayc commented on August 11, 2024

Place the R chunk you are loading in the body of the index.Rmd. The index.Rmd should load first before the abstract Rmd file. Additionally you may need to look into the template.tex file or the reedthesis.cls file to ensure that the abstract is being loaded in the spot you wish.

from thesisdown.

raffdoc avatar raffdoc commented on August 11, 2024

Dear @ismayc it worked, I just put abstract with r code chunks into the body of index.Rmd.
Than you very much for support.

from thesisdown.

ismayc avatar ismayc commented on August 11, 2024

You're welcome! Thanks for bringing this up!

from thesisdown.

github-actions avatar github-actions commented on August 11, 2024

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org whenever possible) and link to this issue. If a reprex is not applicable, recording a short Loom video showing what you are seeing can go a long way in helping to diagnose problems.

from thesisdown.

Related Issues (20)

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.