Repository navigation
Roxygen documentation suggestions - #37
Closed
github-actions[bot] wants to merge 3 commits into
Closed
github-actions[bot] wants to merge 3 commits into
github-actions[bot] wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated roxygen2 documentation suggestions. Review and merge to include them.
Summary: 5 changes applied · 5 not applied · 2 possible bugs
Applied changes (5)
R/ds.acmPlot.R (5)
description—inaccurate: The description attributes the call to a function named 'acmPlotDS' retrieving 'prediction data', which is correct, but it omits that the actual plot rendering happens client-side with ggplot2 after fetching data, which the original text implies is a simple visualization step rather than a two-stage process.details—inaccurate: The details claimed the function takes a 'prediction object' directly, but pred_obj is actually a character string naming an object on the server, and the function also depends on the rms package and server function acmPlotDS, which were not mentioned.param:x_breaks—inaccurate: Original said 'optional' without explaining that when omitted, breaks are computed automatically as 5 equally spaced points between the min and max of the first study column.param:event_n—inaccurate: Original just said 'number of events (optional)' without describing its effect of appending '(n = event_n)' to the plot title.return—inaccurate: The return is a named list of ggplot objects, one per study/server connection, not merely 'a list of ggplot objects from each study' without specifying naming or structure, and there is no disclosure control since this is a client-rendered plot object built from aggregated summary data.No changes applied (5)
Suggestions whose reason isn't on the accepted list (
accept_reasonsinconfig/claude.yml). Adopt one by hand if it's worth it.style (3)
R/ds.acmPlot.Rtitle: Shortened to a plain phrase under 10 words naming the function's action.param:line_size: Reworded slightly for consistency and clarity on numeric type and default.examples: Simplified and clarified the example to better reflect realistic DataSHIELD session setup.clarity (2)
R/ds.acmPlot.Rparam:pred_obj: Clarified that this is a mandatory character string naming a server-side object (e.g., created by ds.Predict), and that a NULL value triggers an error.param:datasources: Clarified default behavior when NULL (uses datashield.connections_find()), which the original text omitted.Possible bugs in the code (2)
Noticed while reviewing the documentation — nothing in the code was changed. Please check.
R/ds.acmPlot.R (2)
Update for ed1fbb9
Summary: 4 changes applied · 4 not applied · 2 possible bugs
Applied changes (4)
R/ds.acmPlot.R (4)
description—inaccurate: The description says the function gets data from 'acmPlotDS' and builds the plot, which is correct, but it should clarify plots are built locally in R from server-aggregated prediction data, not rendered server-side.details—inaccurate: The text claims pred_obj is 'a prediction object created by ds.Predict', but the code treats pred_obj only as a character string naming a server-side object and never calls or references ds.Predict; it also omits that the actual server call is to acmPlotDS and that rms must be available.param:x_breaks—incomplete: Original did not mention that if left NULL the function computes breaks automatically from the study data range via seq().return—inaccurate: The function returns a list of ggplot objects built locally per study from server-aggregated data, not objects computed and returned by the server verbatim, and there is no disclosure control performed in this function itself.No changes applied (4)
Suggestions whose reason isn't on the accepted list (
accept_reasonsinconfig/claude.yml). Adopt one by hand if it's worth it.style (3)
R/ds.acmPlot.Rtitle: Shortened to a plain phrase under 10 words rather than a sentence fragment echoing the role description.param:outcome_name: Kept accurate but reworded slightly for consistency with other param docs.examples: Simplified and clarified the example while keeping it inside dontrun since it requires live DataSHIELD connections and a server-side object.clarity (1)
R/ds.acmPlot.Rparam:pred_obj: Clarified that it is the name of a server-side object (not a local prediction object) used to build the aggregate call.Possible bugs in the code (2)
Noticed while reviewing the documentation — nothing in the code was changed. Please check.
R/ds.acmPlot.R (2)