Re: [R] getting historical data from cryptocurrency exchange

2020-11-25 Thread Gergely Daróczi
Hi,

I've started https://github.com/daroczig/binancer for educational
purposes, but since then, it became pretty feature-rich for the
Binance API, and you can get historical data for free (see
binance_klines).

Best,
Gergely


On Thu, Nov 26, 2020 at 12:13 AM arnaud gaboury
 wrote:
>
> I need to download basic OHLCV (Open, High, Low, Close, Volume) in a
> hourly format from various cryptocurrency exchanges.
> There is the crypto package[0] but it has been removed from CRAN. Then
> there is the coinmarketcapr[1] package on CRAN, but it is limited to a
> paid service, coinmarketcap, which sell data.
>
> Browsing the web, I mainly found Python scripts to fetch the data, which
> I would like to avoid. Can anyone point me to any github or website with
> material about crypto data fetching with R?
>
> Thank you
>
>
> [0]https://cran.r-project.org/web/packages/crypto/index.html
> [1]https://github.com/amrrs/coinmarketcapr
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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 -- To UNSUBSCRIBE and more, see
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] Tables, knitr markdown

2016-02-22 Thread Gergely Daróczi
On Mon, Feb 22, 2016 at 3:36 PM, Santosh <santosh2...@gmail.com> wrote:
> Thanks, Gergely.. I wonder if it allows to insert lines etc as sent in
> previous email which might need some additional preprocessing..

AFAIK that's not possible, as pandoc's markdown has no markup to add
horizontal/vertical lines in tables as per
http://pandoc.org/README.html#tables
But a possible workaround is to generate HTML and load that in Word/OpenOffice.

>
> Best,
> Santosh
>
>
> On Mon, Feb 22, 2016 at 3:27 PM, Gergely Daróczi <gerg...@snowl.net> wrote:
>>
>> On Mon, Feb 22, 2016 at 1:55 PM, Duncan Murdoch
>> <murdoch.dun...@gmail.com> wrote:
>> >
>> > On 22/02/2016 3:46 PM, Santosh wrote:
>> >>
>> >> Just figured out..
>> >>
>> >> as.data.frame(as.matrix(),stringsAsFactors=F)
>> >>
>> >> could work! :)
>> >
>> >
>> > Why do you want to produce Markdown output?  the tables package
>> > (lowercase t!) can produce output in either LaTeX or HTML.  Just tell knitr
>> > to leave the output alone, e.g. for PDF output
>> >
>> > ```{r results="asis"}
>> > require(tables)
>> > tab <- tabular( (Species + 1) ~ (n=1) + Format(digits=2)*
>> >  (Sepal.Length + Sepal.Width)*(mean + sd), data=iris )
>> > latex(tab)
>> > ```
>> >
>> > or for HTML output
>> >
>> > ```{r results="asis"}
>> > require(tables)
>> > tab <- tabular( (Species + 1) ~ (n=1) + Format(digits=2)*
>> > (Sepal.Length + Sepal.Width)*(mean + sd), data=iris )
>> > html(tab)
>> > ```
>>
>>
>> In case of you would rather generate markdown instead of HTML/LaTeX to
>> be independent from the resulting output document format, you can give
>> a try to the "pander" package, which can transform quite many R object
>> types into markdown, eg:
>>
>> #> library(tables)
>> #> tab <- tabular( (Species + 1) ~ (n=1) + Format(digits=2)*
>> #+  (Sepal.Length + Sepal.Width)*(mean + sd), data=iris )
>> #> pander::pander(tab)
>>
>> 
>>  \\Sepal.Length\\Sepal.Width\\
>>   Species n meansd   meansd
>>     --- 
>>   *setosa*505.01   0.35  3.43   0.38
>>
>> *versicolor*  505.94   0.52  2.77   0.31
>>
>> *virginica*   506.59   0.64  2.97   0.32
>>
>>*All* 1505.84   0.83  3.06   0.44
>> 
>>
>> Please find more details at
>> http://rapporter.github.io/pander/#generic-pander-method, or the
>> knitr+pander vignette at
>> https://cran.rstudio.com/web/packages/pander/vignettes/knitr.html
>>
>> Best,
>> Gergely
>>
>>
>> >
>> >
>> >
>> >
>> > Duncan Murdoch
>> >
>> >
>> >>
>> >>
>> >> On Mon, Feb 22, 2016 at 12:17 PM, Santosh <santosh2...@gmail.com>
>> >> wrote:
>> >>
>> >>> Dear Rxperts..
>> >>> I am able to generate tables using Tables R package..
>> >>> However, when I have been unsuccessful in using kable (from knitr
>> >>> package)
>> >>> to generate the table in R markdown script..
>> >>>
>> >>> It's because the output generated by "tabular" in Tables package is of
>> >>> class "tabular". The kable function in knitr package accepts
>> >>> data.frame.
>> >>>
>> >>> Is there a way to convert the tabular class objects into data.frame
>> >>>   objects?
>> >>>
>> >>> Or is there a way that kable can accept "tabular" class object?
>> >>>
>> >>>
>> >>> Thanks so much..
>> >>> Santosh
>> >>>
>> >>
>> >> [[alternative HTML version deleted]]
>> >>
>> >> __
>> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> >> 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 -- To UNSUBSCRIBE and more, see
>> > 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 -- To UNSUBSCRIBE and more, see
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] Tables, knitr markdown

