Skip to content

Updating the documentation with supported server info#1228

Merged
rodriin merged 14 commits intopccfrom
pcc-docs
Oct 22, 2025
Merged

Updating the documentation with supported server info#1228
rodriin merged 14 commits intopccfrom
pcc-docs

Conversation

@rodriin
Copy link
Member

@rodriin rodriin commented Oct 18, 2025

Resolves: #1227

This PR adds the supported server info to the documentation for all exposed functions at the very top of the description area. In the cases when the function specifically supports only one type of server it will say the server type. For functions that are supported for all servers it will say: "All servers".

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

air

[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶

#'


[air] reported by reviewdog 🐶

#' Deploy a TensorFlow saved model
#'
#' @description
#' Supported servers: Posit Connect, ShinyApps, and RPubs servers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RPubs only supports R Markdown documents; it definitely does not support TensotFlow.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching this, I will fix it in multiple places.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed on commit: 23a3a02

R/accounts.R Outdated
#' Account Management Functions
#'
#' @description
#' Supported servers: All servers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://roxygen2.r-lib.org/articles/rd.html#the-introduction, the description needs to briefly describe what the function does. Information about server support feels like it belongs in the details, and perhaps at the end of the function details.

@karawoo - Do you have a different suggestion?

Copy link
Member Author

@rodriin rodriin Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aronatkins I purposely placed it on top of the description so that it would be visible right away to anyone trying to use the function. I'm willing to bring it down to the details if that is preferable by all.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rodriin - I understand the motivation.

I'm trying to keep us roughly following the R documentation guidance, where the description is supposed to describe what the function does using only one paragraph / a few lines.

Reading this guidance makes me feel like server information may want to describe server compatibility in the description or possibly as a note.

https://cran.r-project.org/doc/manuals/R-exts.html#Documenting-functions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would definitely expect the first paragraph of the description section to describe what the function does. I'd be ok with keeping the info on server compatibility in that section, but as a second paragraph after the description of the function.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll go with adding the server compatibility as the 2nd or last thing on the description section.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed on commit: 72bf9b7

Comment on lines +32 to 37
#' Add authorized user to application
#'
#' @description
#' Supported servers: ShinyApps servers
#'
#' Add authorized user to application
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and elsewhere, can we update so the title and one paragraph of the description don't exactly duplicate one another?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karawoo The only reason I had to duplicate the description from the title in these cases is because the existing documentation did not contain anything for the description hence the generated docs came out with those things duplicated. I'm not sure I have all the knowledge to populate the specific missing descriptions. Maybe that can be done on a separate PR by someone more familiar with the existing functionality?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also if I didn't do the duplication for all the cases missing the description, then only the supported server info would be in the description area which didn't feel right since I was also trying to have the generated docs match the existing docs and only have the extra info I was adding for the supported servers.

@rodriin rodriin requested review from aronatkins and karawoo October 22, 2025 14:41
@rodriin
Copy link
Member Author

rodriin commented Oct 22, 2025

@aronatkins @karawoo This is ready for re-review. Thank you!

Copy link
Contributor

@aronatkins aronatkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One misplaced update, but otherwise looks good. Thanks for this exhaustive update!

R/accounts.R Outdated
#' Register account on Posit Connect
#
#' @description
#' Supported servers: Posit Connect servers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still the leading text for "Description".

image

The supported servers should move to the end of the description section.

Screenshot taken from locally installed documentation for ?rsconnect::connectUser

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching this one, I missed it. I'll fix it now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in commit: 14af74b


#' List invited users for an application
#'
#' @description
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with this duplication. It mirrors the implied duplication we had previously. It does point out where we lack sufficient documentation, but you're not addressing that, here.

image

(screenshot from https://rstudio.github.io/rsconnect/reference/showInvited.html)

@rodriin rodriin merged commit a2d56a0 into pcc Oct 22, 2025
1 check passed
@rodriin rodriin deleted the pcc-docs branch October 22, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants