Giter VIP home page Giter VIP logo

indiedown's People

Contributors

andreranza avatar angelicambg avatar christophsax avatar indrajeetpatil avatar jawond avatar krlmlr avatar layalchristine24 avatar mbannert avatar tschiefer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jimsforks

indiedown's Issues

Editing the default yaml fields

Hi, I was looking through the tutorial and I'm a bit confused on how to edit the default YAML fields for the template. For example, if I change the title from "Report-Title" to "My New Title" in default.yaml, reinstall the package with devtools::install("mydown"), and open the custom template, the YAML still has the title as "Report-Title". However, if I edit inst/rmarkdown/templates/report/skeleton/skeleton.Rmd that will change the default title, but it is not listed in the instructions as one of the 3 customization points (inst/indiedown/default.yaml, inst/indiedown/preamble.tex, pre_processor.R). Would you be able to clarify how the fields should be customized?

Warning prints onto PDF

When I create the mydown package as in the example, and then use the template without any editing, I'm getting an R code warning printed at the top

Screenshot 2022-01-14 170908

sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.0.4  fastmap_1.1.0   mydown_0.1      htmltools_0.5.2 tools_4.0.4     yaml_2.2.1      rmarkdown_2.11  knitr_1.36     
[9] xfun_0.23       digest_0.6.27   rlang_0.4.10    evaluate_0.14 

yaml parameters in preamble.tex

Hi,
in the first place, thanks for creating this package!

I'm trying to add headers and footers to my template, for which I'm adding the below code into preamble.tex:

%fancy headers
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhead[L]{$title$}
\fancyhead[R]{ }
\fancyfoot[L]{ }
\fancyfoot[C]{ }
\fancyfoot[R]{\thepage}

In this part of the document, I would like to add the title and author, for which I would like to use YAML parameters from the Rmd file. According to what I've found here, this can be accomplished by passing the YAML parameters within $$ in LaTeX (e.g. $title$). However, when I add the code into preamble.tex, I get literally title printed on the pdf file (instead of the value of the title parameter).

Is there anything I am missing to configure to get the right result?
Thanks,
Carlos

remove tidyverse call from template

Currently, {indiedown} does not depend on {tidyverse} in the technical sense that it imports, depends or suggests {tidyverse}, but the standard template calls library(tidyverse).

I suggest to remove this from the template since many people who even use the tidyverse packages are only using specific package like {dplyr}, {purrr} or {ggplot2}.

Let me know in case I may create a PR for this.

Adjusted settings not affecting custom template

On the github/development version of indiedown, changes to the .yaml file and using a different Google font do not appear to affect the final markdown template or output file. I have tried a clean installation of the package, adjusting the font to 24pt, and using the open sans font (google id: "open-sans"). After rebuilding the package with devtools::install and restarting R, the custom markdown template does not produce an output file with a different font or font size.

License

Should we use a "proper" License, like MIT?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/R-CMD-check-dev.yaml
  • actions/checkout v4
  • r-lib/actions v2
  • actions/checkout v4
  • actions/checkout v4
  • ubuntu 22.04
  • ubuntu 22.04
  • ubuntu 22.04
  • ubuntu 22.04
.github/workflows/R-CMD-check.yaml
  • actions/checkout v4
  • actions/checkout v4
  • actions/checkout v4
  • actions/checkout v4
  • actions/checkout v4
  • r-lib/actions v2
  • actions/checkout v4
  • ubuntu 22.04
  • ubuntu 22.04
  • ubuntu 22.04
.github/workflows/check/action.yml
  • r-lib/actions v2
.github/workflows/fledge.yaml
  • actions/checkout v4
.github/workflows/install/action.yml
  • r-lib/actions v2
  • r-lib/actions v2
  • r-lib/actions v2
.github/workflows/lock.yaml
  • dessant/lock-threads v4
.github/workflows/pkgdown-deploy/action.yml
  • nick-fields/retry v2
.github/workflows/pkgdown.yaml
  • actions/checkout v4
.github/workflows/pr-commands.yaml
  • actions/checkout v4
  • actions/checkout v4
  • ubuntu 22.04
  • ubuntu 22.04
.github/workflows/revdep.yaml
  • actions/checkout v4
  • actions/checkout v4
  • r-lib/actions v2
  • ubuntu 22.04
  • ubuntu 22.04
  • ubuntu 22.04
.github/workflows/style/action.yml
  • actions/cache v3
.github/workflows/update-snapshots/action.yml
  • peter-evans/create-pull-request v5

Use custom LaTeX template

derived from default LaTeX template? This removes one degree of freedom in the things we need to test.

Current problem: The included template always loads xcolor. We can't pass options to that package, it's too late. This affects svgnames (which are not available if colorlinks=false) and the table option that loads colortbl.

Upstream: jgm/pandoc#6524.

Maybe we can locate the default template included with pandoc, and tweak it? It's in /usr/share/pandoc/data/templates/default.latex on my system, no idea about macOS or Windows.

Proper twocolumn mode

twocolumn: true is inferier to the multicol package. The latter does proper balancing out of the box but needs a few LaTeX tweaks. Should we host those tweaks here, with documentation?

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.