similar to: unexpected behaviour of isSymmetric() (PR#14000)

Displaying 20 results from an estimated 1000 matches similar to: "unexpected behaviour of isSymmetric() (PR#14000)"

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 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.
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 =
2019 Apr 22
1
R-devel (rev 76409) fails 'make check': non-generic function 'isSymmetric' given to findMethods()
Duncan that does indeed look to be the case. Many thanks! In particular, tests/reg-tests-1d.R optionally loads the Matrix namespace which allows the test to succeed. Compare: ~/R-rc_2019-04-21_r76409/bin/Rscript -e "options(warn=2); library(Matrix); res <- findMethods('isSymmetric'); print('success')" [1] "success" versus
2009 Oct 15
1
Problems with rJava and tm packages
I am looking to do some text analysis using R and have run into some issues with some of the packages. Im not sure if its my goofy Vista OS or what but using R 2.8.1 i s relatively successful loading the text but the rJava package was messed up somehow: library(tm) > library(rJava) Error in if (!nchar(javahome)) stop("JAVA_HOME is not set and could not be determined from the
2019 Apr 21
2
R-devel (rev 76409) fails 'make check': non-generic function 'isSymmetric' given to findMethods()
Hello, Most likely I'm doing something wrong, but am at a loss as to what the issue is. I have a clean checkout of trunk here: ?? ~/svn/r-devel/R$ svn info ?? Path: . ?? Working Copy Root Path: /home/btyner/svn/r-devel/R ?? URL: https://svn.r-project.org/R/trunk ?? Relative URL: ^/trunk ?? Repository Root: https://svn.r-project.org/R ?? Repository UUID:
2009 Oct 27
1
Rjava, RImageJ, and/or S4 question.
I am out of my league with this question. The following code starts the java imaging program ImageJ from within R, and displays an image (assuming ImageJ is installed on your computer). library(RImageJ) img <- IJ$openImage( file.choose() ) #pick an available .tif file img$show() # make the image object visible # An image is now displayed # find out about the objects involved >
2009 Nov 13
2
How to show all the functions and classes that are defined in a library?
library(some_library_name) Suppose I load a library. I'm wondering what command I should use to list all the functions, classes and variables defined in the library.
2009 Nov 20
1
Including local dynamic libraries
Hi All, I am trying to install the package rjags into a local library on a machine for which I do not have root permissions. Using the command: R CMD INSTALL --configure-args="--with-jags-include= ${JAGSBIN}/include/JAGS --with-jags-lib=${JAGSBIN}/lib/ --with-jags- modules=${JAGSBIN}/lib/JAGS/modules" CMD INSTALL -l ${JAGSBIN}/lib/ ../ rjags_1.0.3-12.tar.gz Where ${JAGSBIN} is
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
2019 Apr 21
0
R-devel (rev 76409) fails 'make check': non-generic function 'isSymmetric' given to findMethods()
On 21/04/2019 4:56 p.m., Benjamin Tyner wrote: > Hello, > > Most likely I'm doing something wrong, but am at a loss as to what the > issue is. I have a clean checkout of trunk here: > > ?? ~/svn/r-devel/R$ svn info > ?? Path: . > ?? Working Copy Root Path: /home/btyner/svn/r-devel/R > ?? URL: https://svn.r-project.org/R/trunk > ?? Relative URL: ^/trunk
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
2010 Nov 07
2
is this matrix symmetric
Hi, I have this symmetric matrix, at least I think so. col1 col2 col3 [1,] 0.20 0.05 0.06 [2,] 0.05 0.10 0.03 [3,] 0.06 0.03 0.08 or structure(c(0.2, 0.05, 0.06, 0.05, 0.1, 0.03, 0.06, 0.03, 0.08 ), .Dim = c(3L, 3L), .Dimnames = list(NULL, c("var1", "var2", "var3"))) But isSymmetric() doesn't agree. Any comment? I am on R 2.10.1 Thanks. Jun