seankross / postcards

💌 Create simple, beautiful personal websites and landing pages using only R Markdown.
Other
551 stars 87 forks source link

Templates not found? #17

Closed jtleek closed 3 years ago

jtleek commented 3 years ago

I'm running postcard on rstudio.cloud (session info below). For some reason the template isn't found? I've tried both remotes::install_github("seankross/postcards@main") and remotes::install_github("seankross/postcards#8")

Screenshot 2020-12-10 at 9 29 15 AM

Might be something silly but can't seem to figure out how to get the templates to be discoverable. Could be related to capitalization though?

https://community.rstudio.com/t/rstudio-cloud-installed-rmarkdown-package-does-not-show-up-in-templates/48211

Pandoc version

‘2.7.3’

Session Info

R version 4.0.3 (2020-10-10) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.7 LTS

Matrix products: default BLAS: /usr/lib/atlas-base/atlas/libblas.so.3.0 LAPACK: /usr/lib/atlas-base/atlas/liblapack.so.3.0

locale: [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
[4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
[7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

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

other attached packages: [1] postcards_0.1.0

loaded via a namespace (and not attached): [1] compiler_4.0.3 prettyunits_1.1.1 remotes_2.2.0 tools_4.0.3
[5] testthat_3.0.0 digest_0.6.27 pkgbuild_1.1.0 pkgload_1.1.0
[9] evaluate_0.14 memoise_1.1.0 rlang_0.4.9 cli_2.2.0
[13] rstudioapi_0.13 curl_4.3 yaml_2.2.1 xfun_0.19
[17] withr_2.3.0 knitr_1.30 desc_1.2.0 rprojroot_2.0.2
[21] glue_1.4.2 R6_2.5.0 processx_3.4.5 fansi_0.4.1
[25] rmarkdown_2.5 sessioninfo_1.1.1 callr_3.5.1 magrittr_2.0.1
[29] ps_1.5.0 htmltools_0.5.0 ellipsis_0.3.1 assertthat_0.2.1 [33] crayon_1.3.4

jtleek commented 3 years ago

Yup it was a capitalization issue. This works for me (trestles lower case).

rmarkdown::draft("index.Rmd", "trestles", package = "postcards")

seankross commented 3 years ago

Maybe related: https://github.com/seankross/postcards/runs/1535365294