2016-02-22 Thread Gergely Daróczi
On Mon, Feb 22, 2016 at 1:55 PM, Duncan Murdoch
 wrote:
>
> On 22/02/2016 3:46 PM, Santosh wrote:
>>
>> Just figured out..
>>
>> as.data.frame(as.matrix(),stringsAsFactors=F)
>>
>> could work! :)
>
>
> Why do you want to produce Markdown output?  the tables package (lowercase 
> t!) can produce output in either LaTeX or HTML.  Just tell knitr to leave the 
> output alone, e.g. for PDF output
>
> ```{r results="asis"}
> require(tables)
> tab <- tabular( (Species + 1) ~ (n=1) + Format(digits=2)*
>  (Sepal.Length + Sepal.Width)*(mean + sd), data=iris )
> latex(tab)
> ```
>
> or for HTML output
>
> ```{r results="asis"}
> require(tables)
> tab <- tabular( (Species + 1) ~ (n=1) + Format(digits=2)*
> (Sepal.Length + Sepal.Width)*(mean + sd), data=iris )
> html(tab)
> ```


In case of you would rather generate markdown instead of HTML/LaTeX to
be independent from the resulting output document format, you can give
a try to the "pander" package, which can transform quite many R object
types into markdown, eg:

#> library(tables)
#> tab <- tabular( (Species + 1) ~ (n=1) + Format(digits=2)*
#+  (Sepal.Length + Sepal.Width)*(mean + sd), data=iris )
#> pander::pander(tab)


 \\Sepal.Length\\Sepal.Width\\
  Species n meansd   meansd
    --- 
  *setosa*505.01   0.35  3.43   0.38

*versicolor*  505.94   0.52  2.77   0.31

*virginica*   506.59   0.64  2.97   0.32

   *All* 1505.84   0.83  3.06   0.44


Please find more details at
http://rapporter.github.io/pander/#generic-pander-method, or the
knitr+pander vignette at
https://cran.rstudio.com/web/packages/pander/vignettes/knitr.html

Best,
Gergely


>
>
>
>
> Duncan Murdoch
>
>
>>
>>
>> On Mon, Feb 22, 2016 at 12:17 PM, Santosh  wrote:
>>
>>> Dear Rxperts..
>>> I am able to generate tables using Tables R package..
>>> However, when I have been unsuccessful in using kable (from knitr package)
>>> to generate the table in R markdown script..
>>>
>>> It's because the output generated by "tabular" in Tables package is of
>>> class "tabular". The kable function in knitr package accepts data.frame.
>>>
>>> Is there a way to convert the tabular class objects into data.frame
>>>   objects?
>>>
>>> Or is there a way that kable can accept "tabular" class object?
>>>
>>>
>>> Thanks so much..
>>> Santosh
>>>
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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 -- To UNSUBSCRIBE and more, see
> 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 -- To UNSUBSCRIBE and more, see
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] data.frmae : Error: unexpected numeric constant in:

2014-02-27 Thread Gergely Daróczi
Dear Beata,

how do you try to load the data? Copy-pasting that amount of characters
into the R console might now work due to size limitations of the clipboard.
Or do you get this error when calling source on the file?

Best,
Gergely

