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] 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] 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