Re: [R] Print and plot a cross Data

2020-08-07 Thread Jim Lemon
Hi Pedro, Scratch that last email. I remembered that "tus.datos" was so large that it was hanging my R session last time. However, this seems to work: tus.datos<-read.table("datayield.csv",sep=";", header=TRUE,stringsAsFactors=FALSE) row_subset<-tus.datos$DATA_TYPE_FM %in% data_types & tus.datos

Re: [R] Print and plot a cross Data

2020-08-07 Thread Jim Lemon
Hi Pedro, I think the error arises in your "if" statement, should be: if(PERIOD == TRUE) or more simply: if(PERIOD) Jim On Thu, Aug 6, 2020 at 11:54 PM Pedro páramo wrote: > > Hi Jim, > > Many thanks for your help, I will try a 2D plot and then pass to 3D. > > I am trying something like this:

Re: [R] How Can I Build a Standalone Binary

2020-08-07 Thread Jeff Newmiller
While I have not attempted to apply this to Shiny apps on the desktop, layered container technology (e.g. Docker) is being rolled out for desktop app distribution on Linux (snap, flatpak) and Windows (Open Packaging Conventions), with which complex filesystem structures can be managed in isolate

Re: [R] How Can I Build a Standalone Binary

2020-08-07 Thread Duncan Murdoch
I don't think it's feasible to do what you want. At a very basic level, R assumes it has files distributed across a file system (mostly below the R.home() directory). Faking that in a single standalone executable may be possible but wouldn't be easy. If running a server isn't possible, then

Re: [R] find end of monotonic part of vector

2020-08-07 Thread Rui Barradas
Hello, I should have continued, inline. Às 15:05 de 07/08/20, Rui Barradas escreveu: Hello, Maybe I'm not understanding but looking at this graph i <- diff(kalo.v$vodiv) > 0 plot(kalo.v) lines(kalo.v) points(kalo.v$cas[i], kalo.v$vodiv[i], pch = 16, col = "red") it seems you want the point

Re: [R] find end of monotonic part of vector

2020-08-07 Thread Rui Barradas
Hello, Maybe I'm not understanding but looking at this graph i <- diff(kalo.v$vodiv) > 0 plot(kalo.v) lines(kalo.v) points(kalo.v$cas[i], kalo.v$vodiv[i], pch = 16, col = "red") it seems you want the point before the first local minimum? min(which(i)) - 1L #[1] 20 Hope this helps, Rui Ba

[R] find end of monotonic part of vector

2020-08-07 Thread PIKAL Petr
Hallo all I have such data > dput(kalo.v) structure(list(cas = structure(c(1595847000, 1595847060, 1595847120, 1595847180, 1595847240, 1595847300, 1595847360, 1595847420, 1595847480, 1595847540, 1595847600, 1595847660, 1595847720, 1595847780, 1595847840, 1595847900, 1595847960, 1595848020, 1595

Re: [R] How Can I Build a Standalone Binary

2020-08-07 Thread Duncan Murdoch
Wouldn't it be easier to set up a Shiny host system, and just give your collaborators a URL to the Shiny app running there? Duncan Murdoch On 06/08/2020 5:32 p.m., Knecht, Logan wrote: Hello all, = The short version = I am trying to build a standalone version for R so that I can bun

[R] How Can I Build a Standalone Binary

2020-08-07 Thread Knecht, Logan
Hello all, = The short version = I am trying to build a standalone version for R so that I can bundle and package a self-hosted environment for a shiny app. There are reasons for this decision, but it will only distract from the discussion. The inspiration for this comes from here: htt