--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
On Feb 27, 2014 4:38 PM, Beáta Nagy beatanag...@gmail.com wrote:

 Dear R-users,



 I would like to load into R  a  data.frame which record size is 2000.



 And I got an error message:

 

 daaa$freq-c(255899,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,32,34,36,38,40,42,23,25,27,29,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,60,61,62,63,8,8,8,8,8,8,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,13,14,15,16,24,26,28,30,32,34,36,38,40,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,59,60,61,62,63,64,8,7,7,7,7,7,7,6,12,13,14,15,16,17,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,81,82,83,84,85,86,22,22,22,22,22,22,25,26,27,28,29,30,34,36,38,40,42,29,30,31,32,33,34,20,20,14,14,14,14,14,14,8,8,8,8,7,7,7,7,7,7,6,6,6,6,6,6,6,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,!

  
 30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,77,79,81,83,85,87,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,69,71,73,75,77,79,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,!
  68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,11

 0,112,114,116,118,8,8,8,8,8,8,8,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,197,199,201,147,148,149,150,151,15,15,15,15,15,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,6,7,8,9,10,11,12,13,14,15,16,17,19,21,23,25,27,29,31,33,35,37,29,30,31,32,34,35,36,37,38,39,38,39,40,41,42,43,44,45,46,47,48,49,50,52,53,54,55,56,57,58,59,60,61,62,63,8,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,11!

  
 6,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,215,217,219,221,223,225,227,229,231,233,235,237,239,241,243,245,247,249,251,253,255,257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,311,313,315,317,319,321,323,325,327,329,331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,36!
  1,363,365,367,369,371,373,375,377,379,381,383,248,249,250,251,252,253,
 2

 +

 

Re: [R] ascii-grid export

2013-11-02 Thread Gergely Daróczi
If I understand what you are up to, my pander package might help. You
mean something like this?
I used the example form the package manual.

 library(pander)
 data(meuse)
 coordinates(meuse) = ~x+y
 pander(variogram(log(zinc)~1, meuse))


 np   dist   gamma   dir.hor   dir.ver   id
 -- --- - - 
 57  79.29  0.1234  0 0 var1

299   164   0.2162  0 0 var1

419  267.4  0.3028  0 0 var1

457  372.7  0.4121  0 0 var1

547  478.5  0.4634  0 0 var1

533  585.3  0.5647  0 0 var1

574  693.1   0.569  0 0 var1

564  796.2  0.6187  0 0 var1

589  903.1  0.6471  0 0 var1

543   1011  0.6916  0 0 var1

500   1118  0.7034  0 0 var1

477   1221  0.6039  0 0 var1

452   1329  0.6517  0 0 var1

457   1437  0.5665  0 0 var1

415   1543  0.5748  0 0 var1


Best,
Gergely


On 2 November 2013 09:55, Enzo Cocca enzo@gmail.com wrote:

 hi,

 I want to export in ascii-grid file a semivariogram map that I have did
 with gstat library.

 How can I make it?

 Somebody can help me?
  thanks!

 enzo
 --
 Enzo Cocca (PhD Candidate)
 Research Fellow
 Università di Napoli L'Orientale
 mail: enzo@gmail.com
 cell: +393495087014

 [[alternative HTML version deleted]]


 __
 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.



[[alternative HTML version deleted]]

__
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] Hungarian R User's Group: ggplot2 - The Grammar of Graphics

2013-10-13 Thread Gergely Daróczi
Dear useRs,

I am more than happy to announce the next meeting of the Hungarian RUG that
will take place on the 24th of October, and Zoltán Tóth, senior data
engineer at Prezi.com, will speak about Hadley's awesome ggplot2 package.

More details (HUN):
http://www.meetup.com/Budapest-Users-of-R-Network/events/142204572/

Come and visit the Budapest Users of R Network and beside listening to
interesting talks, join us for this rather socializing event and meet other
R users living in Hungary! And have some pizzas and drinks paid by our
sponsors :)

See you soon, best,
Gergely

[[alternative HTML version deleted]]

__
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] failure to replayPlot() a recordedplot object saved in a previous session?

2013-09-25 Thread Gergely Daróczi
It might worth checking out this nice workaround of JJ:
https://github.com/Rapporter/pander/blob/master/R/evals.R#L1135

Best,
Gergely


