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

Revamp messaging when copying files #2492

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Revamp messaging when copying files #2492

merged 1 commit into from
Apr 24, 2024

Conversation

hadley
Copy link
Member

@hadley hadley commented Apr 23, 2024

  • Once again show one file per line
  • Make it possible to nicely label special roots (i.e. the pkgdown package)

@jayhesselberth I can't remember if we discussed this at the time, but cli::cli_inform() always collapses to a single string, so I think the easiest way to get one line per file is to use walk2().

Fixes #2445

* Once again show one file per line
* Make it possible to nicely label special roots (i.e. the pkgdown package)
@hadley hadley requested a review from jayhesselberth April 23, 2024 21:48
Copy link
Collaborator

@jayhesselberth jayhesselberth left a comment

Choose a reason for hiding this comment

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

That does look nicer. Looks good to me.

@hadley hadley merged commit 502c886 into main Apr 24, 2024
12 checks passed
@hadley hadley deleted the init-site-messaging branch April 24, 2024 13:19
copy_asset_dir(
pkg,
path_package_pkgdown("assets", template$package, pkg$bs_version),
src_root = system_file(package = template_package),
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this was merged, we get:

Error: 
! in callr subprocess.
Caused by error in `copy_assets(pkg)`:
! object 'template_package' not found

Any chance this was meant to be?

src_root = system_file(package = template$package),

I can open a new issue if you prefer.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops yes. Let me push a fix real quick

SebKrantz pushed a commit to SebKrantz/pkgdown that referenced this pull request Jun 1, 2024
* Once again show one file per line
* Make it possible to nicely label special roots (i.e. the pkgdown package)
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.

Better path for files coming from pkgdown templates
3 participants