[R] Help/information required

2017-09-17 Thread Ajay Arvind Rao
Hi, We are using open source license of R to analyze data at our organization. The system configuration are as follows: *System configuration: o Operating System - Windows 7 Enterprise SP1, 64 bit (Desktop) o RAM - 8 GB o Processor - i5-6500 @ 3.2 Ghz *R Version: o

Re: [R] Shiny App inside R Package

2017-09-17 Thread Marc Girondot via R-help
I have this working in my package embryogrowth available in CRAN. I have a function to call the shiny app: web.tsd <- function() {   if (!requireNamespace("shiny", quietly = TRUE)) {     stop("shiny package is absent; Please install it first")   } getFromNamespace("runApp", ns="shiny")(appDir

Re: [R] Shiny App inside R Package

2017-09-17 Thread Thierry Onkelinx
Dear Axel, I tend to place Shiny apps in the "inst" directory of the package. See https://stackoverflow.com/questions/37830819/developing-shiny-app-as-a-package-and-deploying-it-to-shiny-server Best regards, ir. Thierry Onkelinx Statisticus/ Statiscian Vlaamse Overheid / Government of Flanders

Re: [R] Help with RDA analysis, function ''varpart'' in vegan

2017-09-17 Thread Jari Oksanen
The varpart function does not have na.action argument, and all undefined arguments are regarded as explanatory data sets X (they come after …). Best wishes, Jari Oksnaen __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R] Shiny App inside R Package

2017-09-17 Thread Axel Urbiz
Dear List, I have a wrapper function that creates a Shiny App, as illustrated below. I'd like to include the function myApp() inside a package. I'd appreciate your guidance here, as I could not find good instructions on this online. myApp <- function(x) { require(shiny) shinyApp( ui =

Re: [R] Help with RDA analysis, function ''varpart'' in vegan

2017-09-17 Thread Bert Gunter
Doubt that will make any difference. My guess is that there is a function in the environment that varpart wants to use as an object -- i.e. there is a scoping bug in varpart. But that could be baloney, too. Please learn about R's debugging tools. Give us the results of traceback() after the

Re: [R] Help with RDA analysis, function ''varpart'' in vegan

2017-09-17 Thread Eric Berger
I am not familiar with the vegan package, so I am just making a guess here. If 'na.action=na.omit' is part of the call to varpart, try removing it from the function call and moving it above as follows: options(na.action="na.omit") RDA_Ger <- varpart(comm, x1, x2, x3, transfo="hellinger", scale =