Re: [R-pkg-devel] [patch] R CMD check when there are no .Rd examples

2017-05-11 Thread Neal Richardson
Thanks for the explanation. Is it possible for R CMD check to distinguish between packages for which examples do or do not make sense, and raise a "Note" as appropriate? I really don't mean to make a big issue out of this particular (soft) requirement--it was easy enough for you to spot and easy e

Re: [R-pkg-devel] Guidance on importind multiple text files for @example

2017-05-11 Thread Duncan Murdoch
On 11/05/2017 9:56 AM, Zhian Kamvar wrote: I sent this earlier, but from a different email and it bounced on the list: You might try placing a directory (e.g. foo) of a few small dummy text files in inst/ and then in the example use: system.file("foo") as the input to your example. That's th

Re: [R-pkg-devel] Guidance on importind multiple text files for @example

2017-05-11 Thread ujjwal anand
sorry , my bad! its, x<-file.path("C:/Users/anand/Desktop/Internship", "dataftc") Thanks, Ujjwal On Thu, May 11, 2017 at 3:54 PM, ujjwal anand wrote: > Hi, > I am creating a function ftsc(x) > where x is given by: > x<-cname <- file.path("C:/Users/anand/Desktop/Internship", "dataftc") > In the

Re: [R-pkg-devel] Guidance on importind multiple text files for @example

2017-05-11 Thread Zhian Kamvar
I sent this earlier, but from a different email and it bounced on the list: You might try placing a directory (e.g. foo) of a few small dummy text files in inst/ and then in the example use: system.file("foo") as the input to your example. That being said, system.file() often confuses users, s

Re: [R-pkg-devel] Re-creating vignettes after update of data or different mechanism to create reports?

2017-05-11 Thread Rainer Krug
> On 11 May 2017, at 15:49, Duncan Murdoch wrote: > > On 11/05/2017 8:31 AM, Rainer Krug wrote: >> Hi >> >> I am building two packages: >> >> - a data package which contains the data and function to extract it (several >> datasets, linked, like an sql database) and >> - an analysis package wh

Re: [R-pkg-devel] Guidance on importind multiple text files for @example

2017-05-11 Thread ujjwal anand
Hi, I am creating a function ftsc(x) where x is given by: x<-cname <- file.path("C:/Users/anand/Desktop/Internship", "dataftc") In the dataftc folder I have stored all the text files to be clustered by my function. So, while creating the package I have to include an example and that is my problem.

Re: [R-pkg-devel] Re-creating vignettes after update of data or different mechanism to create reports?

2017-05-11 Thread Duncan Murdoch
On 11/05/2017 8:31 AM, Rainer Krug wrote: Hi I am building two packages: - a data package which contains the data and function to extract it (several datasets, linked, like an sql database) and - an analysis package which contains functions to analyse the data in the data package and depends

Re: [R-pkg-devel] Guidance on importind multiple text files for @example

2017-05-11 Thread Duncan Murdoch
On 11/05/2017 6:42 AM, ujjwal anand wrote: Hello Sir/Ma'am, I am trying to build a package on R. But my function, which takes a folder full of text files as an argument. So, could you please share some ideas on how to import a folder (which contains multiple text files) for "@example". Not sur

Re: [R-pkg-devel] Fwd: Re-creating vignettes after update of data or different mechanism to create reports?

2017-05-11 Thread Rainer Krug
> On 11 May 2017, at 14:59, Holger Hoefling wrote: > > Hi Rainer, > > thanks for the explanation. No problem. > You probably already considered this - but you could version-bump the > analysis package with every data package update (and make the latest data > package the minimum requirement

Re: [R-pkg-devel] Fwd: Re-creating vignettes after update of data or different mechanism to create reports?

2017-05-11 Thread Holger Hoefling
Hi Rainer, thanks for the explanation. You probably already considered this - but you could version-bump the analysis package with every data package update (and make the latest data package the minimum requirement). Given how large the data package is - the overhead of an analysis package version

[R-pkg-devel] Fwd: Re-creating vignettes after update of data or different mechanism to create reports?

2017-05-11 Thread Rainer Krug
Sorry - forgot to cc the list > Begin forwarded message: > > From: Rainer Krug > Subject: Re: [R-pkg-devel] Re-creating vignettes after update of data or > different mechanism to create reports? > Date: 11 May 2017 at 14:41:03 GMT+2 > To: Holger Hoefling > > >> On 11 May 2017, at 14:35, Holg

[R-pkg-devel] Re-creating vignettes after update of data or different mechanism to create reports?

2017-05-11 Thread Rainer Krug
Hi I am building two packages: - a data package which contains the data and function to extract it (several datasets, linked, like an sql database) and - an analysis package which contains functions to analyse the data in the data package and depends on the data package. The data package is up

[R-pkg-devel] Guidance on importind multiple text files for @example

2017-05-11 Thread ujjwal anand
Hello Sir/Ma'am, I am trying to build a package on R. But my function, which takes a folder full of text files as an argument. So, could you please share some ideas on how to import a folder (which contains multiple text files) for "@example". Thanks, Ujjwal Anand [[alternative HTML vers