similar to: Running examples with R5 constructor from package failing

Displaying 20 results from an estimated 3000 matches similar to: "Running examples with R5 constructor from package failing"

2012 Jun 25
1
Very simple question R5 setRefClass and Initialize
Hi, New to this list, and glad I found R5 which si a great improvement to R for my work. Something seems odd anyway, when I do a setRefClass, the initialize method execute at the class definition. I would like it to execute only when an instance is created. How can I do that? I found no way to test if the code execution is when the class definition happens or when a $new instance is created.
2012 Nov 08
1
Dabbling with R5 setRefClass - Inheritance problems
Hello, I wrote a class like so: > rcfdpsuperclass <- setRefClass( > Class="rcfdpsuperclass", > fields = list( > RcfpdVersion = "character"), > methods = list( > initialize = function(){ > 'Populates fields with defaults and lock as appropriate' > initFields( > RcfpdVersion =
2015 May 23
5
NEWS.md support on CRAN
Are there any plans for CRAN to support NEWS files in markdown? Bit of a hassle to go the the package?s Github (or other like) site to read NEWS.
2015 Jun 02
4
NEWS.md support on CRAN
Hi Kurt, On 1 June 2015 at 14:02, Kurt Hornik wrote: | >>>>> peter dalgaard writes: | | >> On 30 May 2015, at 01:20 , Imanuel Costigan <i.costigan at me.com> wrote: | >> | >> So I assume this commit means NEWS.md is now no longer on blacklist? | >> | | > ....in the development version. Not true of released versions. | | Now also in r-patched.
2015 May 30
2
NEWS.md support on CRAN
> On 30 May 2015, at 01:20 , Imanuel Costigan <i.costigan at me.com> wrote: > > So I assume this commit means NEWS.md is now no longer on blacklist? > ....in the development version. Not true of released versions. -pd > https://github.com/wch/r-source/commit/9ffe87264a1cd59a31a829f72d57af0f1bfa327a > > Sent from my iPad > > On 23 May 2015, at 6:05 pm, Kurt
2012 Feb 21
1
Private Variables in R5-Classes possible?
Hi list, is there a way to define some kind of private Variable? I would like to prevent the user from manipulating fields on his own, in order to not destroy data structures. The problem is, that as soon as the variable exists in the environment it is accessible via t$secret_value. test <- setRefClass("test", fields=list( secret = function(value){ cat("the function was
2015 May 23
6
NEWS.md support on CRAN
>>>>> Duncan Murdoch writes: > On 22/05/2015 8:49 PM, Imanuel Costigan wrote: >> Are there any plans for CRAN to support NEWS files in markdown? Bit of a hassle to go the the package?s Github (or other like) site to read NEWS. > Not as far as I know. There have been discussions about increasing the > support of Markdown, but so far the conclusion has been that
2015 Jun 03
4
NEWS.md support on CRAN
>>>>> Duncan Murdoch writes: > On 02/06/2015 11:05 AM, Dirk Eddelbuettel wrote: >> Hi Kurt, >> >> On 1 June 2015 at 14:02, Kurt Hornik wrote: >> | >>>>> peter dalgaard writes: >> | >> | >> On 30 May 2015, at 01:20 , Imanuel Costigan <i.costigan at me.com> wrote: >> | >> >> | >> So I assume
2015 Jun 05
3
R-devel Digest, Vol 148, Issue 5
It's disappointing that many packages do not have a NEWS file. Perhaps CRAN should require NEWS or CHANGELOG, as long as the system is being reformed to potentially accommodate markdown anyway. -Thomas Thomas J. Leeper http://www.thomasleeper.com On Fri, Jun 5, 2015 at 12:00 PM, <r-devel-request at r-project.org> wrote: > Date: Thu, 04 Jun 2015 12:39:34 -0400 > From: Duncan
2015 Jun 02
1
NEWS.md support on CRAN
I realise this is not directly related to the topic but if changes are afoot would it be possible to make the use of any sort of news or changelog more prominent in the documentation? I maintain one of the CRAN task views and when someone updates his/her package it is much, much easier for me to see what has happened and if I need to update the text if they supply a news or changelog. On
2013 Oct 04
2
Possible POSIXlt / wday glitch & bugs.r-project.org status
Wanted to raise two questions: 1. Is bugs.r-project.org down? I haven't been able to reach it for two or three days: ``` ping bugs.r-project.org PING rbugs.research.att.com (207.140.168.137): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 Request timeout for icmp_seq 2 Request timeout for icmp_seq 3 Request timeout for icmp_seq 4 Request timeout for icmp_seq 5
2015 Jun 02
2
NEWS.md support on CRAN
On 2 June 2015 at 11:25, Duncan Murdoch wrote: | On 02/06/2015 11:05 AM, Dirk Eddelbuettel wrote: | > Hi Kurt, | > | > On 1 June 2015 at 14:02, Kurt Hornik wrote: | > | >>>>> peter dalgaard writes: | > | | > | >> On 30 May 2015, at 01:20 , Imanuel Costigan <i.costigan at me.com> wrote: | > | >> | > | >> So I assume this commit means
2015 May 24
2
NEWS.md support on CRAN
On 23/05/2015 9:15 PM, Imanuel Costigan wrote: > While a parsed HTML version of the NEWS.md file would be nice, I would like something much simpler: being able to "see? this file in the Help pane in RStudio That isn't really any simpler. RStudio is just displaying HTML whenever it shows you anything in the Help pane. or being about to run something like show_news(?packagename?).
2015 May 24
2
NEWS.md support on CRAN
On 23/05/2015 10:26 PM, Imanuel Costigan wrote: > >> On 24 May 2015, at 12:07 pm, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: >> >> On 23/05/2015 9:15 PM, Imanuel Costigan wrote: >>> While a parsed HTML version of the NEWS.md file would be nice, I would like something much simpler: being able to "see? this file in the Help pane in RStudio >>
2011 Dec 08
1
Reference class finalize() fails with 'attempt to apply non-function'
This bug appears intermittently in R CMD check when reference classes have finalize methods. The problem is that garbage collection can be run after the methods package is no longer available. It affects (periodically) the Bioconductor AnnotationDbi package as well as packages that contain Rcpp classes. To reproduce: library(methods) a = setRefClass("A",
2011 Oct 31
1
Question about copying reference objects using the initialize method
Dears, I have a question about copying reference objects using the initialize method. 1) If the latter has no arguments, there is no problem to copy an object. myClass = setRefClass("myClass", fields = list(value = "numeric") ) myClass$methods(initialize = function(...){ ? value <<- 1 ? callSuper(...) }) newObject = myClass$new() newObject$value = 2 copyObject =
2011 May 04
1
General "nil" reference class object
Dear John and others, I've been wondering about whether there's any way to indicate a "nil" reference class object, which will represent "no value", and be tested for, but not fail the internal type checking. NULL is the obvious choice (or seems so to me), but can only be used if an explicit class union is created: > Foo <- setRefClass("Foo") > Bar
2011 Jun 01
1
possibly invalid assertion in setRefClass?
> setRefClass("Foo", fields = list()) Error in setRefClass("Foo", fields = list()) : A list argument for fields must have nonempty names for all the fields In my opinion, the above should not fail. There are no fields. Thanks, Michael [[alternative HTML version deleted]]
2012 Oct 27
2
Class generator functions for reference classes
As of rev. 61035 in r-devel, setRefClass() now returns a generator function, as setClass() has done since 2.15.0. The convenient style is now: mEdit <- setRefClass("mEdit",......) xx <- mEdit(data = xMat) instead of xx <- mEdit$new(data = xMat) The returned object still has fields and methods accessible as before. See the "Value" and "Reference Class
2010 Nov 21
1
reference classes: question on inheritance
Dear list, I have a reference class which should act as a "generic" superclass for other classes. I've read the respective section at ?setRefClass and put the name of the superclass to the 'contains' argument of an example subclass (see class defs below). Classnames are set in a way that shouldn't result in collation issues (virtual def sourced before superclass def