On 25 September 2013 02:35, Paul Murrell p...@stat.auckland.ac.nz wrote:

 Hi

 Attempting to use a display list snapshot (as created by recordPlot())
 between R sessions has always been strongly discouraged, but as of about R
 3.0.0 it has become impossible (due to internal changes, which was part of
 the reason for strongly discouraging this in the first place).

 Sorry to be the bearer of bad news.

 Paul

 On 09/13/13 10:54, MacQueen, Don wrote:

 I have the following experience.

 If I use, for example,
 tmp -  recordPlot()
 in a session, then immediately the saved plot replays successfully using
 replayPlot()
 in the same session. But not in the next R session. See examples below,
 copy/pasted from my shell window.

 The first R session is brand new; no saved objects left over from a
 previous session.

 I also have the same experience with R 3.0.1 patched on a linux machine
 (RHEL).


 Is this a known or expected behavior?

 Thanks
 -Don


  R session #1

 mydir[42]% R

 R version 3.0.1 Patched (2013-08-13 r63562) -- Good Sport
 Copyright (C) 2013 The R Foundation for Statistical Computing
 Platform: x86_64-apple-darwin10.8.0 (64-bit)

 R is free software and comes with ABSOLUTELY NO WARRANTY.
 You are welcome to redistribute it under certain conditions.
 Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

 R is a collaborative project with many contributors.
 Type 'contributors()' for more information and
 'citation()' on how to cite R or R packages in publications.

 Type 'demo()' for some demos, 'help()' for on-line help, or
 'help.start()' for an HTML browser interface to help.
 Type 'q()' to quit R.


 x11()
 plot(1:2)
 tmp - recordPlot()
 replayPlot(tmp)
 q()

 Save workspace image? [y/n/c]: y




  R session #2


 mydir[43]% R

 R version 3.0.1 Patched (2013-08-13 r63562) -- Good Sport
 Copyright (C) 2013 The R Foundation for Statistical Computing
 Platform: x86_64-apple-darwin10.8.0 (64-bit)

 R is free software and comes with ABSOLUTELY NO WARRANTY.
 You are welcome to redistribute it under certain conditions.
 Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

 R is a collaborative project with many contributors.
 Type 'contributors()' for more information and
 'citation()' on how to cite R or R packages in publications.

 Type 'demo()' for some demos, 'help()' for on-line help, or
 'help.start()' for an HTML browser interface to help.
 Type 'q()' to quit R.

 [Previously saved workspace restored]

  ls()

 [1] tmp

 class(tmp)

 [1] recordedplot

 x11()
 replayPlot(tmp)

 Error: NULL value passed as symbol address


 sessionInfo()

 R version 3.0.1 Patched (2013-08-13 r63562)
 Platform: x86_64-apple-darwin10.8.0 (64-bit)

 locale:
 [1] C

 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods   base






 --
 Dr Paul Murrell
 Department of Statistics
 The University of Auckland
 Private Bag 92019
 Auckland
 New Zealand
 64 9 3737599 x85392
 p...@stat.auckland.ac.nz
 http://www.stat.auckland.ac.**nz/~paul/http://www.stat.auckland.ac.nz/~paul/

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


[[alternative HTML version deleted]]

__
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] Hungarian R User's Group: Exploratory and interactive data analysis talks on Wednesday

2013-09-24 Thread Gergely Daróczi
Dear useRs,

although we have just (around a month ago) founded the Budapest Users of R
Network, I am more than happy to announce that 75 members already joined
and we are very close to take part in the first official meeting.

We will meet at the ELTE University, Budapest, Hungary at 18:00 (CET)
tomorrow, and there will be two talks on the _iplots_ and _shiny_ packages
in Hungarian language.

Please feel free to join us and have a pizza and a few drinks with us :)

More info: http://www.meetup.com/Budapest-Users-of-R-Network

Best,
Gergely

[[alternative HTML version deleted]]

__
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] Hungarian R User's Group (Gergely Dar?czi)

2013-08-13 Thread Gergely Daróczi
Hi Pancho,

there are already a bunch of R User Groups around the world:
http://rwiki.sciviews.org/doku.php?id=rugs:r_user_groups

The Revolution Analytics guys has posted some tips on how to found one (
http://www.revolutionanalytics.com/news-events/r-user-group/how-to-start-r-user-group.php)
and they also offer some sponsorship.

What I did here was fairly simple: I wrote a few mails to some some of my
contacts who speak R, also posted some messages on mailing lists and forums
that we should come together. I already got some great feedback, so
hopefully there will be an active Hungarian RUG soon, where we can have
talks, workshops and tutorials on R related topics, or simply to get to
know some other useRs and their field of interest. So it does sounds
exciting indeed, and we will see about the results soon.

And yes: AFAIK R was announced exactly 20 years ago, so that's a great time
to found RUG(s) :)

Best,
Gergely



On 13 August 2013 13:29, Pancho Mulongeni 
p.mulong...@namibia.pharmaccess.org wrote:

 Hi Gergely!
 This sounds so exciting - so R is turning 20 years old? How did you set up
 your R users' group? What are the best practices in going about to set one
 up?
 I would be keen on establishing one here in Windhoek, Namibia.


 Pancho Mulongeni
 Research Assistant
 PharmAccess Foundation
 1 Fouché Street
 Windhoek West
 Windhoek
 Namibia

 Tel:   +264 61 419 000
 Fax:  +264 61 419 001/2
 Mob: +264 81 4456 286





[[alternative HTML version deleted]]

__
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] Hungarian R User's Group

2013-08-12 Thread Gergely Daróczi
Dear All,

please let me write about a slightly off-topic, but highly R and
community-related event, as I am more than happy to announce the birth of
the first Hungarian RUG in Budapest started right now:
http://www.meetup.com/Budapest-Users-of-R-Network

We will meet on the 30th of August (around the 20th anniversary of
announcing R on the S-news mailing list!) probably at ELTE, Északi
épület to chat about the goals of this user group and to get to know each
other. Please regard the meeting as an informal get-together event and do
not forget to register at the above meetup link. I would also love to hear
your feedback on the homepage or on the BURN mailing list.

I hope we will meet soon!

Best,
Gergely

[[alternative HTML version deleted]]

__
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] RWeb Server

2013-08-11 Thread Gergely Daróczi
Hi Ed,

