Displaying 20 results from an estimated 2000 matches similar to: "help.search() in html?"
2012 May 30
1
reading file in zip archive
Hi List
I have a series of zip archives each containing several files. One of these files is called goCats.txt and I would like to read it into R from the archive. It's a simple tab delimited text file.
pathToZip <- '/home/iain/Documents/Work/Results/bovineMacRNAData/deAnalysis/afInfection/commonNorm/twoHrs/af2hrs.zip'
z <- unz(pathToZip, 'goCats.txt', 'r')
zT
2012 Jul 12
1
Caret: Use timingSamps leads to error
I want to use the caret package and found out about the timingSamps
obtion to obtain the time which is needed to predict results. But, as
soon as I set a value for this option, the whole model generation fails.
Check this example:
-------------------------
library(caret)
tc=trainControl(method='LGOCV', timingSamps=10)
tcWithout=trainControl(method='LGOCV')
2012 May 15
1
caret: Error when using rpart and CV != LOOCV
Hy,
I got the following problem when trying to build a rpart model and using
everything but LOOCV. Originally, I wanted to used k-fold partitioning,
but every partitioning except LOOCV throws the following warning:
----
Warning message: In nominalTrainWorkflow(dat = trainData, info =
trainInfo, method = method, : There were missing values in resampled
performance measures.
-----
Below are some
2017 May 24
2
reg-tests-1d.R fails in r72721
On 2017-05-24, Duncan Murdoch wrote:
>
> I think the test is wrong because in the first case you are working in a
> locale where that character is representable. In my locale it is not, so x1
> is converted to UTF-8, and everything compares equal.
>
> An explicit conversion of x1 to UTF-8 should fix this, i.e. replace
>
> x1 <- path.expand(paste0("~/",
2012 Jun 03
1
Problems installing Packages
Hello,
I am going through Zhao's RDataMining PDF, and to redo all the graphics on
my computer, I need several packages, 'coin' and 'party' to name two.
I get the following error:
> install.packages("coin")
Installing package(s) into ?/home/sven/R/i686-pc-linux-gnu-library/2.15?
(as ?lib? is unspecified)
trying URL
2017 May 24
2
reg-tests-1d.R fails in r72721
Hi,
I am failing make check in r72721 at the end of reg-tests-1d.R. The
relevant block of code is
## path.expand shouldn't translate to local encoding PR#17120
filename <- "\U9b3c.R"
print(Encoding(filename))
x1 <- path.expand(paste0("~/", filename))
print(Encoding(x1))
x2 <- paste0(path.expand("~/"), filename)
print(Encoding(x2))
stopifnot(identical(
2016 Mar 30
1
reg-tests-1a fails with r70391
Hi,
This may be a `transitional' bug but I am reporting a make check
fail with R-devel r70391 in reg-tests-1a.Rout. The tail of
reg-tests-1a.Rout.fail is
> ## prcomp(tol=1e-6)
> x <- matrix(runif(30),ncol=10)
> s <- prcomp(x, tol=1e-6)
> stopifnot(length(s$sdev) == ncol(s$rotation))
Error: length(s$sdev) == ncol(s$rotation) is not TRUE
Execution halted
Looking at
2009 Aug 21
1
sessionInfo() fails to correctly detect locale settings
Dear R devels
Yesterday I was slightly surprised to notice that R incorrectly
detected some of the locale settings. I am not sure whether this is
important, but I preferred to drop a message. In the R output below,
some entries that should have been "en_GB.UTF-8" are presented as "C".
Regards
Liviu
> sessionInfo()
R version 2.9.1 (2009-06-26)
x86_64-pc-linux-gnu
locale:
2016 May 18
3
[patch] Error in reg-tests-1c.R (R-devel)
I get an error when running "make check" after building R-devel r70629
on Ubuntu 14.04. Here are the relevant lines in the file
"reg-tests-1c.Rout.fail":
> ## m1z uses match(x, *) with length(x) == 1 and failed in R 3.3.0
> ## PR#16909 - a consequence of the match() bug; check here too:
> dv <- data.frame(var?1 = 1:3, var?2 = 3); dv[,"var?2"]
2002 Feb 26
1
Locale problems on Solaris
Hi there.
With OpenSSH 3.0.2p1 on Solaris, the locale does not appear to get set
correctly at login, as it does with, say telnet:
/etc/default/init:
TZ=GB
CMASK=022
LC_COLLATE=en_GB.ISO8859-1
LC_CTYPE=en_GB.ISO8859-1
LC_MESSAGES=C
LC_MONETARY=en_GB.ISO8859-1
LC_NUMERIC=en_GB.ISO8859-1
LC_TIME=en_GB.ISO8859-1
When logging in via SSH:
scot /home/scot > locale
LANG=
2016 May 18
2
[patch] Error in reg-tests-1c.R (R-devel)
On 18/05/16 13:50, Martin Maechler wrote:
>>>>>> Mikko Korpela <mikko.korpela at helsinki.fi>
>>>>>> on Wed, 18 May 2016 13:05:24 +0300 writes:
>
> > I get an error when running "make check" after building
> > R-devel r70629 on Ubuntu 14.04.
> > Here are the relevant
> > lines in the file
2013 Jan 16
1
R CMD check not reading R_LIBS from ~/.R/check.Renviron
Dear List,
Further to my earlier email, I note that, for me at least, R CMD check
is *not* reading R_LIBS from ~/.R/check.Renviron on R 2.15.2 patched
(r61228) and R Under Development (r61660). The only way I can get R CMD
check to look for packages in a user-supplied library is by explicitly
exporting R_LIBS set to the relevant directory.
R CMD build *does* read R_LIBS from ~/.R/build.Renviron
2016 Apr 19
3
Problem with X11
Dear All,
I have never had this problem before. I run debian testing on my box
and I have recently update my R environment.
Now, see what happens when I try the most trivial of all plots
> plot(seq(22))
Error in (function (display = "", width, height, pointsize, gamma, bg,
:
X11 module cannot be loaded
In addition: Warning message:
In (function (display = "", width,
2010 Oct 08
2
font question on pdf device
Hi,
I wonder if this is something on my machine locally or R in general.
When I do the following:
> plot(c(0,1),c(0,1),main=expression(paste(symbol("D"),"D",sep="")))
I get a plot with a title having uppercase delta followed by "D". But in
the following
> pdf(file="deltaTest.pdf")
>
2007 Oct 15
1
Fonts do not display properly in R 2.5.1 on Red Hat Enterprise Linux 4
Dear All
I posted a similar question quite some time ago, but that was on an old
OS and an old version of R. This time I have RHEL 4, which is still
supported as an OS, and R 2.5.1 which is not *that* old.
My sessionInfo() gives:
> sessionInfo()
R version 2.5.1 (2007-06-27)
i686-redhat-linux-gnu
locale:
LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.U
2008 Apr 29
2
reproducible segmentation fault caused by textConnection()
Dear all,
It seems that textConnection() can trigger a segmentation fault. The
following script (using two large loops) makes this bug reproducible:
for (i in 1:10000) {
z=textConnection(NULL,open='w')
for (j in 1:100) {
write(runif(1)*1e6,file=z)
write('\n',file=z)
}
close(z)
}
The bug could be reproduced on R-2.6.1, R-2.7.0 and on the latest
R-devel
2018 Nov 15
2
'date' format differences between CentOS 6 and 7 using the en_GB locale ?
Just noticed that the output of 'date' is different between CentOS 6 and
7 when using the 'en_GB' locale - e.g.:
CentOS 6:
% LANG=en_GB date
Thu Nov 15 11:42:46 GMT 2018
% LANG=en_US date
Thu Nov 15 11:42:56 GMT 2018
CentOS 7:
% LANG=en_GB date
Thu 15 Nov 11:43:07 GMT 2018
% LANG=en_US date
Thu Nov 15 11:43:11 GMT 2018
i.e. with LANG=en_GB on CentOS 7, the day
2010 May 28
5
difference in sort order linux/Windows (R.2.11.0)
Dear R users,
I'm a bit perplexed with the effect sort has here, as it is different on
Windows vs. linux.
It makes my factor levels and subsequent plots different on the two systems.
Given:
types <- c("PC-D-Euro-0", "PC-D-Euro-1", "PC-D-Euro-2", "PC-D-Euro-3",
"PC-D-Euro-4", "PC-D-Euro-5", "PC-D-Euro-6",
2007 Jan 18
2
subsetting matrix by subscript=0,x silently skips.
(e-mailing to R-bugs is intentional - the web itnerface seems to
be down)
> a<- cbind(c(1,2), c(3,4))
> a
[,1] [,2]
[1,] 1 3
[2,] 2 4
> a[cbind(c(2,2), c(2,1))]
[1] 4 2
> a[cbind(c(2,3), c(2,1))]
Error: subscript out of bounds
> a[cbind(c(2,-1), c(2,1))]
Error: negative values are not allowed in a matrix subscript
> a[cbind(c(2,0), c(2,1))]
[1] 4
Am
2010 Mar 26
3
NA values in indexing
If you index a vector with a vector that has NA in it, you get NA back:
> x=101:107
> x[c(NA,4,NA)]
[1] NA 104 NA
> x[c(4,NA)]
[1] 104 NA
All well and good. ?"[" says, under NAs in indexing:
When extracting, a numerical, logical or character ?NA? index
picks an unknown element and so returns ?NA? in the corresponding
element of a logical, integer,