Skip to content
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

docs: Document on_load() detail #1696

Merged
merged 1 commit into from Mar 13, 2024
Merged

docs: Document on_load() detail #1696

merged 1 commit into from Mar 13, 2024

Conversation

krlmlr
Copy link
Member

@krlmlr krlmlr commented Mar 12, 2024

Closes #1695.

@krlmlr krlmlr requested a review from lionel- March 12, 2024 18:32
Comment on lines +72 to +74
#' The expressions inside `on_load()` do not undergo static analysis
#' by `R CMD check`. Therefore, it is advisable to only use
#' simple function calls inside `on_load()`.
Copy link
Member

Choose a reason for hiding this comment

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

I think we could add support for on_load to other tools so I'd remove the latter part:

Suggested change
#' The expressions inside `on_load()` do not undergo static analysis
#' by `R CMD check`. Therefore, it is advisable to only use
#' simple function calls inside `on_load()`.
#' Note that the expressions inside `on_load()` do not undergo static analysis
#' by `R CMD check`.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand "support ... to other tools", I'm fine with the change if it makes sense to you.

Copy link
Member

Choose a reason for hiding this comment

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

On the other hand extracting to a function also makes sense in terms of style. Let's just merge as is.

@lionel- lionel- merged commit 1fa327a into main Mar 13, 2024
3 of 12 checks passed
@lionel- lionel- deleted the f-onload-rcc branch March 13, 2024 06:33
@lionel-
Copy link
Member

lionel- commented Mar 13, 2024

Thanks!

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.

on_load() contents not analyzed by R CMD check
2 participants