our rapporter.net service might be useful for you that lets users create
brew-flavored report templates (text with R chunks) to be run on datasets.
So this is a cloud solution to be used directly via the frontend, or called
dynamically from any webpage via API:
http://blog.rapporter.net/2013/01/lets-rapplicate.html

I would be more than happy to hear your feedback.

Best,
Gergely


On 11 August 2013 21:43, Wiebe, Ed@CDCR ed.wi...@cdcr.ca.gov wrote:

 Hello,

 I am looking for tutorials on setting up R on a Windows 2008 server for
 the purpose of making calls from web pages (e.g. SharePoint) or report
 engines (e.g. SSRS) to embed inline dynamically rendered R content. I found
 the link to RWeb (http://www.math.montana.edu/Rweb/) which I was hoping
 would get me started in the right direction, but apparently the links are
 broken and the contact is no longer available. Other than that I have not
 been able to find related support.

 Is there any help you can offer to get me going?

 Thank you!

 Ed




 Ed Wiebe, Manager
 Enterprise Architecture, Enterprise Information Services
 California Department of Corrections and Rehabilitation
 1900 Birkmont Drive
 Rancho Cordova, CA 95742
 1-916-358-1866 Desk
 1-916-358-2019 Fax
 ed.wi...@cdcr.ca.govhttps://ca.mail.ca.gov/OWA/UrlBlockedError.aspx

 The key to successfully doing something is in successfully understanding
 what you're doing.
 - Thomas Erl

 [[alternative HTML version deleted]]

 __
 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.


[[alternative HTML version deleted]]

__
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] [R-pkgs] New package about migration indices

2013-08-08 Thread Gergely Daróczi
Dear useRs,

me and my colleague (cc) have recently released a new package on CRAN about
computing various migration indices like the Crude Migration Rate, the
Effectiveness and Connectivity Index, different Gini indices or the
Coefficient of Variation.

I hope that some of you dealing with migration matrices in the R console
would find this small package useful:
http://cran.r-project.org/web/packages/migration.indices/

Best,
Gergely

[[alternative HTML version deleted]]

___
R-packages mailing list
r-packa...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages

__
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] how to transform string to Camel Case?

2013-04-15 Thread Gergely Daróczi
Dear Liviu,

I have just updated tocamel to have a new argument, so the development
version of the package would produce:

  tocamel(z, upper = TRUE, sep = ' ')
[1] R Project  Hello WorldSomething Else

Best,
Gergely

PS #1: to install the dev branch you might give a try to the devtools
package:

 library(devtools)
 install_github('rapport', 'rapporter', 'development')

PS #2: Alex (cc) pls verify.


On 15 April 2013 08:50, Liviu Andronic landronim...@gmail.com wrote:

 Dear all,
 Given the following vector:
  (z - c('R project', 'hello world', 'something Else'))
 [1] R project  hello worldsomething Else

 I know how to obtain all capitals or all lower case letters:
  tolower(z)
 [1] r project  hello worldsomething else
  toupper(z)
 [1] R PROJECT  HELLO WORLDSOMETHING ELSE

 I saw the tocamel() function in 'rapport', but it doesn't do what I
 want to achieve as it actually proceeds to camelCase/CamelCase the
 strings:
  tocamel(z)
 [1] RProject  helloWorldsomethingElse


 But how should I proceed to obtain Camel Case? Here's what I'd like to get:
 c('R Project', 'Hello World', 'Something Else')


 Regards,
 Liviu


 --
 Do you know how to read?
 http://www.alienetworks.com/srtest.cfm
 http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
 Do you know how to write?
 http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

 __
 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.


[[alternative HTML version deleted]]

__
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] how to transform string to Camel Case?

2013-04-15 Thread Gergely Daróczi
On 15 April 2013 14:10, Liviu Andronic landronim...@gmail.com wrote:

 On Mon, Apr 15, 2013 at 10:10 AM, Gergely Daróczi gerg...@snowl.net
 wrote:
  Dear Liviu,
 
  I have just updated tocamel to have a new argument, so the development
  version of the package would produce:
 
   tocamel(z, upper = TRUE, sep = ' ')
  [1] R Project  Hello WorldSomething Else
 
 Thanks for putting this in. Unfortunately as with other approaches it
 fails on NA values:
 z - c(R project, hello world, something Else, NA)
  tocamel(z, sep=' ', upper=T)
 [1] R Project  Hello WorldSomething Else NANA

 Can this be fixed? Thanks,
 Liviu


I have added an extra check in the function for NA values before applying
`paste` at
https://github.com/Rapporter/rapport/compare/34ca6a35fb...a04abc8b21
Alex might not like it :)

Example:

  tocamel(z, upper = TRUE, sep = ' ')
[1] R Project  Hello WorldSomething Else NA

Best,
Gergely

[[alternative HTML version deleted]]

__
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] how to call R in PHP

2013-03-28 Thread Gergely Daróczi
Hi,

rapache.net is definitely worth to check.
And also rook from the same author (Jeffrey Horner).

Best,
Gergely

On 28 March 2013 03:19, Lauren Zhang zxj19880...@yahoo.cn wrote:

 Hi,
 I met tough problems when calling R in PHP. I have tried several ways, but
 none of them succeed.
 first of all, I tried Rserve, but I failed to connect to it.
 Then, I tried cmd.exe. I get the result when I use R CMD BATCH
 --vanilla... in cmd, but I have no idea how to call cmd in php.
 I know system() is good to call other systems, I triedbut I get no
 result in my html page.
 if you could provide some suggestion or examples, i would appreciate your
 help.

 the code in my php is£º
 $cmd=R CMD BATCH--vanilla --slave delete.r;
 $res=system($cmd);

 the code in the delete.r file is:
 setwd(c://wamp//www//analysis);
 x-4;
 y-3;
 z-x*y;
 sink(125.txt);
 png(file=125.png);
 barplot(z,border=dark blue)
 title(main=list(earning of comparison,font=4));
 plot(x,z);
 dev.off()

 [[alternative HTML version deleted]]


 __
 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.



[[alternative HTML version deleted]]

__
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] Automatic script for updating packages in R

2013-03-25 Thread Gergely Daróczi
Hi,

you might also want to check out some nice helpers of the opencpu
and opencpu.tools packages made by Jeroen Ooms:
https://raw.github.com/jeroenooms/opencpu.tools/master/R/install.all.packages.R

Best,
Gergely

On 25 March 2013 11:21, Twaha Mlwilo uddessy2...@hotmail.com wrote:


 Hello all,Good day,Internet access have been a problem , and learning R  
 forced to download packages manual.I  have google for script for automatic R 
 update  didnt getPlease any one with help?am using ubuntu 12.04
 R-2.5.3Thank you
 [[alternative HTML version deleted]]

 __
 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.


Re: [R] R web application development

2013-03-20 Thread Gergely Daróczi
Hello John,

sure, you might want to check out the below applications for your
purposes with a dedicated server:

 * http://rapache.net
 * http://opencpu.org

And we also do something similar at http://rapporter.net in the means
of Rapplications on cloud servers.

Best,
Gergely

On 19 March 2013 00:55, John linux-user johnlinuxu...@yahoo.com wrote:

 Dear all,

 I am wondering if what would be the simple way to develop a simple web 
 application that runs R. That is, the web application allows any user upload 
 a dataframe as a variable to my web server, a linux-based apache, and then 
 run a R package (my package) on the variable that should ideally be handled  
 as a variable in memory instead of saving to the disk in my server , for 
 security concern. After running, the result would be returned to the web.  
 Any suggestion will be appreciated.

 Best,

 John
 [[alternative HTML version deleted]]


 __
 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.


Re: [R] remove specific number of rows from a matrix

2013-03-20 Thread Gergely Daróczi
Hi Andras,

what about:

 d[-(1:length(f)), ]
 a  b
[1,] 3  8
[2,] 4  9
[3,] 5 10

Best,
Gergely

On 20 March 2013 22:53, Andras Farkas motyoc...@yahoo.com wrote:

 Dear All,

 sorry, got stuck again on the following: let us say we have:

 a -c(1:5)
 b -c(6:10)
 d -cbind(a,b)


 from d I would like to remove total number of rows based on the length of
 f. So if:

 f -c(1)

 my result is working great with the following solution:

 d[-length(f),]

 so I get: a  b
 [1,] 2  7
 [2,] 3  8
 [3,] 4  9
 [4,] 5 10 but if I do: f -c(1,2) then I get:  a  b
 [1,] 1  6
 [2,] 3  8
 [3,] 4  9
 [4,] 5 10 which tells us ideed, the code works well:-), but it is not what
 I need Instead, I wanted to remove row #1 adn row#2 from the matrix to
 get: [1,] 3  8
 [2,] 4  9
 [3,] 5 10  as the end result. Please provide your insights to solve this
 problem.  Any input would be greatly appreciated, thanks, Andras
 [[alternative HTML version deleted]]


 __
 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.



[[alternative HTML version deleted]]

__
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] Export R generated tables and figures to MS Word

2013-03-13 Thread Gergely Daróczi
Just to second Jeff's answer about pandoc[1] with a minimal reproducible
example, you might give a try to my pander package [2] too:

 library(pander)
 Pandoc.brew(system.file('examples/minimal.brew', package='pander'),
output = tempfile(), convert = 'docx')

Where the content of the minimal.brew file is something you might have
got used to with Sweave - although it's using brew syntax instead. See
the examples of pander [3] for more details. Please note that pandoc should
be installed first, which is pretty easy on Windows.

