Displaying 20 results from an estimated 20000 matches similar to: "Bug in list indexing (PR#13411)"
2009 May 03
2
clear screen?
I?ve been using this routine for several years. I?m sorry, I don?t remember
where I got it. It works as it should, viz. it blanks the R console. But
it requires package rcom and now that requires rscproxy.
cls <-
function ()
{
require(rcom)
wsh <- comCreateObject("Wscript.Shell")
comInvoke(wsh, "SendKeys", "\f")
invisible(wsh)
}
> cls()
2009 Feb 11
1
Can't install rggobi package
I am unable to install the rggobi package. I do not have trouble
installing other packages. Any advice or suggestions?
>sessionInfo()
R version 2.8.1 (2008-12-22)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
attached base packages:
[1] stats
2009 Jan 07
1
Cannot access packages
Although I have installed R many times on many machines without problems,
I have recently encountered a problem with accessing packages. R has been
installed successfully with the "--internet2" option. The session info is
below.
> sessionInfo()
R version 2.8.1 (2008-12-22)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
2009 Jan 26
2
RCurl unable to download a particular web page -- what is so special about this web page?
Dear R-help,
There seems to be a web page I am unable to download using RCurl. I
don't understand why it won't download:
> library(RCurl)
> my.url <- "http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html?_r=2"
> getURL(my.url)
[1] ""
Other web pages are ok to download but this is the first time I have
been unable to download a
2009 Jan 31
1
Question on Sweave-Latex and examples in the Sweave Manual
Hi List,
I have a problem with using Latex and Sweave for creating a document.
So I downloaded the Sweave manual from
http://www.statistik.lmu.de/~leisch/Sweave/Sweave-manual.pdf
and i have tried to replicate the example on pages 4-5, but i encounter the following problem: IT DOES NOT WORK. I can run Sweave, create the .tex file and then when building the .tex file in TeXnikCenter i get all
2009 Apr 28
1
image3d in misc3d
Hi,
I'm trying to make sense of the image3d plots in misc3d. Unfortunately I can't find any authors on the help pages of the function to e-mail directly. In the following toy example, I'm puzzled as to why (1) the positions of the image plot on the axes include negative values when I think I've specified all to be 1:3 and (2) the logic that needs to be adhered to in order to
2009 Feb 18
1
Training nnet in two ways, trying to understand the performance difference - with (i hope!) commented, minimal, self-contained, reproducible code
Dear all,
Objective: I am trying to learn about neural networks. I want to see
if i can train an artificial neural network model to discriminate
between spam and nonspam emails.
Problem: I created my own model (example 1 below) and got an error of
about 7.7%. I created the same model using the Rattle package (example
2 below, based on rattles log script) and got a much better error of
about
2009 Feb 04
2
loading lme4 fails - "function 'cholmod_l_start' not provided by package 'Matrix'"
Hello UseRs,
I've just tried to load the lme4 package and got the error message, "function 'cholmod_l_start' not provided by package 'Matrix'". I downloaded the latest version of lme4 and its required packages (lattice and Matrix) as suggested in the archives and still got this message. The FAQ and archives suggested to check the R version requirements, but I'm
2009 Jan 19
1
sub and gsub treat \\ incorrectly (PR#13454)
Sub and gsub treat \\ replacement pattern incorrectly
I expect
sub("a","\\", "a", perl=T)
to produce
[1] "\"
instead it generates
[1] ""
On the other hand, if I run
sub("a","\\\\", "a", perl=T)
it correctly outputs
[1] "\\"
The same issue applies to gsub.
--please do not edit the information
2009 Feb 28
2
Review my upgrade plan from 2.8.0 to 2.8.1
Hi,
On my laptop, R is installed on windows XP SP2 at D:\Program
Files\R\R-2.8.0, and all add-on packages are installed at D:\Program
Files\R\R-2.8.0.libs. In addition, I have created two environment
enviroment to ease upgrading and installation of packages. Packages
installed is a mix of those from CRAN, Bioconductor and local zips.
D:\My Document\My Desktop>echo %R_HOME%
D:/Program
2010 Jul 08
2
strsplit("dia ma", "\\b") splits characterwise
\b is word boundary.
But, unexpectedly, strsplit("dia ma", "\\b") splits character by character.
> strsplit("dia ma", "\\b")
[[1]]
[1] "d" "i" "a" " " "m" "a"
> strsplit("dia ma", "\\b", perl=TRUE)
[[1]]
[1] "d" "i" "a" " "
2009 May 25
1
Running R from a read-only CD
Dear R-helpers:
I created a folder containing R on a read-only CD and use it by having the
R-icon, located on the Windows desktop, point to the CD
(R-2.8.1\bin\Rgui.exe) for the "Target," and to a Windows Desktop folder for
"Start in."
This works nicely EXCEPT that the R help() function cannot display anything,
and presents a screen message saying "This program cannot
2009 Mar 12
1
iconv.dll in Windows
I recently built R-devel on Windows XP (sessionInfo below), and when loading libraries that require the iconv.dll was getting an error stating that 'This application has failed to start because iconv.dll was not found. Re-installing the application may fix this problem.'.
An R-2.8.1 that I installed using the Windows installer has this dll in R-2.8.1/bin, whereas in R-devel it is still in
2009 Apr 10
1
png with ggplot on windows xp
Hi Group,
I posted this question on the ggplot list and was advised to try here
also. The code
below produces a plot as a png and pdf. The pdf looks great, and I cannot
make the png look this way. I've tried various combinations of
height, width, and dpi, but it has not worked out so
far. Any suggestions to make the png look like the pdf? I received a
response that
the problem does not occur
2009 Apr 18
1
Can't read table encoded in Unicode (R-2.8.1)
Hi all,
I have problems reading Unicode (UTF-16) coded tables in R 2.8.1 under
Windows Vista.
Imagine the following table:
a b c d
X 1,2 1,3 1,4
Y 2,2 2,3 2,4
Z 3,2 3,3 3,4
Usually I would use the following code to read the table:
t = read.table("test.txt", header=T, sep="\t",dec=",")
This works well if I create the table
2009 Feb 02
0
Error message when executing summary() with dataset diamonds in ggplot2
Hi: I am experiencing a problem with dataset diamonds in ggplot2. When
trying execute the summary(diamonds) statement, the following error message
is displayed:
Error in summary(diamonds) :
Cannot open file
'C:/Users/James/R_Pgms/R/R-2.8.1/library/ggplot2/data/Rdata.rdb': No such
file or directory
Can you please advise me?
A complete history of commands leading up to this problem is
2009 Jan 26
1
Sweave'ing Danish characters
Hi,
I am writing an Sweave document and am using 'xtable' to make frequency tables of diagnoses of people undergoing cholecystectomy. Some of these diagnoses contain Danish characters ("?", "?", and "?"), and these characters are all garbled in the Latex document after I run Sweave. The odd thing is, everything looks absolutely right in the R console, and if
2009 Mar 06
1
array subsetting of S4 object that inherits from "array"
Hi,
I have an S4 class that inherits from "array" but does not add generic
implementations of the "[" method.
A simplified example is:
setClass("fooarray", contains="array")
If I create a "fooarray" object and subset it with a one-dimensional
index vector, the return value is of class "fooarray". Other variants
(see below), however,
2009 Nov 04
3
inconsistent behavior for logical vectors when using apply (" TRUE")
Hello,
> X <- data.frame(letters=letters[1:3], flag=c(TRUE, FALSE, TRUE))
> X
letters flag
1 a TRUE
2 b FALSE
3 c TRUE
> apply(X, 1, as.list)
[[1]]
[[1]]$letters
[1] "a"
[[1]]$flag
[1] " TRUE"
[[2]]
[[2]]$letters
[1] "b"
[[2]]$flag
[1] "FALSE"
[[3]]
[[3]]$letters
[1] "c"
[[3]]$flag
[1] " TRUE"
2009 Feb 22
1
Filtering a data frame using a string for colum header
Hi all,
I was just radomly playing with R and got the following error when
trying to filter a data frame using a string:
> Angel <- c(7,8,6,9,10)
> Buffy <- c(8,9,4,9,10)
> Firefly <- c(9,9,10,10,10)
> DrHorrible <- c(10,9,9,10,10)
> my.df <- data.frame(Angel, Buffy, Firefly, DrHorrible)
> my.df["DrHorrible"]
DrHorrible
1 10
2 9
3