Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

topepo
Copy link
Collaborator

@topepo topepo commented Apr 16, 2024

For #22

Adds some dependencies (fs, whoami).

#' @return The path to the index file.
#' @export
#' @examples
#' \dontrun{
Copy link
Collaborator Author

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))
Copy link
Collaborator Author

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")
Copy link
Collaborator Author

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.

@topepo topepo marked this pull request as ready for review April 16, 2024 18:34
@topepo topepo requested a review from cderv April 18, 2024 16:28
@topepo
Copy link
Collaborator Author

topepo commented Apr 18, 2024

GHA failures are now down to infrastructure issues, not failing R CMD check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant