cynkra / indiedown Goto Github PK
View Code? Open in Web Editor NEWIndividual RMarkdown Templates
Home Page: https://indiedown.cynkra.com
License: Other
Individual RMarkdown Templates
Home Page: https://indiedown.cynkra.com
License: Other
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?
We are looking for a language dependent date formatting that does not depend on the system. Current cd_format_date.R
works differently on every system. Can we find a solution that does not depend on the system?
it is mentioned in the walkthrough
See https://github.com/cynkra/cynkrathis/tree/main/pkgdown/favicon for how this is done in {cynkrathis}.
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
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
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.
Is there anything I am missing to configure to get the right result?
Thanks,
Carlos
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.
Could explain in more detail where these fonts are finally used und picked up within the .Rmd
.
https://cynkra.github.io/indiedown/reference/use_indiedown_gfonts.html
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.
Should we use a "proper" License, like MIT?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.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
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.
https://github.com/cynkra/indiedown/runs/4500898894?check_suite_focus=true#step:6:162
Check via Sys.getenv("R_COVR")
, it will be "true"
when covr is active.
In the README
devtools::install_github("cynkra/indiedown") -> remotes::install_github("cynkra/indiedown")
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?
So that text after \cleardoublepage
actually starts on an odd page.
Perhaps optionally?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.