New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function for making new blog posts #171
base: main
Are you sure you want to change the base?
Conversation
#' @return The path to the index file. | ||
#' @export | ||
#' @examples | ||
#' \dontrun{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is the best way to protect the example.
|
||
if (is.null(dest)) { | ||
# Scrub title to make directory name | ||
dest <- gsub("[[:space:]]", "-", tolower(title)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps there is a better API for this?
yml_values <- yml_values[names(yml_values) != "categories"] | ||
} | ||
yml_values <- yaml::as.yaml(yml_values) | ||
yml_values <- paste0("---\n", yml_values, "---\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, maybe there is a better API.
GHA failures are now down to infrastructure issues, not failing |
For #22
Adds some dependencies (fs, whoami).