Skip to content

Rd warnings #2999

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

Closed
IndrajeetPatil opened this issue Nov 13, 2018 · 5 comments
Closed

Rd warnings #2999

IndrajeetPatil opened this issue Nov 13, 2018 · 5 comments

Comments

@IndrajeetPatil
Copy link

When I download ggplot2, it produces the following .Rd warnings. From user's point-of-view, this is not at all important. But I am trying to get to the source of why such warnings are generated in the first place and what can be changed in the roxygen2 skeleton to get rid of such warnings.

Rd warning: C:/Users/inp099/AppData/Local/Temp/RtmpIL6A2X/R.INSTALL1f709765163/ggplot2/man/tidyeval.Rd:23: file link 'syms' in package 'rlang' does not exist and so has been treated as a topic
Rd warning: C:/Users/inp099/AppData/Local/Temp/RtmpIL6A2X/R.INSTALL1f709765163/ggplot2/man/tidyeval.Rd:25: file link 'expr' in package 'rlang' does not exist and so has been treated as a topic
Rd warning: C:/Users/inp099/AppData/Local/Temp/RtmpIL6A2X/R.INSTALL1f709765163/ggplot2/man/tidyeval.Rd:25: file link 'quo' in package 'rlang' does not exist and so has been treated as a topic
Rd warning: C:/Users/inp099/AppData/Local/Temp/RtmpIL6A2X/R.INSTALL1f709765163/ggplot2/man/tidyeval.Rd:28: file link 'exprs' in package 'rlang' does not exist and so has been treated as a topic
Rd warning: C:/Users/inp099/AppData/Local/Temp/RtmpIL6A2X/R.INSTALL1f709765163/ggplot2/man/tidyeval.Rd:29: file link 'quos' in package 'rlang' does not exist and so has been treated as a topic
Rd warning: C:/Users/inp099/AppData/Local/Temp/RtmpIL6A2X/R.INSTALL1f709765163/ggplot2/man/tidyeval.Rd:31: file link 'enexpr' in package 'rlang' does not exist and so has been treated as a topic
Rd warning: C:/Users/inp099/AppData/Local/Temp/RtmpIL6A2X/R.INSTALL1f709765163/ggplot2/man/tidyeval.Rd:31: file link 'enquo' in package 'rlang' does not exist and so has been treated as a topic
Rd warning: C:/Users/inp099/AppData/Local/Temp/RtmpIL6A2X/R.INSTALL1f709765163/ggplot2/man/tidyeval.Rd:35: file link 'enexprs' in package 'rlang' does not exist and so has been treated as a topic
Rd warning: C:/Users/inp099/AppData/Local/Temp/RtmpIL6A2X/R.INSTALL1f709765163/ggplot2/man/tidyeval.Rd:35: file link 'enquos' in package 'rlang' does not exist and so has been treated as a topic
@hadley
Copy link
Member

hadley commented Nov 13, 2018

I think this just requires a bump in the required version of rlang in DESCRIPTION

@yutannihilation
Copy link
Member

yutannihilation commented Nov 13, 2018

I don't think updating rlang will help, this seems a roxygen2's problem to me, if you think this is actually a problem. The warnings come from here in src/library/tools/R/Rd2HTML.R; it seems R doesn't feel comfortable with the form of \link[pkg]{topic} and prefers these forms with the file specified:

 ## ----------------- \link[pkg]{file} and \link[pkg:file]{bar}

(I see this warnings too many times here and there so I don't even think this is actually a warning... Thanks for the chance to dig into the R's source code... :P)

@IndrajeetPatil
Copy link
Author

Whoa! Thanks @yutannihilation for digging into the code to figure this one out. I have been getting similar warnings and thought this issue was specific to the pipe operator (r-lib/usethis#478), but this seems to be a much general issue with roxygen2.

@yutannihilation
Copy link
Member

Oh, curious, it seems not everyone sees this warning. Anyway, I don't think ggplot2's repo is the right place to discuss. Maybe this issue is?

r-lib/roxygen2#707

@hadley hadley closed this as completed Nov 14, 2018
@lock
Copy link

lock bot commented May 13, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators May 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants