This error is generally thrown when you used amaRyaml
instead of "amaRyaml"
. I explained that above. Did you really retried adding the quotes "
around ?
rmarkdown is working fine I believe, for rticles
# create temp dir
dir.create(tmp_dir <- tempfile())
# Empty
list.files(tmp_dir)
#> character(0)
# Create template
xfun::in_dir(tmp_dir, {
rmarkdown::draft("Test.Rmd", template = "acm", package = "rticles", edit = FALSE)
})
# It is there
list.files(tmp_dir, recursive = TRUE)
#> [1] "Test/acm-sig-proceedings.csl" "Test/acm_proc_article-sp.cls"
#> [3] "Test/Makefile" "Test/README.md"
#> [5] "Test/sensys-abstract.cls" "Test/sigproc.bib"
#> [7] "Test/Test.Rmd"
# clean example
unlink(tmp_dir, recursive = TRUE)
and same with your package
# create temp dir
dir.create(tmp_dir <- tempfile())
# Empty
list.files(tmp_dir)
#> character(0)
# install your package
remotes::install_github("Amarakon55/amaRyaml")
#> Using github PAT from envvar GITHUB_PAT
#> Skipping install of 'amaRyaml' from a github remote, the SHA1 (85894f69) has not changed since last install.
#> Use `force = TRUE` to force installation
# create a template
xfun::in_dir(tmp_dir, {
rmarkdown::draft("file.Rmd", template = "eisvogel", package = "amaRyaml", edit = FALSE)
})
# It is there
list.files(tmp_dir, recursive = TRUE)
#> [1] "file.Rmd"
#> [2] "fonts/LiberationSerif-Bold.ttf"
#> [3] "fonts/LiberationSerif-BoldItalic.ttf"
#> [4] "fonts/LiberationSerif-Italic.ttf"
#> [5] "fonts/LiberationSerif-Regular.ttf"
# clean example
unlink(tmp_dir, recursive = TRUE)
Hope it helps.