-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch order before checking installation. * Update snapshots * Make `check_is_package()` give a help link * Minor tweaks * Add README link in `use_logo()`. * Don't suggest to run `pr_push()` immediately since the action should be done later (when the work is done) * Add clickable link to Rprofile * Suggest to run `devtools::spell_check()` * fix typo * Address comments * Another cli width * less invasive change * revert rprofile change
- Loading branch information
Showing
16 changed files
with
76 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# use_logo() shows a clickable path with README | ||
|
||
Code | ||
use_logo("logo.png") | ||
Message | ||
v Creating 'man/figures/'. | ||
v Resized 'logo.png' to 240x278. | ||
[ ] Add logo to 'README.md' with the following html: | ||
# {TESTPKG} <img src="man/figures/logo.png" align="right" height="90" alt="" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
test_that("use_logo() doesn't error", { | ||
test_that("use_logo() doesn't error with no README", { | ||
skip_if_not_installed("magick") | ||
skip_on_os("solaris") | ||
|
||
create_local_package() | ||
img <- magick::image_write(magick::image_read("logo:"), "logo.png") | ||
expect_no_error(use_logo("logo.png")) | ||
}) | ||
|
||
test_that("use_logo() shows a clickable path with README", { | ||
skip_if_not_installed("magick") | ||
skip_on_os("solaris") | ||
|
||
create_local_package() | ||
use_readme_md() | ||
img <- magick::image_write(magick::image_read("logo:"), "logo.png") | ||
withr::local_options(usethis.quiet = FALSE) | ||
expect_snapshot(use_logo("logo.png"), transform = scrub_testpkg) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters