Re: [R-pkg-devel] How do I enable to show data in inst/extdata in data() || lazy load

2022-12-19 Thread Sanjeev Sariya
Hi, thank you for the reply. Do you need this to be a file? Could it be a pre-parsed R object instead? I need to provide an external data/file in the R package. This has come as a request from F1000 journal editors. One way to solve this could be to write a script that imports the file from ins

Re: [R-pkg-devel] How do I enable to show data in inst/extdata in data() || lazy load

2022-12-19 Thread Ivan Krylov
On Mon, 19 Dec 2022 20:59:27 +0530 Sanjeev Sariya wrote: > ... I have created a .Rd file. > I'm interested in listing this file in data() ... My understanding is that data() is for R-level objects, and so is help(), most likely. One way to solve this could be to write a script that imports the

Re: [R-pkg-devel] NOTE about use of `:::`

2022-12-19 Thread David Kepplinger
I think I will go with the suggestion of creating a new empty environment, adding only the argument parsing function. Moreover I will use the same name as the user-facing function that's being invoked, i.e., foo <- function(...) { call <- match.call(expand.dots = TRUE) call[[1]] <- quote(pa

[R-pkg-devel] How do I enable to show data in inst/extdata in data() || lazy load

2022-12-19 Thread Sanjeev Sariya
Hi there, I've added data in the inst/extdata folder, for which I have created a .Rd file. I'm interested in listing this file in data() as other data/objects are being shown. Link for package github: https://github.com/sariya/GARCOM/tree/new_test_hello best -- Sanjeev M [[alternative HT

Re: [R-pkg-devel] how to add .Rd in man folder for inst/ext file?

2022-12-19 Thread Sanjeev Sariya
Thank you -- Sanjeev M On Mon, Dec 19, 2022 at 7:53 PM Sarah Goslee wrote: > Hi, > > Well, at the most basic, you create an appropriately-named and > formatted text file in the man directory. The Writing R Extensions > manual is full of information: > https://cran.r-project.org/doc/manuals/R-

Re: [R-pkg-devel] how to add .Rd in man folder for inst/ext file?

2022-12-19 Thread Sarah Goslee
Hi, Well, at the most basic, you create an appropriately-named and formatted text file in the man directory. The Writing R Extensions manual is full of information: https://cran.r-project.org/doc/manuals/R-exts.html Roxygen is an alternative approach to creating the Rd files yourself. https://cra

Re: [R-pkg-devel] Question on Description/Citing Feedback

2022-12-19 Thread Uwe Ligges
Well, the CRAN question is more a suggestion that refernces for a package can be specified in the Descrioption field of the DESCRIPTION file so that poeple directly see the references even befiore downloading the package. This is a (strong) suggestion, not compulsory. Best, Uwe Ligges On 16