-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
335 bring teal_slice
and teal_slices
to package INDEX
#565
Conversation
Code Coverage Summary
Diff against main
Results for commit: 083d0c7 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
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.
Excellent! 👌 Please proceed with teal_slices
.
I would just add a comment line to explain why @usage
is used manually, in case we forget in the future.
Unit Tests Summary 1 files 29 suites 22s ⏱️ Results for commit 083d0c7. ♻️ This comment has been updated with latest results. |
Hey @chlebowa proceeded with |
Will also need to move |
Did you forget to push your changes? |
I think I pushed them, but on wrong branch (334_teal_slice_index@main instead of 335_teal_slice_index@main). Will push here. |
Should be visible on this branch. Sorry! PS. I will also delete |
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.
Please place the @usage
section between @details
and @params
to reflect the structure of the man page better.
Any ideas how to tackle the check warnings?
Undocumented code objects:
‘as.teal_slice’ ‘as.teal_slices’ ‘is.teal_slice’ ‘is.teal_slices’
Functions or methods with usage in documentation object 'teal_slices' but not in code:
‘as.list’ ‘[’ ‘c’ ‘format’ ‘print’
Objects in \usage without \alias in documentation object 'teal_slice':
‘is.teal_slice’ ‘as.teal_slice’ ‘as.list.teal_slice’
‘format.teal_slice’ ‘print.teal_slice’
Objects in \usage without \alias in documentation object 'teal_slices':
‘is.teal_slices’ ‘as.teal_slices’ ‘as.list’ ‘[’ ‘c’ ‘format’ ‘print’
Yes, saw those warnings. Will google for the solution. Maybe they need to have their separate documentation pages anyway (not exposed in INDEX). Or we need to add aliases to |
I tied my hand at removing those warnings and I was only able to remove one. I hope you will find a way. |
I added |
Lastly, need to figure out |
OK, this was a bumpy ride, but I figured this out. Seeing no warnings locally during R CMD CHECK Status: OK
── R CMD check results ───────────────────────────────────────────────────────────────────────────────────────── teal.slice 0.5.0.9004 ────
Duration: 2m 11.8s
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
R CMD check succeeded This should be enough to get merged. Pretty cool learning exercise about custom |
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.
doh |
But now I do see |
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.
Nice job 👌
So are all the methods |
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.
Not quite there yet.
So adding #' @aliases is.teal_slices as.teal_slices as.list.teal_slices format.teal_slices print.teal_slices c.teal_slices [.teal_slices list those functions as topics in package index. But if you do not have those as W checking for missing documentation entries (1.3s)
Undocumented code objects:
'as.teal_slices' 'is.teal_slices'
All user-level objects in a package should have documentation entries.
See chapter 'Writing R documentation files' in the 'Writing R
Extensions' manual.
✔ checking for code/documentation mismatches (3.1s)
W checking Rd \usage sections (854ms)
Objects in \usage without \alias in documentation object 'teal_slices':
'is.teal_slices' 'as.teal_slices' 'as.list.teal_slices'
'[.teal_slices' 'c.teal_slices' 'format.teal_slices'
'print.teal_slices'
Functions with \usage entries need to have the appropriate \alias
entries, and all their arguments documented.
The \usage entries must correspond to syntactically valid R code.
See chapter 'Writing R documentation files' in the 'Writing R
Extensions' manual. A dead end. |
Maybe there is a way to edit |
@chlebowa I tired with the INDEX file #335 (comment) |
Probably, yeah.
|
So I figured this INDEX file does not have any influence on anything : P |
I've got 2 more ideas. Will experiment with |
I think I will need to take a break from this. Or we end up with a proposition from #335 (comment) where we have utility functions documented on a separate page, but they are linked from |
Proposition on how to solve #335
@rdname teal_slice
from utility functions forteal_slice
@usage
section to display bothteal_slice
and utility functions on the same pageteal_slice
appearing in package index, where utility functions only appear inteal_slice
documentation pageIf this is acceptable, I will do the same for
teal_slices