[R] Is it possible to include shiny code in a package?

2014-03-02 Thread Marc Girondot

Dear list member,
I would like to include shiny code within a package. My idea was to 
include a folder 'shiny' for example and to put in this folder the files 
server.R and ui.R required for shiny as well as the css file and a 
style.R file that call this css file.

Is it possible ?
When I call the build command, how to say to include this folder? Or are 
there other way to do?

Thanks a lot
Marc

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Is it possible to include shiny code in a package?

2014-03-02 Thread Uwe Ligges



On 02.03.2014 08:59, Marc Girondot wrote:

Dear list member,
I would like to include shiny code within a package. My idea was to
include a folder 'shiny' for example and to put in this folder the files
server.R and ui.R required for shiny as well as the css file and a
style.R file that call this css file.
Is it possible ?
When I call the build command, how to say to include this folder? Or are
there other way to do?


Put it in the ./inst/shiny folder which is copied to ./shiny in the 
installed package. See Writing R Extensions.


Best,
Uwe Ligges



Thanks a lot
Marc

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.