On 27 Jun 2005, [EMAIL PROTECTED] wrote:
> I only wish the Bioconductor E-mail somehow got on the gmane
> "newgroups" too.
I think we can do something about that :-)
+ seth
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-d
On 6 Jul 2005, [EMAIL PROTECTED] wrote:
> In fact, on Windows R is not case sensitive in the 1st or 3rd word
> on the line "R CMD install", only in the 2nd, so I can see Gabor's
> point. However, I have to admit I always use "Rcmd install"; I put
> the "R CMD ..." version in place to help Unix re
A recent thread on R-help reminded me of some questions I have
regarding the path separator on Windows.
The thread: [R] using paste and "\" to create a valid filename
The question:
What are the use-cases where "\" is required for paths passed as
character vectors from within R?
My experience ha
On 20 Aug 2005, [EMAIL PROTECTED] wrote:
> It _does_ dynamically read .Platform$file.sep, and it has an fsep
> argument so you can do
>
> file.path("foo", "bar", fsep="\\")
>
> Beware though of namespaces: you would need to change
> .Platform$file.sep in the base namespace (which you can do):
>
>>
We're seeing many warnings like this:
Warning: S3 method 'print.check_code_usage_in_package' was declared in
NAMESPACE but not found
But the package's NAMESPACE does not contain such a declaration.
Seeing this in many Bioconductor packages when running R CMD check on
Windows with R-devel built 1
On 2 Sep 2005, [EMAIL PROTECTED] wrote:
> My SVN checkout of the r-devel sources seems to have it:
>
> $ grep print.check_code_usage_in_package *
> QC.R:print.check_code_usage_in_package <-
>
> and it also seems to be in the r-devel .tar.gz from ETHZ.
>
> Are you sure you have a current version of
We are trying to setup a Windows server that will allow any of our
users to build a binary R package given a source package.
The idea is to have a central R installation and allow users to
install packages to their own package library for the purposes of
binary package building.
It seems, however
On 9 Sep 2005, [EMAIL PROTECTED] wrote:
> I have written a whole bunch of methods for objects of class
> "octonion".
>
> So far I've done about a dozen generic functions such as
> seq.octonion(), rep.octonion(), [<-.octonion(), and so on and so on.
>
> Very nearly all of these functions are appli
On 8 Sep 2005, [EMAIL PROTECTED] wrote:
>>> installing inst files installing data files installing man source
>>> files installing indices cannot create
>>> d:/biocbld/R-devel/doc/html/search/index.txt: permission denied
>
> I was also annoyed about this point a couple of times. But what are
> po
On 10 Sep 2005, [EMAIL PROTECTED] wrote:
> I like the suggestion about using a Changelog (or whatever it would
> be called) field in the package DESCRIPTION meta-data. If we have
> that, we could not only use this for repository-side presentation of
> the package, but also install such info and ha
On 20 Sep 2005, [EMAIL PROTECTED] wrote:
> As I said above, and will try to emphasize, I really do not want R
> CMD check to do any checking of Uses (unless asked to do
> so). Developers that use Uses need to make sure that their package
> works and passes R CMD check whether the package is there o
On 20 Sep 2005, [EMAIL PROTECTED] wrote:
> I'd like to indicate progress of a calculation from within a C
> shared library to the R GUI. The apparent function call is
> flush.console() after RPrintf, but it isn't clear to me what the
> easiest way to do this is. Would it be possible to add a flag
On 23 Sep 2005, [EMAIL PROTECTED] wrote:
> It would probably be a good idea to deprecate warning.expression in
> the next release, rather than beefing it up. If we don't have a
> good method to do what Thomas wants, we should add it, but
> warning.expression doesn't look like the right way to do i
On 29 Sep 2005, [EMAIL PROTECTED] wrote:
> It might be my settings or improper use -- but if I use the
> "installWithVers=TRUE" flag for update.packages(), I don't seem to
> get updates; and if I use
> "install.packages(new.packages(),installWithVers=TRUE)", it seems to
> (re-)install identical ve
On 7 Oct 2005, [EMAIL PROTECTED] wrote:
> On 10/7/05, Duncan Murdoch <[EMAIL PROTECTED]> wrote:
>> Gabor Grothendieck wrote:
>>> Is there some way of automatically including the svn version
>>> number of a package in the DESCRIPTION file or otherwise so that
>>> one can check from within R which
Hi,
I'm trying to learn how to use the tryCatch condition system and am
confused about the behavior when I set the call arg of a
simpleCondition.
I want to catch an error if it meets a certain criteria and otherwise
reraise it. I want the error message to indicate the function in
which the error
Hi all,
I'm considering building some tools to generate UML diagrams of R
packages.
Q: Does anyone know of existing R code that does UML-ish stuff?
Thanks,
+ seth
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On 31 Oct 2005, [EMAIL PROTECTED] wrote:
> I'm interested in looking at some examples of existing R packages
> that rely heavily on S4 classes to get a feel for varying styles and
> package organization techniques. Could you recommend any packages
> that might serve as a good starting point?
I wo
On 4 Nov 2005, [EMAIL PROTECTED] wrote:
> I set my standard libraries in R_LIBS, so when I use lib.loc it is
> for experimental things. So I would neither want the .libPaths
> changed nor be affected if they were.
With the current semantics, if one is testing a _collection_ of
experimental packa
The Writing R Extensions manual instructs developers who use S4
classes and methods in a package with a name space to:
There needs to be an .onLoad action to ensure that the methods package
is loaded and attached:
.onLoad <- function(lib, pkg) require(methods)
I'm wondering
Robert and I will be teaching an advanced R programming course January
18-20, 2006 in Seattle.
Learn more here: http://bioconductor.org/rforbioc
The topics we plan to cover include:
* Lexical Scope
* Vectorization
* Object Oriented Programming (S3 and S4)
* Writing R packages
* Database
On 23 Nov 2005, [EMAIL PROTECTED] wrote:
> I can see no change in the relevant code since 2.2.0 and the release
> version of 2.2.0 does this for me.
>
> It seems to be a long-standard error in rui.c that only 10 menus are
> allocated but 16 are tested for.
Would it be possible for the allocation
I'm seeing a segfault on x86_64 Linux with the following code:
desc = read.dcf("BAD")
con = gzfile("test.gz", "wt")
write.dcf(desc, file=con)
close(con)
where BAD has a long field (see below for example). The crash happens
inside dummy_vfprintf. I think the issue is that the
On 27 Nov 2005, [EMAIL PROTECTED] wrote:
> Unfortunately va_copy is an ISO C99 function, so not always
> available.
>
> Please do heed the posting guide and give us real details of your OS
> and compiler, as they do matter here (stdarg.h is often
> compiler-specific).
> R.version
On 9 Dec 2005, [EMAIL PROTECTED] wrote:
> Does R have a function to obtain a name of the machine that it is
> running on? I'm going to be writing results to a database from
> several different machines, and I'd like to be able to identify
> where they came from.
Sys.info has nodename which shoul
I would like to be able to use anonymous connections in R and have
them close themselves when they go out of scope.
Here is an example of what I think should work, but does not at
present:
## create test file
x <- 1:10
fn <- "anon-con-test-x.rda"
save(x, file=fn)
testUrl <- paste("file:/", getwd
On 27 Dec 2005, [EMAIL PROTECTED] wrote:
> This is a bug in load, isn't it? load() opens the connection but
> doesn't close it.
Well, it may be that load needs a small fix, but that doesn't fix
anonymous connections in general, IMO.
The loop could easily have been:
for (i in 1:50) {
print(l
On 29 Dec 2005, [EMAIL PROTECTED] wrote:
> So far the following reasonable suggestions have been made. I
> forget where they were posted, so you may not have seen them:
>
> - the Subversion revision number, at least for non-released versions
> - the version number of the GUI, at least for OS X (wh
The default initialization for slots of class "factor" and
"data.frame" gives NULL. This seems odd, since those slots can't ever
be set to NULL by the user. I would expect zero-length instances of
factor and data.frame.
Here is an example:
setClass("FOO", representation(a="factor", b="data.fram
On 3 Jan 2006, [EMAIL PROTECTED] wrote:
> you might need a call to "setOldClass"; see Section "Register or
> Convert?" of the corresponding help page.
That doesn't seem to make a difference. Note that other non-S4 slots
like "matrix" initialize in an appropriate (non-NULL) fashion.
___
On 3 Jan 2006, [EMAIL PROTECTED] wrote:
> It's legal to have virtual classes as slots, but yes, the slot is
> NULL in the prototype for the new class, unless the user specifies a
> value. In your case, providing a non-null prototype for the
> data.frame slot might be the desired solution.
Yes, t
On 1 Jan 2006, [EMAIL PROTECTED] wrote:
> However, that just isn't how connections are documented in the Green
> Book (referenced on all the relevant help pages, so required
> reading) and getConnection() allows you to create an R object
> pointing to a connection that previously had none.
Yes,
Spots are still available for an advanced R programming course to be
held Jan 18-20 in Seattle.
Instructors: Robert Gentleman
Seth Falcon
Topics:
Lexical scope
Vectorization
S3 and S4 OOP
R packages
Database connectivity
Interfacing to C via .C and .Call
You might want to take a look at the Bioconductor package RBGL which
provides an R interface to the BGL which is C++ STL heavy, I believe.
+ seth
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On 11 Jan 2006, [EMAIL PROTECTED] wrote:
> p.s. Note that one workaround is
>
>> bar <- function(n,...) { f <- function() foo(...);
> + replicate(n,f()) }
Another appears to be:
bar <- function(n, ...) {
args <- list(...)
replicate(n, do.call("foo", args))
}
+
I'm seeing errors with R CMD check that I don't understand when
checking a package that uses a NAMESPACE file with an import
directive. The imported package is listed in the DESCRIPTION file in
the Imports field.
DESCRIPTION contains:
Imports: arules
NAMESPACE contains:
import(arules)
T
On 19 Jan 2006, [EMAIL PROTECTED] wrote:
> We do recommend you try INSTALLing and loading the package before R
> CMD check. The most common problem I have found is that the DSO/DLL
> cannot be loaded, and there loading will give a more extensive error
> message.
Yes, the package INSTALLs and loa
A colleague sent me the following:
If you specify probabilities in the 'sample' function and forget
to type 'prob=...', then you get nonsense. E.g.
sample(1:10,1,c(0,0,0,0,1,0,0,0,0,0))
does not filter '5', while
sample(1:10,1,prob=c(0,0,0,0,1,0,0,0,0,0))
Hi all,
I would like to access the name of a variable passed to an S4 method.
For a function, I would do this:
f <- function(x) as.character(substitute(x))
This also works for a the examples I have tried for methods that do
not have extra, non-dispatch args:
setGeneric("A", function(x,
On 1 Feb 2006, [EMAIL PROTECTED] wrote:
> Every usage of these on CRAN is unnecessary. If you want to save the
> image, say so in the SaveImage field in DESCRIPTION (but why not
> LazyLoad instead?). If you require methods, say so in Depends in
> DESCRIPTION.
I've looked over the packages in the
Thanks for the explaination of LazyLoad, that's very helpful.
On 1 Feb 2006, [EMAIL PROTECTED] wrote:
> There is no intention to withdraw SaveImage: yes. Rather, if
> lazy-loading is not doing a complete job, we could see if it could
> be improved.
It seems to me that LazyLoad does something di
On 3 Feb 2006, [EMAIL PROTECTED] wrote:
> The short answer is that there are no known (i.e. documented)
> differences, and no examples on CRAN which do not work with
> lazy-loading (except party, which loads the saved image in a test).
> And that includes examples of packages which share S4 classe
On 5 Feb 2006, [EMAIL PROTECTED] wrote:
> I had a bumpy ride with this one.
>
> Ruuid/src/Makefile.win refers to src/include, which is not in a
> binary distribution so cannot be installed from an installed version
> of R 2.2.1. (That's a bug report.)
Thanks for the report, this has been fixed in
If one accidentally calls match(x, obj), where obj is any S4 instance,
the result is NA.
I was expecting an error because, in general, if a match method is not
defined for a particular S4 class, I don't know what a reasonable
default could be. Specifically, here's what I see
setClass("FOO", re
On 7 Feb 2006, [EMAIL PROTECTED] wrote:
> The solution has been agreed to be changing the internal
> representation of S4 objects making them a new SEXP (basic R
> "type"); and as Brian alludes to, the problem is that those in
> R-core that want to and are able to do this didn't have the time
> fo
Is there a way to rename a function when importing it? I want to say,
"import yourFunc from Foo as myFunc" in the NAMESPACE file.
Does this exist and I've missed it? If it doesn't exist, would others
think it useful (and possible)?
Best,
+ seth
_
On 7 Feb 2006, [EMAIL PROTECTED] wrote:
>> On 2/7/2006 8:48 PM, Seth Falcon wrote:
>>> Is there a way to rename a function when importing it? I
>> want to say,
>>> "import yourFunc from Foo as myFunc" in the NAMESPACE file.
>>
>
> I don
If a user mis-types a directive in the NAMESPACE file, the error
message is quite cryptic. If it was possible to report the offending
line/text that would likely give a valuable clue to the user.
Try putting the following line in NAMESPACE
foo("bar")
Then R CMD INSTALL says,
* Installing *sour
On 7 Feb 2006, [EMAIL PROTECTED] wrote:
> I suspect this line in namespace.R:
>
> }
> stop(gettextf("unknown namespace directive: %s", deparse(e)),
> call. = FALSE, domain = FALSE)
>
> Does domain=NA solve this?
Seems to me for me. I now see an error message like:
* Installing *source* packa
On 8 Feb 2006, [EMAIL PROTECTED] wrote:
> What about :
>
> bar <- pack::foo
> kok <- otherpack::foo
This is a solution, thanks for the suggestion. The downside is that
it doesn't let one be particularly specific about what one is using in
the NAMESPACE file. In fact, if one only wanted to use p
On 8 Feb 2006, [EMAIL PROTECTED] wrote:
>>> in a NAMESPACE file. Useful-- yes. Possible-- I don't know!
>> Yes, this is along the lines of what I was thinking. An unpleasant
>> work around would be to create a translation package
>> that does something along the lines of Duncan M.'s suggestion,
>
ng. CHARSXPs
should never be exposed at the user level and should instead be
elements of a character vector (STRSXP).
+ seth
--
Seth Falcon
http://userprimary.net/user
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Hi Jon,
* On 2009-06-30 at 15:27 +0200 Jon Olav Skoien wrote:
> I work on two packages, pkg1 and pkg2 (in two different projects). pkg1 is
> quite generic, pkg2 tries to solve a particular problem within same field
> (geostatistics). Therefore, there might be users who want to use pkg2 as an
>
m. One slot should be an external pointer which will give you
the ability to define a finalizer to clean up when the R level object
gets gc'd.
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/user
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
1", Rcmdr.Suggests)
havePkgs <- installed.packages()[, "Package"]
wantPkgs <- wantPkgs[!(wantPkgs %in% havePkgs)]
install.packages(wantPkgs)
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/user
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
2009/9/24 Hervé Pagès :
> > x <- charToRaw("ABCDEFGx")
> > x[c(1:3, NA, 6)] <- x[8]
>
> *** caught segfault ***
> address 0x8402423f, cause 'memory not mapped'
Thanks for the report. I have a fix which I will commit after some testing.
--
ckage? Making it easy
to do so is great, but in general if you can find a way to reduce
dependencies and have your package work, that is better. :-)
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/user
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
e R session in which you are
doing development.
The vignette in svUnit has an interesting approach for integrating
unit testing into R CMD check via examples in an Rd file within the
package.
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/user
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
--
Seth Falcon | @sfalcon | http://userprimary.net/user
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
purpose of Rscript is to enable R
script execution on unix-like systems like:
#!/path/to/Rscript --vanilla
print(1:10)
So then I'm not sure how useful it is for Rscript to handle such
files. Why not convert to a more common and portable line termination
for your R script file
On 10/29/09 7:00 AM, Abhijit Bera wrote:
Hi
I seem to have run into a situation where I have more than 3 arguments to
pass to a function from C.
the following functions help me build an expression for evaluation:
lang
lang2
lang3
lang4
What should one do if there are more arguments than lang4
On 10/29/09 7:38 AM, Abhijit Bera wrote:
Can't find the source to Rf_lang* series of functions. :|
But I'm thinking it should be like this correct me if I'm wrong:
PROTECT(e=lang4(install("myfunction"),arg1,arg2,arg3);
PROTECT(SETCAR(CDR(e),portConstraints));
PROTECT(portVal=R_tryEval(e,R_Globa
Hi,
On 11/3/09 2:28 PM, William Dunlap wrote:
The following odd call to rep()
gives somewhat random results:
rep(1:4, 1:8, each=2)
I've committed a fix for this to R-devel.
I admit that I had to reread the rep man page as I first thought this
was not a valid call to rep since times (1:8) i
Hi,
On 11/3/09 6:51 PM, mark.braving...@csiro.au wrote:
file.copy( 'd:/temp/Rdiff.Rd', 'd:/temp/scrunge.Rd') # Rdiff.Rd from 'tools'
package source
eglist<- list( scrunge=parse_Rd( 'd:/temp/scrunge.Rd'))
tools:::makeLazyLoadDB( eglist, 'd:/temp/ll')
e<- new.env()
lazyLoad( 'd:/temp/ll', e)
a
On 11/11/09 2:36 AM, Duncan Murdoch wrote:
On 10/11/2009 11:16 PM, Tony Plate wrote:
PS, I should have said that I'm reading the docs for unlink in
R-2.10.0 on a Linux system. The docs that appear in a Windows
installation of R are different (the Windows docs do not mention that
not all systems
{
f(TRUE) # this will raise an error
FALSE # only get here if no error
},
error = function(e) TRUE)
## verify we saw an error
stopifnot(res)
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/users
___
On 11/17/09 5:02 AM, Peng Yu wrote:
This may not easy to do, when the filename are not hard coded strings.
For example, the variable 'filename' is a vector of strings.
for (i in 1:length(filename)){
do something...
save(,file=filename[i])
}
That's right. I don't think there is a feasible
d files. I also can't
find them in any other function or help file.
So does anybody know where these functions are still listed that causes this
error?
Are you sure they are not in your NAMESPACE file?
--
Seth Falcon
Program in Computational Biology | Fred Hutchinson Cancer
On 1/1/10 1:40 PM, Peng Yu wrote:
> On Fri, Jan 1, 2010 at 6:52 AM, Barry Rowlingson
> wrote:
>> On Thu, Dec 31, 2009 at 11:27 PM, Peng Yu wrote:
>>> I don't see where describes the implementation of '[]'.
>>>
>>> For example, if x is a matrix or a data.frame, how the lookup of
>>> 'colname1' is
On 1/15/10 12:19 AM, Kurt Hornik wrote:
>> Jeff Ryan writes:
>
>> Hi Ross,
>> The quantmod package makes available routines from a variety of
>> contributed packages, but gets around your issues with a bit of, um,
>> trickery.
>
>> Take a look here (unless your name is Kurt ;-) ):
I believe
On 1/15/10 7:51 AM, Uwe Ligges wrote:
> the Windows checks for CRAN run with that setting, i.e.
>
> _R_CHECK_FORCE_SUGGESTS_=false
>
> Hence the multicore issue mentioned below actually does not exist.
I did not know that the Windows checks for CRAN used this setting.
My concern was initiated b
On 1/15/10 7:47 AM, Simon Urbanek wrote:
>
> On Jan 15, 2010, at 10:22 , Seth Falcon wrote:
>> I believe another option is:
>>
>> pkg <- "somePkg"
>> pkgAvail <- require(pkg, character.only = TRUE)
>> if (pkgAvail)
>> ...
>
on why you are using multiple calls
to setGeneric. That seems like a very odd thing to do.
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/user
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On 1/19/10 11:19 AM, Ross Boylan wrote:
If files that were read in later in the sequence extended an existing
generic, I omitted the setGeneric().
I had to resequence the order in which the files were read to avoid some
"undefined slot classes" warnings. The resequencing created other
problems,
On 1/28/10 3:50 AM, a.r.runna...@kent.ac.uk wrote:
At line 312 in src/main/platform.c (at the latest svn revision, 51039):
if (length(tl)>= 1 || !isNull(STRING_ELT(tl, 0)))
should not '||' read '&&'? Likewise four lines later.
Thanks, I'll
n example.
Quote from manual:
If you want to create and then link to a library, say using code in a
subdirectory, use something like
.PHONY: all mylibs
all: $(SHLIB) $(SHLIB): mylibs
mylibs: (cd subdir; make)
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/user
__
the dimension names. NA indices are propagated to the
result. Unmatched values and "" are not allowed and result in
an error.
Cheers,
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/user
__
R-devel@r-project
Hi,
On 2/16/10 10:31 AM, Jens Elkner wrote:
> Having currently a big problem with R 2.10.1 vanilla (Solaris):
>
> As soon as the R_LIBS_USER env var gets bigger than 1023 chars R
> completely ignores it and uses the default:
I guess the first question is, why do need such a long list of library
On 2/20/10 7:50 AM, Peter Dalgaard wrote:
> You don't want to understand, believe me! ;-)
>
> It's a bug, probably not the very worst kind, but accessing memory that
> isn't yours is potentially harmful (but writing to it is considerably
> worse).
>
> Looks like the issue only concerns the right
might be saved to disk now or in the future.
I agree with your reading: this is a temporary hash table and there
would be little reason to want to save it (it is not saved now).
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/user
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On 3/11/10 12:45 AM, Henrik Bengtsson wrote:
Thanks for the troubleshooting,
I just want to second this patch; it would be great if PATH_MAX could
be used everywhere.
The patch, or at least something quite similar, was applied in r51229.
+ seth
--
Seth Falcon | @sfalcon | http
Hi,
First thing to observe is that you are calling RSymbReg via .Call, but
that function does not return SEXP as is required by the .Call interface.
+ seth
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Hi Alistair,
On 3/12/10 4:37 PM, Alistair Gee wrote:
> I am using R-2-10 from subversion.
>
> In the implementation of do_listfiles() in platform.c, it appears to
> allocate a vector of length count where count is calculated by
> count_files(). It then proceeds to call list_files(), passing in th
On 3/15/10 8:37 PM, Alistair Gee wrote:
> I think I have a fix that avoids the problem by just growing the
> vector as necessary as the directory is traversed (and no longer uses
> count_lines()).
>
> I don't have access to the code at the moment, but I should be able to
> post the patch tomorrow.
On 3/17/10 7:16 AM, Alistair Gee wrote:
> Yes. I had noticed that R occasionally segfaults (especially when I
> run many concurrent R processes), so I used valgrind to log every use
> of R. In the valgrind logs, I tracked the problem to list_files().
>
> I attached a patch to platform.c (for trunk
rent lack of checking is a
"feature". I would be interested in a patch (with testing) for this.
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
methods should look for
'.conflicts.OK' even if it is not exported.
I guess I agree that there is no real value in forcing .conflicts.OK to
be exported. OTOH, this seems like a dubious feature to begin. When is
it a good idea to use it?
+ seth
--
Seth Falcon | @sf
On 3/20/10 1:36 PM, Alistair Gee wrote:
> I fixed my build problems. I also noticed that my patch wasn't
> correct, so I have attached a new version.
>
> This fix still grows the vector by doubling it until it is big enough,
> but the length is reset to the correct size at the end once it is
> kno
On 3/20/10 2:03 PM, Seth Falcon wrote:
On 3/20/10 1:36 PM, Alistair Gee wrote:
I fixed my build problems. I also noticed that my patch wasn't
correct, so I have attached a new version.
This fix still grows the vector by doubling it until it is big enough,
but the length is reset to the co
On 3/22/10 3:57 AM, Martin Maechler wrote:
"SF" == Seth Falcon
on Fri, 19 Mar 2010 13:47:17 -0700 writes:
SF> On 3/17/10 9:11 AM, Henrik Bengtsson wrote:
>> Currently library() and attach() fail to locate an
>> existing '.conflicts.O
On 3/27/10 1:43 PM, Duncan Murdoch wrote:
> On 25/03/2010 3:16 PM, Arni Magnusson wrote:
>> I'm relaying a question from my institute's sysadmin:
>>
>> Would it be possible to modify update.packages() and related functions
>> so that 'lib.loc' accepts integer values to specify a library from the
>>
quires editing
the Rd files to make the contents sensible (you can't just remove the
#ifdef's). Patches along these lines would be welcome.
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On 3/31/10 4:52 PM, John Chambers wrote:
The example is confusing and debatable, but not an obvious bug. And
your presentation of it is the cause of much of the confusion
(unintentionally I'm sure).
To restate the issue (I think):
In a new R session if you happen to call:
selectMethod("coe
e on an internal API Rd page. Create an Rd file
like yourPkg-internal-api.Rd and add the appropriate \alias{} lines to it.
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
xternal pointer that will
do any required cleanup and then call Free.
If instead you want to have an externally managed SEXP, you could put it
in the protected slot of the external pointer, but then you should
allocate it using standard R allocation functions.
+ seth
--
Seth Falc
ght
pattern of allocation such that data will be written over the memory
that your invalid external pointer points to.
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
vectors is something that I would expect to happen fairly
often in many applications of R.
Is for() faster on small blocks by enough that one would want to branch
based on size?
+ seth
--
Seth Falcon | @sfalcon | http://userprimary.net/
__
R-devel@r-p
,
you could do:
myfoo <- pkgname::foo
And then later call myfoo() and I don't think you will see the added cost.
You can formalize the above approach in package code by renaming
function in the importFrom directive where I believe you can do:
importFrom(pkgname, myfoo=foo)
+ seth
m the initial repo clone, working via git-svn was
noticeably faster than straight svn client (!) -- I think related to how
the tools organize the working copy and how many fstat calls they make.
- I find the log reviewing functionality much better suited to reviewing
changes.
+ seth
--
Seth F
Oleg Sklyar <[EMAIL PROTECTED]> writes:
> As Tony correctly writes one can generally use nargs() to get the number
> of arguments, and this works for "["(x,i,j,...,drop) method as well. The
> problem I had with the EBImage where I could not distinguish between
> x[index] and x[index,,] is that s
1 - 100 of 339 matches
Mail list logo