-
Notifications
You must be signed in to change notification settings - Fork 162
Added project.directory parameter to create.project.R #323
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
base: master
Are you sure you want to change the base?
Added project.directory parameter to create.project.R #323
Conversation
This is breaking quite a bit of the functions when no directory is given. Can you please run that tests and see where it is breaking? Looking at the logs it is breaking in these places:
|
I tried |
Corrected "project_directory" to "project.directory".
Thanks. Let me know when the tests are passing! |
- Accounted for new "project.directory" argument - Applied {styler}
These were missed from the previous commit.
Many of the tests create a temporary file with the name suppressMessages(create.project(test_project)) Which runs an error due to the addition of suppressMessages(create.project(basename(test_project), project.directory = dirname(test_project))) where applicable. There are now no test fails, however the build still fails due to warnings that I am not sure how to fix. Some look to be deprecated functions within |
project.name is now a name rather than a path, which caused test warnings when called as an argument to basename(normalizePath()).
This was missed from the previous commits that updated tests
I've made some more progress and now all that's left is 6 warnings. They are all within "test-migration.R" and they all happen at a call: expect_warning(suppressMessages(load.project()), ...) With the dots being some regular expression:
|
Great progress! I'll wait for the last few errors in |
@3styleJam I'm wanting to push a new version to CRAN soon. Should I wait for the PR to be finished or push without it? |
@KentonWhite Sorry for the delay. I'm still figuring out the fix for the remaining warnings and I've also been busy elsewhere, so you can go ahead and push the new version the CRAN without this PR. |
@3styleJam if you are working on this I can wait. Like to have new features at once rather than 2 releases close to each other. |
This comment was marked as outdated.
This comment was marked as outdated.
@KentonWhite I think I have managed to clear the remaining warnings, however I did this by modifying a couple of tests which you may want to double check (see commit c32160e) . I have not updated P.S. @gisler may be interested in reviewing the modifications to the tests within test-cache.R. |
Placed some `suppressMessages` calls all on one code line for easier dealing of merge conflicts
Added missing curly bracket
Removed setting of stringsAsFactors with options() as it is deprecated.
Change to old-style pipe operator
Thanks @3styleJam I'm travelling this week will look into merging next week. The build is failing due to warnings. I'll see if I can fix up those warnings (not sure yet what is causing the warnings) |
@3styleJam Sure, I'll take a look at it this weekend. |
Hi @3styleJam! I reviewed your changes to "test-cache.R" and they look good to me. :) Just one remark concerning the new Besides, @KentonWhite, since there is a mix of different coding styles in the package by now, which kinda forces contributers to change more than necessary ... What do you think of applying the new formatter Air to the existing code base? |
Thanks @gisler . Good point concerning the parameter position. I placed it second as it seemed appropriate to put next to |
Ah, |
Types of change
Pull request checklist
man
Proposed changes