roxygen2 Questions

1

Solved

Package development beginner here! I'm trying to turn some code into a local R package for the very first time. I made a package using usethis::create_package(), added documentation using devtool...
Waters asked 18/3, 2019 at 16:23

3

Solved

I am using devtools to build R package, and there are some functions that are NOT designed to be visible to end-users. However, since these functions involve calling C codes by .Call, so that I hav...
Altarpiece asked 9/4, 2013 at 3:26

2

Solved

I'm using roxygen2 for my package description and I want to have mathematic equations in my documentation. For example I want to write n_{u} like a formula. When I write \eqn{n_{u}} in @details not...
Tamarra asked 5/3, 2019 at 8:43

3

I am trying to follow closely @hadley's book to learn best practices in writing R packages. And I was thrilled to read these lines about the philosophy of the book: anything that can be automate...
Ramekin asked 12/5, 2016 at 17:17

2

Solved

I have a problem about UTF-8. After conducting roxygen2::roxygenise() for my package, it showed the warning message 'roxygen2 requires Encoding: UTF-8'. How can I fix it? roxygen2::roxygenise() ...
Octavia asked 5/8, 2018 at 13:52

1

Solved

I'm creating a R package that contains Rcpp functions depending on RcppArmadillo, so I first generate the package skeleton by RcppArmadillo.package.skeleton. However, when I roxygenize my package, ...
Jablonski asked 6/12, 2018 at 0:12

3

I am making an R package using devtools and roxygen2. I can get a PDF manual using R CMD but I am really curious as to whether this can be done using devtools. devtools' build(), check(), install()...
Excisable asked 2/6, 2015 at 22:10

1

Solved

When writing an R package, I need to import another R package B. I use the roxygen2 for the documentation. My question is, if I have several R functions using the package B, should I write #' @...
Nutriment asked 27/7, 2018 at 14:48

2

Solved

So, I'd like to reference one of my package vignettes inside the roxygen2 comments of a function but I'm having a hard time understanding how to do it. More generally, how do we reference document...
Oriya asked 26/3, 2014 at 0:26

1

I'm developing an R package where the functions fall into logical groups; broadly, "Input", "Data Munging", "Analysis", "Output", "Info", and "Utils". I want my package index to be split into these...
Killebrew asked 29/10, 2016 at 12:2

2

Solved

To generate an R documentation file (.Rd) I use the package RStudio/Document option with R 3.0.2, Linux 3.11, devtools 1.5, roxygen2 4.0.1. Objective I want to describe multiple arguments of a fu...
Cyma asked 14/8, 2014 at 12:25

1

I am unable to generate .Rd documentation files for my package using RStudio and Roxygen2. First, let me mention that I have gone through similar problems posted here and have already done the foll...
Asperges asked 4/3, 2017 at 7:14

2

I'm stuck with defining S3 method for autoplot. I have the following (full code here): #' Autoplot for bigobenchmark object #' #' @importFrom ggplot2 autoplot #' #' @param object #' #' @return A ...
Sissy asked 17/4, 2018 at 21:50

0

automated data analysis workflows I have the following code in my packagename.R file in the packagename folder. I know I am going to use certain functions from other packages routinely, so I want ...
Bikini asked 15/2, 2018 at 22:19

2

Solved

I'm using roxygen2 as a tool for documenting my R package, and I found that there is a @references tag in roxygen2, but that seems to only accept free form text. I found some presentation about rox...
Cropland asked 18/4, 2012 at 10:32

2

Solved

I'm trying to include a (somewhat) large dataset in an R package. I keep getting the Warning during the check in Rstudio saying that I could save space with compression: * checking data for ASCII ...
Tremblay asked 16/9, 2015 at 10:8

1

It is my first experience in writing an R-package. I used roxygen2 by following the instructions given in this link http://kbroman.org/pkg_primer/ Everythig is working fine except few things.. the...
Ushijima asked 13/4, 2015 at 8:45

1

I wrote an importer for an obscure TSV format, which I want to package and document: https://github.com/katrinleinweber/MWX-import/commits/package The importer function passes a renamed skip_lines...
Smoker asked 9/3, 2017 at 18:39

1

In roxygen2, one can use the tag @inheritParams to inherit the full set of parameters of another function. But is it also possible to inherit only a certain subset of them? (Excluding the case of i...
Drice asked 24/6, 2017 at 19:11

2

Writing an R package, I have a R function that calls a specific Rcpp function. The Rcpp function just serves as a helper function and I do not want to creat a .Rd file for it. My solution so far is...
Perot asked 4/9, 2017 at 14:24

2

I am struggling with the documentation of an R6 class and its methods. My goal is to get the autocompletion in RStudio for the methods. At the moment, I only get the name of the method but no the h...
Mcfall asked 1/8, 2017 at 7:45

1

What is the correct way of roxygen documenting a function with an optional parameter like #' @name dbh2vol #' @usage dbh2vol(dbh,ipft) #' @description This is an allometric function to return the ...
Luxuriate asked 19/10, 2016 at 21:11

3

Solved

I am eager to learn how to incorporate data examples as comments written above the functions, such as: ##' @examples ##' ## Set working directory... ##' ## Load data into R session: ##' data <...
Peccant asked 12/9, 2012 at 15:5

0

I have a number of functions that have related methods with different arguments that I want to document together within the generic. Is there a standard method for documenting arguments passed thro...
Triangle asked 28/6, 2017 at 9:58

2

Solved

Is there any way to generate documentation for a R shiny application? It becomes very hard to maintain a shiny application without documentation. It seems that all the eco-system of tests/docum...
Viscera asked 8/7, 2015 at 22:33

© 2022 - 2024 — McMap. All rights reserved.