Displaying 20 results from an estimated 1000 matches similar to: "environment( seq.int ) is NULL"
2009 Nov 05
1
combine UserDefinedDatabase and regular environments
Hello,
Is it possible to have the effect of UserDefinedDatabase outside of
"attached" environments ? Can I disguise an environment of the
sys.frames() as a UserDefinedDatabase ?
This seems to suggest that it might be possible :
> f <- function(){ e <- environment(); class(e) <-
"UserDefinedDatabase"; ff }
> f()
*** caught segfault ***
address (nil),
2009 Oct 10
1
isFALSE
Hello,
Just wondering why there is "isTRUE" and not "isFALSE".
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/BcPw : celebrating R commit #50000
|- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
`- http://tr.im/yw8E : New R package : sos
-------------- next part --------------
An
2009 Nov 07
1
getConnection, R_outpstream_st
Hello,
I'm trying to use the limited connections api defined in Rinternals.h. I
have code that looks like this (inspired from do_serializeToConn) :
SEXP serialize_to_connection( SEXP xp, SEXP connection ){
Rconnection con ;
struct R_outpstream_st out;
R_pstream_format_t type = R_pstream_binary_format ;
SEXP (*hook)(SEXP, SEXP) = NULL ;
con = getConnection(Rf_asInteger(connection));
2009 Oct 09
1
celebrating revision 50000
Hello,
Today, Brian Ripley commited the revision 50000 of R's svn repository.
I took this as an opportunity to do some data analysis of the log and
posted some code and graphics on my blog:
http://romainfrancois.blog.free.fr/index.php?post/2009/10/09/celebrating-R-commit-50000
The plots of the number of commits per day (and per month) indicates a
peak in 2002.
Here are the top 20
2009 Oct 27
1
recover and "called from" information
Hello,
When using recover, the called from information is always "eval(expr,
envir, enclos)", which is not particularly useful.
> f <- function( ){ g <- function(){ stop( "ouch") }; g() }
> options( error = recover )
> f()
Error in g() : ouch
Enter a frame number, or 0 to exit
1: f()
2: g()
Selection: 1
Called from: eval(expr, envir, enclos)
I'm
2009 Oct 13
1
for loop over S4
Hello,
Consider this :
> setClass("track", representation(x="numeric", y="numeric"))
[1] "track"
> o <- new( "track", x = 1, y = 2 )
> for( i in o ){
+ cat( "hello\n")
+ }
Error: invalid type/length (S4/1) in vector allocation
This happens at those lines of do_for:
n = LENGTH(val);
PROTECT_WITH_INDEX(v =
2009 Nov 09
1
\\signature macro generated by promptMethods
Hello,
promptMethods generate a macro for signatures, but the macro does not
exist in the Rd parser.
> setClass("track",
+ representation(x="numeric", y="numeric"))
[1] "track"
> setGeneric("foo", function(x){ standardGeneric("foo") } )
[1] "foo"
> setMethod( "foo", "track",
2010 May 05
1
testInstalledBasic question
Hi,
I'm currently in the process of writing an R-installation SOP for my
company. As part of that process I'm using the recommendations from the 'R
Installation and Administration' document, section 3.2, "Testing an
installation". This is done on an XP machine, using the latest binary of
2.11.0.
The binary is downloaded and then installed from the installer. I then
2009 Sep 24
3
making R print on screen
Hello!
I am running a "for" loop. In the loop I am producing some
intermediary results and asking R to print it (of the type below).
However, I noticed - when the task is complicated and takes a lot of
time, R does not print those intermediary results immediately, but
prints them in batches - or does not print at all until we are done
with the whole calculation.
Is there any way to
2009 Sep 22
2
cannot build R-devel (>= r49747)
Hello,
I've tried several times yesterday to build R-devel and I consistently
get this error when I "make" :
mkdir -p -- ../../../library/base/R
make[3]: Leaving directory `/tmp/R-devel/src/library/profile'
make[3]: Entering directory `/tmp/R-devel/src/library/base'
building package 'base'
make[4]: Entering directory `/tmp/R-devel/src/library/base'
mkdir -p --
2013 Apr 02
1
R doesn't recognize utils functions, such as arrayIndex( )
Hi all,
When I called arrayIndex(20:23, dim=c(4,3,3)), it says "Error: could not
find function "arrayIndex"in R". So I called ls("package:utils") to see the
functions inside:
[1] "?"
[2] "adist"
[3] "alarm"
[4] "apropos"
[5] "aregexec"
[6] "argsAnywhere"
[7] "arrangeWindows"
[8]
2009 Oct 01
2
Rd.sty question: LaTeX expert needed
The Rd.sty LaTeX package is used when building the R manuals, and by the
LaTeX pages produced from the man pages.
I have tracked down some problems G?bor Cs?rdi was having recently (see
"Re: [R] preformatted and '#' in manual pages" in R-help) to a LaTeX
problem, and am trying to work out how to fix it.
Specifically, the .Rd file he was using had a structure like
\dQuote{
2009 Sep 23
3
retrieve certain part from html
Dear All,
Can someone please guide me how to get the certain part from a long html
language?
e.g.
"<td><a href='2005-01.html'>2005-01</a></td><td><a
href='2006-01.html'>2006-01</a></td><td><a
href='2007-01.html'>2007-01</a></td><td><a
2007 Feb 05
1
Build error with last R-devel tarball
Hi,
On Windows, with last R-devel tarball (r40647) from
ftp://ftp.stat.math.ethz.ch/Software/R/R-devel_2007-02-04.tar.gz
I get the following build error:
E:\biocbld\bbs-2.0-bioc\R\src\gnuwin32> make
...
...
---------- Making package utils ------------
adding build stamp to DESCRIPTION
installing NAMESPACE file and metadata
installing R files
Error in namespaceExport(ns, exports) :
2011 Jun 29
0
Error in testInstalledBasic
Hi,
I am running R 2.13.0 on a Windows 7 machine.
I ran the script:
testInstalledBasic('devel')
and received the following warning message:
running tests of consistency of as/is.*
creating ?isas-tests.R?
running code in ?isas-tests.R?
comparing ?isas-tests.Rout? to ?isas-tests.Rout.save? ...running tests of random deviate generation -- fails occasionally
running code in
2009 Oct 12
1
unexpected behaviour of isSymmetric() (PR#14000)
Full_Name: Mike Danilov
Version: 2.9.0
OS: Fedora Core 9
Submission from: (NULL) (142.103.121.198)
When checking for the symmetry of a matrix, function isSymmetric.matrix() gets
confused by the discrepancy of colnames/rownames if its argument. See the code
snippet below. Perhaps it's a problem of the matrix product which copies
colnames of the first argument but not the rownames of the
2009 Oct 16
2
Urgent help requested to modify a script
I am hoping someone will tak up this chalenge (I am new to R)
I have inheritied an R script but need to change it. The script currently
includes hardcoded file locations on lines 12,166 and 167. I need to modify
this script to allow the folder to be passed as a command line argument to
Rscript.exe
Can anybody help please?
Regards,
Ian
http://www.nabble.com/file/p25924237/My_script.R
2009 Oct 28
1
how can i call R program from one java program?
Dear All
I want to call the R program from one Java program because In my project R
program parameters are set by one web page developed by java.
Is this possible to call R program from java?
many thanks in advance
--
Wesley C Mathew
[[alternative HTML version deleted]]
2009 Oct 13
4
Creating a list of empty lists
Well here is one more brain-teaser related to assigning stuff into a
list of list. What if I need to create a new list of empty lists? I have
actually got a solution to this problem:
l = list(list())
for ( i in sequence(length-1) )
{
l = list(unlist(l,recursive=FALSE), list())
}
But it is not very neat to do this in a loop. Are there any cuter ways
to do this?
2009 Oct 13
3
Function to find prime numbers
I need to create a function to find all the prime numbers in an array. Can
anyone point me in the right direction?
Thank you.
AJ
--
View this message in context: http://www.nabble.com/Function-to-find-prime-numbers-tp25868633p25868633.html
Sent from the R help mailing list archive at Nabble.com.