there seems to be something wrong with r's regexing. consider the
following example:
gregexpr('a*|b', 'ab')
# positions: 1 2
# lengths: 1 1
gsub('a*|b', '.', 'ab')
# ..
where the pattern matches any number of 'a's or one b, and replaces the
match with a dot, globally. the a
I am trying to put an rda (R save image) file that contains multiple R
objects in a contributed package. From the example of the BJsales data
in package "datasets" it seems this is o. k. But I am puzzled by some
of what "Writing R Extensions" says.
Section 1.1.3 mentions datalist files. Do I ha
On Sat, 21 Mar 2009, Martin Morgan wrote:
A little more precisely, unlink fails when the file being unlinked is
a broken symbolic link (as in the example below). This is because
R_FileExists checks stat() == 0, and stat fails (returns -1) when
trying to resolve the broken link. Perhaps lstat() i
On 16/03/2009 7:16 AM, Thomas Petzoldt wrote:
Dear R developers,
I observed that the html help page index entry "Read overview or browse
directory" for package vignettes is missing in recent R-devel.
Thanks for the report. This is fixed now and will make it into the next
release. The code
A little more precisely, unlink fails when the file being unlinked is
a broken symbolic link (as in the example below). This is because
R_FileExists checks stat() == 0, and stat fails (returns -1) when
trying to resolve the broken link. Perhaps lstat() is more
appropriate?
Martin
Martin Morgan w
unlink fails to remove symbolic links. This is more prominent now --
when a package creates symbolic links during installation, 00LOCK is
not removed.
Martin
> setwd(tempdir())
> fl <- tempfile(); file.create(fl)
[1] TRUE
> lnFile <- tempfile(); system(paste("ln -s", fl, lnFile))
> list.files()
[
On 20/03/2009 3:00 PM, wi...@gfz-potsdam.de wrote:
Hello,
I think I found a bug:
> windows(1,width = 10, height = 10, pointsize = 5,xpos = 0, ypos = 0 )
> hdata[1:3,1] <- c(1,10,15)
> hdata[1:3,2] <- c(2,1,4)
> plot(hdata[,1],hdata[,2],xaxt="n")
> axis(1,at=c(2,10,14))
> minor.tick(nx=2,
Hello,
I think I found a bug:
> windows(1,width = 10, height = 10, pointsize = 5,xpos = 0, ypos = 0 )
> hdata[1:3,1] <- c(1,10,15)
> hdata[1:3,2] <- c(2,1,4)
> plot(hdata[,1],hdata[,2],xaxt="n")
> axis(1,at=c(2,10,14))
> minor.tick(nx=2, ny=1,tick.ratio=1)
the minor tick marks appear betw