Skip to content

Invalid @export should include more details in error #1074

@aljabadi

Description

@aljabadi

Opening a new issue following up on an unresolved closed one as advised in #415 .

This problem still persists: #415 (comment)

For example, running roxygen2 documentation for:

#' @export
#' @rdname colors
foo <- function(egg){NULL}

works, but fails for

#' @rdname colors
#' @export
foo <- function(egg){NULL}

With warning @export may only span a single line

#> R version 3.6.3 (2020-02-29)
#> Platform: x86_64-apple-darwin15.6.0 (64-bit)
#> Running under: macOS Catalina 10.15
#> 
#> Matrix products: default
#> BLAS:   /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
#> 
#> locale:
#> [1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] roxygen2_7.1.0
#> 
#> loaded via a namespace (and not attached):
#>  [1] Rcpp_1.0.3      digest_0.6.25   R6_2.4.1        magrittr_1.5   
#>  [5] evaluate_0.14   highr_0.8       rlang_0.4.5     stringi_1.4.6  
#>  [9] xml2_1.2.5      rmarkdown_2.1   tools_3.6.3     stringr_1.4.0  
#> [13] purrr_0.3.3     xfun_0.12       yaml_2.2.1      compiler_3.6.3 
#> [17] htmltools_0.4.0 knitr_1.28

Created on 2020-04-11 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementrd ✍️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions