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

Make tags start at beginning of line #235

Closed
hadley opened this issue Mar 31, 2014 · 2 comments
Closed

Make tags start at beginning of line #235

hadley opened this issue Mar 31, 2014 · 2 comments

Comments

@hadley
Copy link
Member

hadley commented Mar 31, 2014

How much existing code would this affect?

@phonixor
Copy link

phonixor commented Aug 4, 2014

depends how you want

Rstudio has
#' @tag
colored as a tag

and
#' lalalala @notag
colored as a comment

which is how i would want it...
while roxygen2 currently sees both as tags.

if you suggest to leave out the whole #' part and just start the line with @tag, then i disagree as it would no longer run on non roxygen enabled thingies and would effect all roxygen packages

my guesstimates is that if you would only allow: #' @tag as valid syntax not much will change, as the tag in the middle of a comment makes very little sense

unless i completely misunderstood your point

@flying-sheep
Copy link
Contributor

ugh, this has made my stuff quite a lot uglier.

before i had heaps of aliases like this

(which RStudio colored correctly)

#' @export @name repr_*.vector
repr_html.integer <- repr_html.logical

#' @export @name repr_*.vector
repr_html.complex <- repr_html.logical

#' @export @name repr_*.vector
repr_html.numeric <- repr_html.logical

#' @export @name repr_*.vector
repr_html.factor <- repr_html.logical

#' @export @name repr_*.vector
repr_html.character <- repr_html.logical

now i need to do:

#' @name repr_*.vector
#' @export
repr_html.integer <- repr_html.logical

#' @name repr_*.vector
#' @export
repr_html.complex <- repr_html.logical

#' @name repr_*.vector
#' @export
repr_html.numeric <- repr_html.logical

#' @name repr_*.vector
#' @export
repr_html.factor <- repr_html.logical

#' @name repr_*.vector
#' @export
repr_html.character <- repr_html.logical

can you re-allow @tag @subsequent_tag if there’s nothing inbetween?

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

No branches or pull requests

3 participants