-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[SPARK-18825][SPARKR][DOCS][WIP] Eliminate duplicate links in SparkR API doc index #18051
Conversation
Test build #77152 has finished for PR 18051 at commit
|
Test build #77156 has finished for PR 18051 at commit
|
I see - I think this doesn't address doc build via |
It doesn't, but |
hmm,.. we do want people to be able to install it as a package... |
8392ba5
to
4843950
Compare
Test build #77206 has finished for PR 18051 at commit
|
Test build #77207 has finished for PR 18051 at commit
|
For a moment I thought I found another solution but I was wrong. I don't think there is a conflict between this and installable package. It won't help with the packaged version (but other packages depending on S4 suffer from the same issue), but we can have an improved online version. There is one possible alternative - converting all #' abs
#'
#' Computes the absolute value.
#'
#' @param x Column to compute on.
#'
#' @rdname abs
#' @name abs-method
#' @family non-aggregate functions
#' @export
#' @examples \dontrun{abs(df$c)}
#' @aliases abs,Column-method This would keep CRAN checks happy and removed duplicates but at the cost of having docs like this: and making help unusable from R session, requiring:
instead
I am not sure if you agree, but IMHO this just makes things worse. |
@actuaryzhang - we were just talking this in the other PR. what do you think? |
Maybe I'm missing something completely, but I still don't get the point why we are removing the Even for S3 methods, they tend to repeat as well. Below is a snapshot of the |
I think there are two different problems here:
|
Improvements to R API doc online can be useful. |
If we consider improvement of the online documentation to be a separate problem, then I fully agree with @actuaryzhang. |
hmm, so what would be the approach to fix the dup links then, change every |
To be honest I thought mostly about online docs here. Duplicate links in the bundled documentation never bothered me before (in SparkR, or any other package for that matter) and don't I think these have to be fixed. Maybe just close this PR, mark upstream ticket as won't fix, and focus on bigger issues? Just saying... |
given the work we are doing in #18025 to reorganize a lot of the pages, this might become a very minor issue when the dust settles. So I'm good also just to track this (wouldn't resolve the JIRA just yet) and revisit later. also looking forward to your proposal on getting online help doc better, @zero323 ! |
@zero323 I really like your thoughts on the docs. As @felixcheung mentioned above, we are doing some cleaning in #18025, which will improve readability and fix the SeeAlso issue. Regarding making the examples runnable, I would really like to do that. This is not an issue for Jenkins since the examples are tiny. However, that will increase the cran check time significantly and I'm not sure CRAN will allow that. |
re: example - agreed, I think @zero323 is proposing that we only run examples when creating the online doc, but not as CRAN (so we keep the dontrun) |
That makes sense! |
Exactly my point. Run examples internally (it is not hard to patch knitr or even #18025 looks great - I'll try to review it when I have a spare moment. I guess I close this PR for now. No reason to keep it hanging. |
What changes were proposed in this pull request?
TODO
How was this patch tested?
Manual inspection of the docs.