Displaying 20 results from an estimated 900 matches similar to: "memory problem - failing to load rgl in R 2.7.1 patched"
2008 Aug 04
0
SOLVED - memory problem - failing to load rgl in R 2.7.1 patched
Hi,
Sorry for that ..... Today R did load both ca and rgl packages with no problems ... the single thing i've done since Friday was to put "defrag" on drive C, i even didn't re-start the computer ...actually it was re-started several time with same weird problem ... so i suppose something was segmented badly on the hard drive.
Monica
> From: pisicandru at hotmail.com
>
2008 Aug 01
0
failing to load package in R 2.7.1 patched
Hi,
yesterday i had the surprise not to be able to load the package "ca" on R 2.7.0 saying that cannot find required package rgl although it was there. So today i've upgraded to 7.2.1. patched and i got the following error:
> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Loading required package: rgl
2008 Nov 14
0
Cross-validation
Hi,
I was trying to do cross-validation using the crossval function (bootstrap package), with the following code:
---------------------------------------------------------------------------------------------------------
theta.fit <- function(x,y){
model <- svm(x,y,kernel = "linear")
}
theta.predict <- function(fit,x){
prediction <- predict(fit,x)
2009 Jun 25
0
[e1071] Inconsistent results when using matrix.csr for svm() - possibly scaling problem
Dear all,
I'm training an SVM with default settings on a matrix csr (SparseM
package). I realized that if I train
the SVM with the (hopefully) equivalent matrix (Matrix package)
representation, the returned models and predictions
sometimes differ. I expected both representations of the same data
to lead to the same results though.
It could be that it is a scaling problem, because unscaled
2008 Sep 26
1
issue with varSel.svm.rfe in package MCRestimate
Hello all,
I would like to perform SVM-RFE (Guyon et al. 2002) in R and have only found
one implementation of this algorithm. The function belongs
to the MCRestimate package but when I try to use it I encounter a problem
- the function appears to be missing a required package or other function
that I simply cannot find available anywhere.
Here is my session info followed by a simple example
2008 Mar 07
1
confused about CORREP cor.LRtest
After some struggling with the data format, non-standard in
BioConductor, I have gotten cor.balance in package CORREP to work. My
desire was to obtain maximum-likelihood p-values from the same data
object using cor.LRtest, but it appears that this function wants
something different, which I can't figure out from the documentation.
Briefly, my dataset consists of 36 samples from 12
2009 Oct 02
1
ggplot2: proper use of facet_grid inside a function
Hello Again R Folk:
I have found items about this in the archives, but I?m still not getting
it right. I want to use ggplot2 with facet_grid inside a function with
user specified variables, for instance:
p <- ggplot(data, aes_string(x = fac1, y = res)) + facet_grid(. ~
fac2)
Where data, fac1, fac2 and res are arguments to the function. I have
tried
p <- ggplot(data,
2007 Dec 17
0
odd error messages coming from val.prob() {Design}
Hi,
after upgrading my R install from 2.5 -> 2.6.1 and performing multiple
iterations of update.packages(), I am getting an odd error when trying to
plot a calibration curve from the val.prob() function in package Design.
when running this function (which used to work) I get the following error
message:
Error in .C("lowess", x = as.double(xy$x[o]), as.double(xy$y[o]), n,
2008 May 13
0
Un-reproductibility of SVM classification with 'e1071' libSVM package
Hello,
When calling several times the svm() function, I get different results.
Do I miss something, or is there some random generation in the C library?
In this second hypothesis, is it possible to fix an eventual seed?
Thank you
Pierre
### Example
library('e1071')
x = rnorm(100) # train set
y = rnorm(100)
c = runif(100)>0.5
x2 = rnorm(100)# test set
y2 = rnorm(100)
# learning a
2009 Oct 06
1
ggplot2: mapping categorical variable to color aesthetic with faceting
Hello Again... I?m making a faceted plot of a response on two categorical
variables using ggplot2 and having troubles with the coloring. Here is a
sample that produces the desired plot:
compareCats <- function(data, res, fac1, fac2, colors) {
require(ggplot2)
p <- ggplot(data, aes(fac1, res)) + facet_grid(. ~ fac2)
jit <- position_jitter(width = 0.1)
p <- p +
2009 Dec 07
1
rgl keyboard shortcut for translation on Mac?
Hello Everyone.
I?m on a Mac, using rgl. Thanks to all the developers and maintainers on
it!
If I drag the mouse, I can rotate the view, if I hold down the option key or
the ctrl key and drag, I get scaling (though at times I seem to alter the
perspective?). Adding the shift key doesn't seem to modify anything.
So, what I can't find is a key combination that translates the object.
2008 Jun 30
2
Plotting question: Problem with strwidth in 2.7.1
R users,
I have a problem with function strwidth in 2.7.1. I'm trying to set
the plot margins in a way that horizontal
column labels will fit to the graph. tmp.t is a list of data.frame
objects. This code works well in 2.6.0.
...snip..
library(gplots)
for (i in names(tmp.t)) {
bmp(filename=paste(i, "_", Sys.Date(), ".bmp", sep=""),
width=1038,
2008 Aug 11
2
: bquote inside legend()
Hi,
I have a graph and I would like to write some values inside the legend that were saved in a variable. Please revise the code below in which I've wrote 2 different legends, but I am not happy with either of them. What I want is a legend with tile "Legend" and underneath a line with a name and a value like that: value = 2.
#Code begin:
# -------------------
a = 2 # result of a
2008 Dec 09
1
update.packages() for R 2.7.1: mgcv fails
Hi
I just upgraded my debian/stable to R 2.7.1 via apt-get install r-base
r-base-core r-base-dev, and then
began to update.packages()
> update.packages(lib.loc="/usr/local/lib/R/site-library")
> update.packages(lib.loc="/usr/lib/R/library")
but I get:
....
* Installing *source* package 'mgcv' ...
** libs
gcc -std=gnu99 -I/usr/share/R/include -fpic -g
2007 Jun 20
1
compiler cannot create executables
Hi List,
I get an error message "compiler cannot create executables" when I try
to install a package.
Searching the list archives reveals many messages with the same error
message. The advice is generally to install g++ and development libraries.
However, I have g++ installed and can compile and run programs as myself
and via sudo. I got the library to install by using
%sudo R
2008 Feb 01
6
Accessing the elements of a list
Hi R,
I wanted to know how do we access the elements of a list. In particular,
v=list(c(1,2,3,4,5),c(1,2,33,4,5),c(1,2,333,4,5),c(1,2,3333,4,5))
I want to access all the thirds items of the elements of the list. i.e.,
I want to access the elements, 3,33,333,3333. This can be done through
sapply as:
sapply(v,function(x) x[3])
But I need to access this without using
2008 Aug 13
5
subsetting matrix according to columns with character index
Hi,
I have a long matrix of the following form which I would like to subset according to the third column:
[x y z]:
a1 c1 1
a1 c1 2
a2 c1 1
a1 c2 1
a1 c2 2
. . .
The first two columns a characters ai and cj.
I would like to keep all the rows where there are two entries for z, 1 and 2.
That is, I want:
a1 c1 1
a1 c1 2
a1 c2 1
a1 c2 2
. . .
I try to use something like
2008 Jun 25
1
tiff() causes R to crash on WinXP (PR#11804)
Full_Name: Gustaf Rydevik
Version: 2.7.1
OS: Win XP professional
Submission from: (NULL) (130.237.97.254)
The following lines of code crash R 2.7.1 (=cause R to show "The R gui has
encountered a problem and needs to close"....). Replicated on two WinXp
professional machines, as well as by Uwe Ligges.
> sessionInfo()
R version 2.7.1 (2008-06-23)
i386-pc-mingw32
locale:
2008 Apr 28
0
RE: Newbie question - unable to start guest OS on Fedora 8 <solved>
OK, I managed to get past this problem. There were two issues - I did not have peth0 configured correctly (as you can see, the ifconfig output does not show a peth0). That was resolved by fixing my settings in the network manager. The second issue was that I don''t have a static IP address, so I selected the option for DHCP on wireless during the guest host setup. I switched to static IP
2006 Jan 27
3
e1071: using svm with sparse matrices (PR#8527)
Full_Name: Julien Gagneur
Version: 2.2.1
OS: Linux (Suse 9.3)
Submission from: (NULL) (194.94.44.4)
Using the SparseM library (SparseM_0.66)
and the e1071 library (e1071_1.5-12)
I fail using svm method with a sparse matrix. Here is a sample example.
I experienced the same problem under Windows.
> library(SparseM)
[1] "SparseM library loaded"
> library("e1071")