Best,
Gergely

  [1] http://johnmacfarlane.net/pandoc/
  [2] http://rapporter.github.com/pander/
  [3] http://rapporter.github.com/pander/#examples

On 13 March 2013 03:28, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote:

 knitr markdown+pandoc gives serviceable results, for low enough
 expectations
 ---
 Jeff NewmillerThe .   .  Go Live...
 DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live
 Go...
   Live:   OO#.. Dead: OO#..  Playing
 Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
 /Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
 ---
 Sent from my phone. Please excuse my brevity.

 Santosh santosh2...@gmail.com wrote:

 Dear Rxperts,
 I am aware of Sweave that generates reports into a pdf, but do know of
 any
 tools to generate to export to a MS Word document...
 
 Is there  a way to use R to generate and export report/publication
 quality
 tables and figures and export them to MS word (for reporting purposes)?
 
 Thanks so much,
 Santosh
 
[[alternative HTML version deleted]]
 
 __
 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.


[[alternative HTML version deleted]]

__
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] crontab to Run R Code

2013-01-17 Thread Gergely Daróczi
Not sure if it would solve all your problems, but try to specify absolute
path first e.g. for R, as *your* PATH is not available for the cronjob.

Best,
Gergely

On Thu, Jan 17, 2013 at 2:53 PM, Pinaki pinakimah...@gmail.com wrote:

 Could not figure out where I am going wrong. Following is my code in
 crontab -e:-

 MAILTO: users

 MAILTO= users

 # m h  dom mon dow   command
 3 19 * * * $HOME/users/REPORT/MAIL; time R --slave  report.R

 [[alternative HTML version deleted]]

 __
 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.


[[alternative HTML version deleted]]

__
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] simplifying code

2012-12-17 Thread Gergely Daróczi
Hello Andras,

what about: plot(TIME1, output0*exp(-0.3*TIME1))

Best,
Gergely

On Mon, Dec 17, 2012 at 2:04 PM, Andras Farkas motyoc...@yahoo.com wrote:

 Dear All,

 I was wondering if you could help me with the following:
 I have the code:

 tin -0.5
 tau -24
 output0 -10
 TIMELOW -tin
 TIMEHIGH -1*tau
 TIME1 -c(seq(TIMELOW,TIMEHIGH, by = sign(TIMEHIGH-TIMELOW)*(tau-tin)/3))

 then I would like to calculate:

 cp1 -output0*exp(-0.3*TIME1[1])
 cp2 -output0*exp(-0.3*TIME1[2])
 cp3 -output0*exp(-0.3*TIME1[3])
 cp4 -output0*exp(-0.3*TIME1[4])

 then
 plot(TIME1,c(cp1,cp2,cp3,cp4))

 is there a way to rewrite the equations for calculating the cp(1 to n) in
 a single line so that the run of the code will produce the vector
 c(cp1,cp2,cp3,cp4)? At the end, I would like to have those values
 calculated at once as opposed to using a new command line to incorporate
 the different values for TIME1...

 thanks,

 Andras
 [[alternative HTML version deleted]]


 __
 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.



[[alternative HTML version deleted]]

__
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] googleVis plot and knitr/sweave

2012-11-30 Thread Gergely Daróczi
Just a lame question: is there any chance to generate SVG maps with
googleVis and import that in LaTeX?

Best,
Gergely

On Fri, Nov 30, 2012 at 2:02 AM, Yihui Xie x...@yihui.name wrote:

 Then you can take a look at the ggmap (on CRAN) or snippets package
 (on Simon's RFroge: http://rforge.net/snippets/), which supports
 OpenStreet Map; googleVis is HTML/SVG based.

 Regards,
 Yihui
 --
 Yihui Xie xieyi...@gmail.com
 Phone: 515-294-2465 Web: http://yihui.name
 Department of Statistics, Iowa State University
 2215 Snedecor Hall, Ames, IA


 On Thu, Nov 29, 2012 at 5:00 PM, Filoche pmassico...@hotmail.com wrote:
  Hi and thank you for your answer.
 
  In fact, I don't really need the interactive part of googleVis map. So if
  there's a way to plot a static version of the map it would be perfect for
  me.
 
  Regards,
  Phil

 __
 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.


[[alternative HTML version deleted]]

__
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] Can R be embedded in html?

2012-11-29 Thread Gergely Daróczi
I grab the opportunity to suggest giving a try `pander` package, which
holds a forked version of `brew` called `Pandoc.brew`.
If you are familiar with `brew`, you could easily create nicely formatted
HTML output automatically beside other formats, example:
http://rapporter.github.com/pander/#examples

But if you want to run those files directly, then RApache is the way to go
with `RHandler brew::brew`, although that would end up in a spaghetti code.
It's better to keep R and HTML separately in the long run.

Best,
Gergely

On Thu, Nov 29, 2012 at 4:41 PM, jagat.k.sh...@wellsfargo.com wrote:

 Try R package 'brew'? From its package description

 Description:brew implements a templating framework for mixing
 text and R code for report generation. brew
 template syntax is similar to PHP, Ruby's erb
 module, Java Server Pages, and Python's psp module.

 There is also the rApache project and many other useful links mentioned on
 R Web Interfaces on the R FAQ page.

 Jagat

  -Original Message-
  From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
  project.org] On Behalf Of chawla
  Sent: Wednesday, November 28, 2012 9:04 AM
  To: r-help@r-project.org
  Subject: [R] Can R be embedded in html?
 
  Hi
  I have previously used PHP script in HTML to connect website with the
  database and do analysis.
  Is it also possible to execute R scripts within HTML files?
  Basically I want to create an application where user can input data
  such
  as gene list and their expression values, which can be processed by R
  and result be displayed or made available for download.
  If there is some guide on how to do this please give the link.
  Thanks
  Konika
 
  __
  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.


[[alternative HTML version deleted]]

__
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] rapache memory problem

2012-11-22 Thread Gergely Daróczi
Hello mrzung,

it depends on several factors.

First of all: do your clients use RApache for computations in separate
sessions (possible which computations does not build on the previous ones)
or do they need a stateful application?

The first would be pretty easy to resolve, just clean the R environment at
the end your R scripts (which is a must in long running R sessions anyway).
If the users have direct access to R console (or some similar dynamic
solution and the app needs previous environments despite the fact that
Apache works with children), then e.g. clean the session when they log out.

I think opencpu http://opencpu.org/ would handle all this, and with
Apparmor (or with another great tool of Jeroen to set the limits
dynamically from R: RAppArmor https://github.com/jeroenooms/RAppArmor)
you can force (R)Apache not take more then given amount of RAM, and kill
the process. Well, not always when the users would want that :)

Best,
Gergely


On Thu, Nov 22, 2012 at 5:56 AM, mrzung mrzun...@gmail.com wrote:

 Hi all;
 Now I'm developing web application by using rapache in ubuntu.
 My problem is that as users execute the application, the server PC
 cumulates
 memory.
 After users close or refresh the application page, the server PC memory is
 still cumulated.
 Now I'm renewing apache machine by manually in terminal.

 Is there any way to kill memory when users refresh or close the application
 page?

 Thanks,




 --
 View this message in context:
 http://r.789695.n4.nabble.com/rapache-memory-problem-tp4650412.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 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.


[[alternative HTML version deleted]]

__
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] OT: Any web based report delivery software that support R out there ?

2012-11-13 Thread Gergely Daróczi
Hello Paul,

we are definitely doing something like this at http://rapporter.net based
on our pander/rapport etc. packages. Please let me know if you would have
further questions.

BTW our `rapport` package (which definitely needs an update on CRAN, so
please check out the recent version on Github if interested:
https://github.com/Rapporter/rapport) was made just for this exact need:
creating reporting templates which could be run against any data set with
optional parameters - and with the option to export the results to pdf,
docx, odt etc.

I hope you would find this useful.

Best,
Gergely

On Tue, Nov 13, 2012 at 11:31 PM, Paul p...@paulhurley.co.uk wrote:

 I'm looking for something, but I'm not sure quite how to describe it, so
 maybe the list can help.

 I use R to produce several different reports using database  ODBC  R 
 Sweave  pdf report.

 Ideally I would like to be able to upload the report 'templates' to a web
 page, and allow users to request them to be run at certain times with
 certain parameters, and pick up the resulting reports once they've been
 executed.

 Is there anything out there like this ?  I have seen a propriatry system
 called Pipeline Pilot by Accelrys that effectivley does this.

 Regards,

 Paul.

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


[[alternative HTML version deleted]]

__
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] Any good R server-with connection examples

2012-10-22 Thread Gergely Daróczi
On Mon, Oct 22, 2012 at 3:35 PM, sagarnikam123 sagarnikam...@gmail.comwrote:

 I want to connect R with HTML/PHP pages to take input from user,do  some
 statistical processing on it   show results to HTML page again.
 I search on net,i got Rserve package,but examples  are mainly for java
 langaure  not for PHP
 i am wondering how to connect it to PHP-Apache-MySQL
 Is there any good tutorial/video which will tell me how to do that ?
 At least tell me logical way how to use it ?



I would check out opencpu http://opencpu.org/.

Best,
Gergely



 -
 Sagar Nikam
 B.Pharm, M.Sc(Bioinformatics)
 Software Engineer (Data Research Analyst )
 Trendwise Analytics,Bangalore
 India
 --
 View this message in context:
 http://r.789695.n4.nabble.com/Any-good-R-server-with-connection-examples-tp4647010.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 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.


[[alternative HTML version deleted]]

__
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.