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

fix: adapt to new behavior of usethis::use_news_md() #680

Merged
merged 8 commits into from
Jun 8, 2023
Merged

fix: adapt to new behavior of usethis::use_news_md() #680

merged 8 commits into from
Jun 8, 2023

Conversation

maelle
Copy link
Member

@maelle maelle commented Jun 5, 2023

Fix #679

@@ -198,7 +198,7 @@ write_fledgling <- function(fledgeling) {

news_df <- fledgeling$news
news_lines <- purrr::map_chr(
split(news_df, sort(as.numeric(rownames(news_df)))),
split(news_df, seq_len(nrow(news_df))),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed in the end, but probably better anyway?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vec_split() might be better.

@@ -1,4 +1,5 @@
test_that("bump_version() works -- dev", {
testthat::skip_if_offline() # because of usethis::use_news_md() -> available.packages()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as a reminder, skip_if_offline() also skips tests on CRAN.

@maelle maelle requested a review from krlmlr June 8, 2023 08:25
@@ -198,7 +198,7 @@ write_fledgling <- function(fledgeling) {

news_df <- fledgeling$news
news_lines <- purrr::map_chr(
split(news_df, sort(as.numeric(rownames(news_df)))),
split(news_df, seq_len(nrow(news_df))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vec_split() might be better.

tests/testthat/_snaps/demo/demo.md Show resolved Hide resolved
@krlmlr krlmlr merged commit 6c1e25e into main Jun 8, 2023
12 checks passed
@krlmlr krlmlr deleted the snaps branch June 8, 2023 11:12
@krlmlr
Copy link
Contributor

krlmlr commented Jun 8, 2023

Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

failures with dev usethis & testthat
2 participants