Displaying 6 results from an estimated 6 matches for "foob".
Did you mean:
foo
2014 May 02
1
Authors@R: and Author field
Hi to all
Authors@R: c(person("fooa","foob", role = c("aut","cre"),
email = "fooa.foob@fooc.de"),
person("foo1","foo2", role = c("ctb"),
email = "foo1.foo2@foo3.de"))
Author: fooa foob, with contributions from foo1 foo2...
2017 Apr 05
0
Bug report: POSIX regular expression doesn't match for somewhat higher values of upper bound
...o parse.
The following code
----------------------------------------------------------------------
tx <- c("ab","abc", paste0("foo", c("", "b", "o", "bar", "oofy")))
setNames(nchar(tx), tx)
## ab abc foo foob fooo foobar foooofy
## 2 3 3 4 4 6 7
grep1r <- function(n, txt, ...) {
pattern <- paste0('(.{1,',n,'})\\1', collapse="") ## can have empty n
ans <- grep(pattern, txt, value=TRUE, ...)
cat(sprintf("pattern...
2017 Apr 04
2
Bug report: POSIX regular expression doesn't match for somewhat higher values of upper bound
Dear Sirs,
while
> regexpr('(.{1,2})\\1', 'foo')
[1] 2
attr(,"match.length")
[1] 2
attr(,"useBytes")
[1] TRUE
yields the correct match, an incremented upper bound in
> regexpr('(.{1,3})\\1', 'foo')
[1] -1
attr(,"match.length")
[1] -1
attr(,"useBytes")
[1] TRUE
incorrectly yields no match.
R versions tested:
2.11.1
2008 Apr 28
1
variable names when using S3 methods
...a link to
the proper documentation, if it does exist, would be appreciated.
Thanks, Aaron Rendahl
University of Minnesota School of Statistics
# set up two function that both use method "foo" but with different
variable names
fooA<-function(model,...)
UseMethod("foo")
fooB<-function(Bmodel,...)
UseMethod("foo")
# now set up two methods (default and character) that have an
additional variable
foo.character <- function(model, m=5,...)
cat("foo.character: m is", m, "\n")
foo.default <- function(model, m=5,...)
cat("foo.d...
2016 Feb 16
2
DllImport: How to specify the library to link to?
Hi,
I am absolutely new to LLVM. Currently reading through documentation and
the C-API (which i want to use). As i am working on Windows, i was
curios on how to specify an import which links to a function exported by
a dll. The DLLStorageClass seems to be the wy to go, this seems clear.
But after declaring a function for import, how do i specify the DLL the
function is included in?
2004 Jun 03
3
Sloppy argument checking for named arguments
Christian --
This is not a bug, but a feature, and the dot is not the issue here. R uses
partial argument matching on function arguments.
So:
> f <- function(foobar = 0){print(foobar)}
> f
function(foobar = 0){print(foobar)}
>
> f(fo=1)
[1] 1
> f(foo=1)
[1] 1
> f(foob=1)
[1] 1
> f(fooba=1)
[1] 1
> f(foon=1)
Error in f(foon = 1) : unused argument(s) (foon ...)
>
> f(foobar2=1)
Error in f(foobar2 = 1) : unused argument(s) (foobar2 .....