-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Regenerate documents using roxygen2 7.0 #3630
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
Regenerate documents using roxygen2 7.0 #3630
Conversation
and x axis grid lines are vertical. \code{panel.grid.*.*} inherits from | ||
\code{panel.grid.*} which inherits from \code{panel.grid}, which in turn inherits | ||
and x axis grid lines are vertical. \verb{panel.grid.*.*} inherits from | ||
\verb{panel.grid.*} which inherits from \code{panel.grid}, which in turn inherits |
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.
I'm not sure if this is a problem or not, but I reported here: r-lib/roxygen2#975
@@ -51,5 +61,5 @@ p + annotate("text", x = 2:3, y = 20:21, label = c("my label", "label 2")) | |||
p + annotate("text", x = 4, y = 25, label = "italic(R) ^ 2 == 0.75", | |||
parse = TRUE) | |||
p + annotate("text", x = 4, y = 25, | |||
label = "paste(italic(R) ^ 2, \\" = .75\\")", parse = TRUE) | |||
label = "paste(italic(R) ^ 2, \" = .75\")", parse = TRUE) |
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.
Hmm, is this correct...?
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.
It seems this escape doesn't make difference on the rendered document.
OK, this is not a easy job by just running Warnings when
|
This is ready to merge now, if we are ready to use roxygen2 (apparently I was not...) |
Closing this in favor of #3637 |
Use the latest version of roxygen2 to generate documents, and fix various places due to the change of roxygen2's behaviour.
Formatting of Usage sections
Most of the diff comes from the fact that roxygen2 now formats usages a bit prettier than before. For example:
This diff is harmless and there's nothing we need to do.
Escape of
%
Contrary to the previous version where we needed to escape
%
by ourselves, now roxygen2 escapes%
automatically. As a result,#' 100\%
is converted to
100\\%
Here,
\\
is translated as an escaped\
and%
is translated as an unescaped%
, which means the Rd comment symbol. This is problematic when it's used in a line containing}
. For example,is translated as
\item{width}{Bar width. By default, set to 90\\
+ comments.So, we must remove this
\
except when it's used in raw Rd macros (e.g.\code{}
). For example,#' \code{\%+\%}
should be left as is.
Unused
@inheritParams
It seems roxygen2 now warns when
@inheritParams
is not used. I removed two@inheritParams
. This doesn't change the result documents as they ware not used actually.Misuse of
@rdname
I think we misuse
@rdname
in some places where we should use@name
. I don't understand whydevtools::document()
warns only forscale-step
, but I guess this is what the following warning suggests: