-
Notifications
You must be signed in to change notification settings - Fork 105
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
Tests docs #118
Tests docs #118
Changes from all commits
f0a1d19
3b3f602
72f7a13
ba62b14
af229c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: drat | ||
Type: Package | ||
Title: 'Drat' R Archive Template | ||
Version: 0.1.8.1 | ||
Date: 2021-03-13 | ||
Version: 0.1.8.2 | ||
Date: 2021-04-08 | ||
Author: Dirk Eddelbuettel with contributions by Carl Boettiger, Neal Fultz, | ||
Sebastian Gibb, Colin Gillespie, Jan Górecki, Matt Jones, Thomas Leeper, | ||
Steven Pav, Jan Schulz, Christoph Stepper, Felix G.M. Ernst and Patrick | ||
|
@@ -21,4 +21,4 @@ License: GPL (>= 2) | |
URL: https://github.com/eddelbuettel/drat, https://dirk.eddelbuettel.com/code/drat.html | ||
BugReports: https://github.com/eddelbuettel/drat/issues | ||
Encoding: UTF-8 | ||
RoxygenNote: 6.0.1 | ||
RoxygenNote: 7.1.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I use an older/simpler roxygen by default hence the old version) (As we can see below, a good part of the diff of Rd files is entirely spurious and just line breaks and style of function signature printing) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was one warning for me, where the See line 26 of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh. Good catch. I may have to (eventually) revert all this back just because the older / faster roxygen is my default here at home. (The new one needlessly recompiles shared libraries in packages with code which I find annoying but my issue tickets on it were all closed by the powers-that-be. Oh well. And, being an ESS user and its indentation, I am not a fan of the new look and "styling". Ah well squared. I'll hide under my rock now.) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
|
||
testSkeletonGit2r <- function() { | ||
wd <- tempdir() | ||
|
||
testSkeletonGit2r <- function(wd) { | ||
# options(error=traceback) | ||
|
||
# make a package to test with | ||
|
@@ -268,7 +266,16 @@ testRepoActions <- function(repodir){ | |
} | ||
} | ||
|
||
runTest <- function(wd, location = "gh-pages"){ | ||
options("dratBranch" = location) | ||
repodir <- testSkeletonGit2r(wd) | ||
testRepoActions(repodir) | ||
unlink(file.path(wd,"foo"), recursive = TRUE) | ||
unlink(file.path(wd,"drat"), recursive = TRUE) | ||
} | ||
|
||
wd <- tempdir() | ||
if (requireNamespace("git2r", quietly=TRUE)) { | ||
repodir <- testSkeletonGit2r() | ||
testRepoActions(repodir) | ||
runTest(wd, "gh-pages") | ||
} | ||
runTest(wd, "docs") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The refactoring is nice! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I generally prefer to do this myself to mark releases, but I appreciate that you are also trying to set the release apart.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(It also prevents me from merging now as I have about the same at home :) Quick stash will help)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for that. 😭
Some people like the bump, some people don't. Next time I ask.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am ambivalent. I like the attention to detail, and you made enough changes to mark a delta -- just how I think. The 'cannot merge' is just a stash away so no beans. The one thing I really dislike is using .9000 :) as there is zero sense in more than one new digit, incremented starting from zero. And while I said so for years it won't change you-know-where...
It is a bit more important in larger project / possibly use of more PRs like, say, Rcpp. This was fine. Thanks again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the one missing piece (a
ChangeLog
entry) I now added.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I know. Justification is also a part of it, e.g. Why start at
.9000
and not.0000
? And why the long number anyway? I feel it some weird calcification from a long lost regex pattern.