-
Notifications
You must be signed in to change notification settings - Fork 235
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
Plan transition from RoxygenNote to Config/Roxygen/... #1328
Comments
From |
e.g.
This needs to affect @gaborcsardi how do you think the values should be parsed? Read a string and then call
But having to always wrap everything in quotes is annoying, so maybe better to parse
When we do this we should probably also work to get the IDE to respect these options, instead of maintaining it's own list in the Also need to consider #1202, i.e. how to provide alternative to the current hack where we rely on the |
I agree that having to specify a valid R expression is a pain in the neck. It does give us a lot of flexibility, but it is doubtful that we would ever need this flexibility in practice. OTOH it would be great to have some principled DSL for the values. A somewhat weird idea, would it make sense to make it YAML? Then we would write: Config/roxygen2/roclets:
- rd
- namespace
Config/roxygen2/markdown: true
Config/roxygen2/load: installed
Config/roxygen2/version: 7.1.2.9000 and the format would be well defined and extensible, and parsing would be easy: ❯ yaml::yaml.load("Config/roxygen2/roclets:
+ - rd
+ - namespace
+ Config/roxygen2/markdown: true
+ Config/roxygen2/load: installed
+ Config/roxygen2/version: 7.1.2.9000
+ ")
$`Config/roxygen2/roclets`
[1] "rd" "namespace"
$`Config/roxygen2/markdown`
[1] TRUE
$`Config/roxygen2/load`
[1] "installed"
$`Config/roxygen2/version`
[1] "7.1.2.9000" YAML would also give us a principled way to evaluate R expressions, should we need that. I don't deny that it is weird to embed YAML into DCF, and there are possibly interactions between the two formats that could make one of the parsers fail? |
I wondered about yaml syntax too, but it does seem rather big for this simple problem. Maybe |
To match other packages
The text was updated successfully, but these errors were encountered: