Displaying 20 results from an estimated 5000 matches similar to: "Documenting different OO-aproaches in R as a package?"
2010 Jul 04
1
Fwd: Functional programming and R: Recommendations?
Hello R list members,
I have a good object-oriented programming and software engineering background
(mostly Java) and know some R.
I'd like to learn more about functional programming concepts and its support
and application in R. Do you have any recommendations (books, links etc)?
I read (and like) "Programming in Scala" (Odersky) and just ordered
"Funktionale
2010 Jul 26
1
OOP module
Hello,
Does anybody know if the OOP module (Chambers & Temple Lang) is going to replace the the S4 (and the S3) class system? http://www.omegahat.org/OOP/oop.pdf
Cheers!!
Albert-Jan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public
2010 Jul 22
1
class
Hello,
### I created two classes "A" and "B". "A" is the superclass of "B".
setClass("A", representation(s1="numeric"),prototype=prototype(s1=8))
setClass("B",contains="A",representation(s2="character"),prototype=list(s2="hi"))
myA=new("A")
myB=new("B")
#### I created
2010 Jun 12
1
calling a function with new inputs every 1 minute
I have inputs to a function which are changing all the time - I pull these
values from the internet. I then apply a function to the values. What I'd
like to do is automate the process so it runs every one minute and adds the
output of the function as a new element of a vector. Pseudo code:
at Start time:
input1_t0, input2_t0, input3_t0
function(input1_t0, input2_t0, input3_t0)
2010 Sep 11
2
How to comment out entire code parts in Sweave files
Hi,
I am wondering if there is any convenient way to comment out an entire region of
a Sweave file which comprises R and Latex code. Currently I'm doing it for the R
and Latex parts separately or transfer the unwanted part into a different file.
But both are not great solutions. (I am doing this when updating old files and
debugging)
Is there a way to do this with an equivalent of
2010 May 24
6
switching elements of a vector
Hi,
I would like to receive help for the following matter:
If I'm dealing with a numeric vectors containing increasing elements.
i.e.
a<-c(1,2,2,2,2,3,3,3,4,4,4,5,5,6,7,7,7)
There exist an efficient way to obtain an vector that indicates the position
of the changing element of "a"?
In this case it would be something like:
index<-c(1,6,9,12,14,15)
usually I'm used
2010 Aug 20
7
Latex no where to be seen
I'm experimenting using R as a report writer. I'm told LaTex is the
destination for my quest. But ?latex() gives me an error. The package
manager does not have it. The package installer can't find it. Where is it?
It amazes me that there's not a built in "report" function that can produce
the same kinds of reports that every report writer and data analysis
software in
2010 May 28
2
5.4-->5.5 Upgrade broke OO 3.2.0
In order to get an OpenOffice configuration that is closer in
compatibility with MS Office 2007, I removed the standard OO in 5.4 via
yum and installed the latest (3.2.0) from OpenOffice.org. Ran that
config for many months without a problem.
However, when I allowed the upgrade to 5.5, OO broke. I finally had to
remove all traces of OO 3.2.0, and start over. That worked...until yum
tells me that
2007 Sep 24
7
zfs chattiness at boot time
Hi all,
I recently started seeing zfs chattiness at boot time: "reading zfs config"
and something like "mounting zfs filesystems (n/n)".
Is this really necessary? I thought with SMF the times where every script
announced its'' existance had gone (and good thing, too).
Can''t we print something only if it goes wrong?
Michael
--
Michael Schuster
Recursion,
2012 Jun 21
2
Have download.packages consider non-CRAN repositories
Hi List,
I've set up a CRAN-like repository (not a CRAN mirror) on the local
filesystem (this will change to http in the future). R has been told
about this repository using the following entry in
R_HOME/etc/repositories:
PMR2 PMR2 file:///Users/arbeit/Documents/clarin/Open_Science/PMR2/
TRUE TRUE FALSE FALSE
Now I expected download.packages(), install.packages() etc. to look
for
2009 Jan 30
1
OO programming & S3/S4 paradigm - General question
Hi,
Being relatively new to OO programming and not so old on R, I noticed the possibility to do OO programming in R.
But it seems there is two "paradigms" S3 that seems the old one but is the one used in the R.oo package and S4 which seems more recent
As a starting point, which one is best to use? Is R.oo useful? what are the main difference between the two?
Any feedback
2011 Aug 23
1
R.oo modify an object inside another classes method
Can someone show me how to modify one (R.oo) class's object inside another
(R.oo) class's method? Is that possible with the R.oo package? A quick
example or reference to an example would be outstanding...
Thanks,
Ben
[[alternative HTML version deleted]]
2018 Nov 20
3
[PATCH v4 0/2] v2v: -o openstack: -oo verify-server-certificate=(true|false) (RHBZ#1651432).
The first patch restricts passthrough parameters to ones matching
"os-*". This was how it was documented, but not how it was
implemented.
The second patch is the same as v2 here:
https://www.redhat.com/archives/libguestfs/2018-November/msg00187.html
Rich.
2009 Oct 26
3
R.oo and S4?
There are different way to make R classes. I know R.oo and S4. I'm
wondering which one is the current popular one. Which one is current
recommended when make new R packages? Thank you!
2006 Jan 20
1
:interactive Callback
Hi!
I have a question concerning the :interactive Callback from the
link_to_remote function.
Quote from the API:
"Called when the user can interact with the remote document, even
though it has not finished loading."
What is the exact status of the application on "interactive" - How can
a user interact with the document if it''s still loading...
Thanks
Stefan
2008 Mar 02
1
About R-Project
Hello,
My name is Ion Andronache and I am a candidate for a doctor's degree on
geomorphology in Braila, Romania. I would like to ask for some advice. I
would like to make an analysis on the Danube's flow capacity and to
determine the circles and periodicity using the Schuster system. I
understood that your soft can do these operations but I don't know how.
Would you be so kind to
2011 Jun 16
1
Question about R.oo package
Dear R.oo package users,
while testing some functionality of the R.oo, I found that during the first construction of a object from a class, the constructor is twice called, but only one object is finalized.
In all subsequent creation processes, the constructor is (expectedly) called once.
Here some example code:
library(R.oo)
setConstructorS3("Test_class",function(val) {
2018 Nov 20
3
[PATCH v3] v2v: -o openstack: Allow -oo insecure (RHBZ#1651432).
A smaller change than v2, we simply generalize the ability to pass
through flags to the underlying openstack command, allowing the
--insecure flag to be specified directly.
Rich.
2008 Dec 10
1
First call to constructor fails (R.oo)
Hi all,
I'm trying to do some object-oriented programming in R using the R.oo
package.
Right from the start I encountered a strange (at least for me) problem. I
define a new class/constructor based on the R.oo documentation.
However the first attempt to create an object fails:
=== Code: ===
library(R.oo);
setConstructorS3("MyClass",function(param) {
print(param);
2003 Feb 13
3
OO programming in R
Dear,
I'm looking for some examples on OO programming in R. I have the
programming manual with explanation on UseMethod and NextMethod but I
miss some practical examples to get me going (I hope). I searched the
web but could not find a good independent tutorial on this.
Any suggestions are welcome,
Kris
--
------------------------------------------------------------------------