Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Makelocal_temp_app() usage more consistent#844

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
hadley wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromlocal_temp_app()

Conversation

@hadley
Copy link
Member

And make it a little easier to use with...

@hadleyhadley requested a review fromaronatkinsMay 8, 2023 22:48

test_that("returns relative paths", {
dir<-withr::local_tempdir()
dir<-local_temp_app()
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you expect that this will become:

dir<- local_temp_app("x/a"="","x/b"="","x/c"="')

local_temp_app would need to change todir.create(dirname(files)), but that's in reach, if you want it.

The challenge would be the cases where you want to create empty directories as part of the test set-up. Maybe:

dir<- local_temp_app("packrat/"="")

None of this is must-take. Just musing on ways to simply describe "create this set of files / directories" without requiring every test to have its own creation code.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yeah, I had contemplated that too. If you were thinking the same thing, I think it's a sign that it's worth doing.

#Conflicts:#tests/testthat/test-applications.R#tests/testthat/test-bundleFiles.R#tests/testthat/test-deployApp.R#tests/testthat/test-deploymentTarget.R
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@aronatkinsaronatkinsaronatkins approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@hadley@aronatkins

[8]ページ先頭

©2009-2025 Movatter.jp