Ben Bolker gmail.com> writes:
>
>
Can simplify this still farther:
a b'c
d e'f
g h'i
> One of the first things that happens in read.table is that
> the first few lines are read with readTableHead:
>
> lines <- .Internal(r
Ben Bolker gmail.com> writes:
>
> Ben Bolker gmail.com> writes:
>
> >
> >
>
>Can simplify this still farther:
>
> a b'c
> d e'f
> g h'i
This example file leads to duplicate lines.
Arguably it should have behavior analogo
Index: system.Rd
===
--- system.Rd (revision 53611)
+++ system.Rd (working copy)
@@ -181,7 +181,7 @@
\item The most important difference is that on a Unix-alike
\code{system} launches a shell which then runs \code{command
, at least hundreds of data points.)
If that doesn't work, please try your question again on R-help.
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
UN = "paste", sep = name_sep)
}
which could still break existing code in the unlikely event
that someone used a value of FUN with a 'name_sep' argument (much
less likely). Perhaps the argument could be named .sep -- that
seems to be a standard convention in these cases for trying to
avoid previous/user-defined argument names.
For whatever it's worth this seems like a good idea to me -- a
small change that will increase flexibility with little cost.
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Ravi Varadhan jhmi.edu> writes:
>
> "The decision about whether it belongs in a package or in base R is
> about who should maintain the code."
>
> Ok. I understand it now.
>
> Thanks,
> Ravi.
>
A point that may not have been made (sorry if it was and I missed it):
A better question m
Jari Oksanen oulu.fi> writes:
>
> Hello R Developers,
>
> Dear R-developers,
>
> I ran some standard tests with currently (today morning) compiled R release
> candidate in Linux R 2.12.1 RC (2010-12-13 r53843). Some of these tests used
> plot.TukeyHSD function. This worked OK on the screen (X
On 10-12-14 01:16 PM, Peter Ehlers wrote:
> On 2010-12-14 09:27, Ben Bolker wrote:
>> Jari Oksanen oulu.fi> writes:
>>
>>>
>>> Hello R Developers,
>>>
>>> Dear R-developers,
>>>
>>> I ran some standard tests with currently (
ed; line widths less
+ than 0.01 will be set equal to this minimum value. Line dashes
+ are set proportional to line width; dash patterns less than 0.01
+ will be set to solid. \code{pch="."} with
\code{cex = 1} corresponds to a square of side 1/72 inch, which is
also the \
-12-14 12:13:32.0 +0200
> @@ -172,5 +172,5 @@
> 0 setgray
> 0.00 setlinewidth
> -[ 3.00 5.00] 0 setdash
> +[ 0.00 0.00] 0 setdash
> np
> 660.06 91.44 m
>
> So 0.00 setlinewidth worked, but [0.00 0.00] 0 setdash failed. Assuming
> PostScript is anything like En
on line 1714 of R-lang.texi (current SVN of R-devel, 53919)
@code{x$aa} will match @code{x$aabb} if @code{x} does not a component
should probably have "contain" or "have" inserted after "not"
__
R-devel@r-project.org mailing list
https://stat.eth
Karthi Subramanian yahoo.ca> writes:
>
> I currently have a program that automates 2-way ANOVA on a series of
> endpoints, but before the ANOVA is carried out I want the code to
> test the assumptions of normality and equal variance and report along
> with each anova result in the
> output fil
Uwe Ligges statistik.tu-dortmund.de> writes:
>
>
> On 28.01.2011 13:49, peter dalgaard wrote:
> >
> > On Jan 28, 2011, at 09:47 , Andreas Mayr wrote:
> >
> >> Hi,
> >>
> >> is it possible, that the current development version for Windows (
> >> http://cran.at.r-project.org/bin/windows/base/R-2
nce to an existing plot in the logarithmic axis case: it took me
quite a bit of digging in documentation and source code to figure out
how to do this for myself, so I think it would be useful to others ...
Ben Bolker
Index: axTicks.Rd
ble by the user, or to allow a settable 'maxcols'
parameter, although those would only help in the case where the user
already knows there is a problem.
cheers
Ben Bolker
===
writeLines(c("A,B,C,D",
"1,a,b,c",
"2,f,g,c",
, and that therefore I (and the original
bug reporter) must be misunderstanding something.
Thoughts/references?
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
; source("image.R")
> z <- matrix(runif(1e6),nrow=1000)
> image(z)
> image(z,useRaster=TRUE)
(Patch against SVN 54284 attached; people can contact me if it doesn't
go through and they want it.)
Ben Bolker
Index: image.R
On 11-02-08 10:03 PM, Simon Urbanek wrote:
> Ben,
>
> did you actually look at the result of your function with useRaster=TRUE ? ;)
> [Hint: don't use an image that is symmetric]
>
> Apart from that nice bug there are more issues as well, try
> image(matrix(1:4,2)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 11-02-09 03:09 PM, Henrik Bengtsson wrote:
> On Wed, Feb 9, 2011 at 11:53 AM, Simon Urbanek
> wrote:
>>
>> On Feb 9, 2011, at 2:36 PM, Henrik Bengtsson wrote:
>>
>>> On Wed, Feb 9, 2011 at 11:25 AM, Si
Bump.
It's been a week since I posted this to r-devel. Any
thoughts/discussion? Would R-core be irritated if I submitted a bug report?
cheers
Ben
Original Message
Subject: read.csv trap
Date: Fri, 04 Feb 2011 11:16:36 -0500
From: Ben Bolker
To:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 02/11/2011 03:37 PM, Laurent Gatto wrote:
> On 11 February 2011 19:39, Ben Bolker wrote:
>>
> [snip]
>>
>> What is dangerous/confusing is that R silently **wraps** longer lines if
>> fill=TRUE (which is the default
quot;raster","image")').
Furthermore, I would strongly encourage that "raster" be made the default
behavior for the development release of R ...
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On 02/14/2011 02:59 PM, Simon Urbanek wrote:
>
> On Feb 14, 2011, at 2:28 PM, Paul Murrell wrote:
>
>> Hi
>>
>> On 15/02/2011 8:11 a.m., Simon Urbanek wrote:
>>>
>>> On Feb 14, 2011, at 12:26 PM, Ben Bolker wrote:
>>>
>>>
correctly. Which device should I use then?
See
http://developer.r-project.org/Raster/raster-RFC.html
(near the bottom of the page, where it explains that the
Windows device supports alpha but not per-pixel alpha ...)
cheers
Ben Bolker
__
R-d
supposed to
>> support alpha per pixel as well, but on Windows that's still no avail.
>> So basically, on Windows I can forget about alpha?
>>
>> Cheers
>> Jors
>>
>> On Tue, Feb 15, 2011 at 2:20 PM, Ben Bolker wrote:
>>> Joris Meys gmai
also makes drop1() work
with lme fits ...
Comments? Should I submit to the bug database as "enhancement
request"? Are there any hidden downsides to this?
Ben Bolker
Index: add.R
===
--- add.R (revision 54562)
+++ add.R
On 11-02-23 03:20 PM, Martin Maechler wrote:
>>>>>> Ben Bolker
>>>>>> on Wed, 23 Feb 2011 09:14:37 -0500 writes:
>
> > By changing three lines in drop1 from access based on $
> > to access based on standard accessor methods
ing is
being introduced ...)
>
> On Wed, 23 Feb 2011, Martin Maechler wrote:
>
>>>>>>> Ben Bolker
>>>>>>> on Wed, 23 Feb 2011 09:14:37 -0500 writes:
>>
>>> By changing three lines in drop1 from access based on $
>>&
Ben Bolker gmail.com> writes:
> On 02/11/2011 03:37 PM, Laurent Gatto wrote:
> > On 11 February 2011 19:39, Ben Bolker gmail.com> wrote:
> >>
> > [snip]
> >>
Bump. Is there any opinion about this from R-core??
Will I be scolded if I submit this a
simplify: logical or character string; should the result be simplified
to a vector, matrix or higher dimensional array if possible?
The default, ‘TRUE’, returns a vector or matrix if
appropriate, whereas ‘signify = "array"’, rather recommended
typically, t
if I am doing something boneheaded.
Does anyone have suggestions for what to try next ... ?
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Ben Bolker gmail.com> writes:
>
>
> I have been struggling all day to import a particular function/method
> combination (ranef(), which extracts the random effects from a mixed
> model fit) from the nlme package into another package ... so far without
> success.
Prof Brian Ripley stats.ox.ac.uk> writes:
>
> On Thu, 24 Mar 2011, Ben Bolker wrote:
>
> > Ben Bolker gmail.com> writes:
> >
> >>
> >>
> >> I have been struggling all day to import a particular function/method
> >> combi
On 03/24/2011 03:03 PM, Hadley Wickham wrote:
> On Wed, Mar 23, 2011 at 7:20 PM, Ben Bolker wrote:
>> Ben Bolker gmail.com> writes:
>>
>>>
>>>
>>> I have been struggling all day to import a particular function/method
>>> combination (r
that inside the function, summary() is calling
summary.default instead of seeing the summary method for "mer" objects ...
I have (re-re-re-)read the appropriate R-exts section, without luck,
and tried various minor variations (e.g. import()ing all of lme4,
changing the order of the directive
On 11-03-26 02:52 PM, Martin Morgan wrote:
> On 03/26/2011 11:14 AM, Ben Bolker wrote:
>>
>>Dear list,
>>
>>I have another (again possibly boneheaded) puzzle about importing,
>> again encapsulated in a nearly trivial package. (The package is posted
>>
Classes in
the nlme package).
You're probably not looking for <http://en.wikipedia.org/wiki/PD>
good luck -- if you give more context you might get a more
useful answer.
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Joris Meys gmail.com> writes:
>
> The behaviour of hist.POSIXt when using the col argument is different
> from the default hist, in the respect that it colors the axes as well.
> I think this is due to the ... argument, which is passed to the
> axis.POSIXct() function. In the default hist, col i
would it be possible / make sense to copy some of the information in
?news into the R-exts manual, where package writers are most likely (?)
to look for it? The information therein seems more appropriate for the
extensions manual ...
cheers
Ben Bolker
gt; Thanks Dma
>
Please pick *either* r-help *or* Stack Overflow to post your question:
don't cross-post.
(<http://stackoverflow.com/questions/5895356/whats-r-save-terminal-flag>)
As always, reproducible examples are helpful: please see the
nd it would be nice if there were at least an
informative warning message. If there were any enthusiasm for it, I
would try to come up with a test and warning to incorporate into the
current version of bs() ...
Ben Bolker
__
R-devel@r-project.org maili
wavelet capability in base R -- and
probably which particular functions from those packages). It would
be best if you could provide a reproducible question -- although I
recognize that could be difficult in this case.
You might also try stackoverflow.com or stackexchange.com
good luck
ar.gz',
'.tar.bz2' or '.tgz'." I just skimmed through the relevant section
(1.3.1) in the R Extensions manual, and it doesn't say anything about
running on tarballs being preferred.
Add my vote to the wishlist that the src directory should get cleaned
after R C
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 06/02/2011 09:12 AM, Duncan Murdoch wrote:
> On 11-06-02 9:06 AM, Ben Bolker wrote:
>> On 06/02/2011 06:47 AM, Benilton Carvalho wrote:
>>> 'R CMD check' should be applied on the .tar.gz, not on the source
>>>
Paul Johnson gmail.com> writes:
>
> I'd like to learn the process of revising R functions & packages and
> then submitting proposed patches to the R Core team. Would someone be
> willing to mentor me through one example?
I don't know about mentoring, but I'll give my two cents (some
specific
Dr. D. P. Kreil (Boku boku.ac.at> writes:
>
> Dear John,
>
> > I suggest that you look at the abilities of the mgcv package.
> > There are notes of mine at
> >
> > http://www.maths.anu.edu.au/%7Ejohnm/r-book/xtras/autosmooth.pdf
> >
> > that may help you get started.
>
> Thank you very much fo
doesn't get lost?
cheers
Ben Bolker
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4UbqAACgkQc5UpGjwzenOv7QCgkd8e9C0ANgO7/8kM9nCdWYAG
w/MAn2tF12ACCj+6cI6M3qJ7mu7r59g3
=NM3G
-END PGP SIGN
Prof Brian Ripley stats.ox.ac.uk> writes:
>
> It depends what you mean by 'vignette': the R docs have been unclear
> (but R >= 2.13.0 are more consistent). In most cases a 'vignette' is
> an Sweave document, the vignette source being the .Rnw file, and the
> vignette PDF the processed .pdf f
or information on tail.function (which is listed in the
methods:
> methods(class="function")
[1] as.list.function head.function* print.function tail.function*
I find the same S3method syntax, so I guess the quotation marks aren't
the problem ...
Any ideas?
Ben Bolker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 07/25/2011 12:55 PM, Uwe Ligges wrote:
>
>
> On 25.07.2011 17:45, Ben Bolker wrote:
>
>I recently suggested to someone (
> http://stackoverflow.com/questions/6789055/r-inconsistency-why-add-t-sometimes-works-and-sometim
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
OK, I see that BDR did this on 2011-06-08 -- I was getting confused by
looking at the code of the development version but running the release
version.
Thanks.
Ben
On 07/26/2011 02:33 PM, Uwe Ligges wrote:
> Now I see the difference: I
the attached should probably read "regarded by some OSes as separate
..." Patch attached from latest SVN.
Ben Bolker
Index: R-admin.texi
===
--- R-admin.texi(revision 56743)
+++ R-admin.texi(wo
Scott googlemail.com> writes:
>
> It does look like you've got a memory issue. perhaps using
> as.is=TRUE, and/or stringsAsFactors=FALSE will help as optional arguments
> to read.table
>
> if you don't specify these sorts of things, R can have to look through the
> file and figure out which
gure,
configure.ac, etc., comparing what is done with the "splines" package,
and no glaring differences leap out at me -- so I'm stumped.
If I do ./configure --without-parallel; make , it works.
If I'm being an idiot please be gentle ...
Ben Bolker
_
On 11-09-20 09:29 PM, peter dalgaard wrote:
>
> On Sep 20, 2011, at 20:57 , Ben Bolker wrote:
>
>>
>> From SVN revision 57032, with configuration
>>
>> R is now configured for i686-pc-linux-gnu
>>
>> Source directory: . Installati
: argument is of length zero
I would guess that error messages with the word "magic" in them would
be disturbing to new users, who are probably worried already that R is
magic ...
Ben Bolker
Index: load.R
===
--- load.R
Just to save someone else a few seconds of googling: when you try to R
CMD check with recent versions of R-devel and you get
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! LaTeX Error: File `inconso
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 09/23/2011 06:25 PM, Dirk Eddelbuettel wrote:
>
> On 23 September 2011 at 18:03, Ben Bolker wrote:
> | Just to save someone else a few seconds of googling: when you try to R
> | CMD check with recent versions of R-devel
Mehmet Suzen mango-solutions.com> writes:
> This might be obvious but I was wondering if anyone knows quick and easy
> way of writing out a CSV file with varying row lengths, ideally an
> initial data read from a CSV file which has the same format. See example
> below.
>
> writeLines(c("A,B,C,D"
abilities()["tcltk"] TRUE, but trying library("tcltk")
still returns
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
call: fun(libname, pkgname)
error: Tcl/Tk support is not available on this system
Any more suggestions on troubleshooting/diagnosing?
t it as though it is ...
Thanks for the offer of help ...
Ben
On 15-05-26 10:25 AM, Dirk Eddelbuettel wrote:
>
> Ben,
>
> At work with little time so _real brief_:
>
> -- we build r-devel "all the time", in fact nightly for rocker; and
> there are Dockerfiles to look a
fact that it would be much more easily adopted in base R, I think it
is much more likely to find a home in an add-on package such as aods3
or glm2 than in base R ...
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
loop through the list and stop
when I find it. But I'd prefer to use built-in functionality if possible.
Does anyone have any clues/see what I'm missing?
cheers
Ben Bolker
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
iQEcBAEBAgAGBQJV3JQLAAo
ages currently on CRAN and
2000+ packages on BioConductor, which represent the tip of the
iceberg of deployed R code ...
As you say, multi-line comments and multi-line commands have
been discussed many times, but most existing R users have already
gotten used to the existing workarounds (e.g. using
o me, but it
could be argued that this is just an edge case, too bad. I don't
really mind getting scolded for submitting what is considered, but I'm
trying to do my due diligence.
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Duncan Murdoch gmail.com> writes:
>
> On 04/10/2015 10:10 AM, Jonathan Greenberg wrote:
> > Folks:
> >
[snip snip snip]
> >
> > Is there a way to do a conditional importFrom based on the OS? Or can I
> > safely ignore this (I'm trying to submit to CRAN).
> >
>
> Yes, you can put condition
osed to work since I
thought this would be TRUE:
> f1 <- function() {}
> f2 <- function() {}
> environment(f1) <- new.env()
> environment(f2) <- new.env()
> identical(f1,f2,ignore.environment=TRUE) ## FALSE
Maybe the problem *is* that
Duncan Murdoch gmail.com> writes:
BB>
> >> It seems odd/inconvenient to me that the "ignore.environment" argument
> >> of identical() only applies to closures (which I read as 'functions' --
> >> someone can enlighten me about the technical differences between
> >> functions and closures if they
alidmu" and "valideta"
(no dots); try names(poisson()) or names(binomial()) and see ...
Can someone on R-core fix this and save me the trouble of filing a
bug report ... ?
Or have I misunderstood something?
cheers
Ben Bolker
_
imple typo, since a quick check of other links
to bugs in the news showed they were all ok.
Anyway, I couldn't see any webmaster contact details on
http://developer.r-project.org/ so hopefully this list message will
reach the right person.
Ben
_
In
https://cran.r-project.org/bin/windows/base/rw-FAQ.html#Package-TclTk-does-not-work_002e
:
"This [is] part of the R installation, so it should be there."
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.
under "Value", ?dbinom says
If ‘size’ is not an integer, ‘NaN’ is returned.
That should be something like
If ‘size’ is not an integer, ‘NaN’ is returned (or 'NA' for rbinom).
... at least that's what happens for me under svn rev 70138, Ubuntu 14
> rbinom(1,size=0.5,prob=0.5)
[
update.
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
* I can't find any contact/maintainer info on the r-bugs page.
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Spencer Graves prodsyse.com> writes:
>
> Hi, Gavin et al.:
>
>Thanks for mentioning these new initiatives.
>
>What's the current status of R-Hub and the current advice
> regarding trying to migrate from R-Forge to R-Hub?
>
>I ask, because I've complained to R-Forge ma
comments about defense below. The whole page is
definitely worth reading.
Thoughts?
Ben Bolker
=
Defenses against typo squatting
In short, read the thesis. If you are too lazy, do the following:
Prevent Direct Code Execution on Installations This one is easy. Make
sure that the
eady using capture.output() to store this information ...)
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
rMod
instead of merModLmerTest, so I don't get the additional columns I want.
Ideas/directions for further diagnoses? Is this an S3/S4 confusion,
or something funny about the way the broom and merModLmerTest package
are talking to each other, or ... ?
cheers
Ben Bolker
library(lm
I'm not doing a good job at explaining. See inline below ...
On 16-07-18 11:02 AM, Martin Maechler wrote:
>>>>>> Ben Bolker
>>>>>> on Fri, 15 Jul 2016 16:45:50 -0400 writes:akram
>
> > I'm sorry I haven't boiled this down t
After I save an object that contains reference class objects in some of
its slots to a file and then re-load it, all.equal() seems to break for
me. Is this a bug in all.equal, or is it likely caused by bad
implementation of methods on my side? (I see that "'all.equal()' gains
methods for 'envir
what it's worth, the original page did exist as recently as 5
April 2016:
https://web.archive.org/web/20160405100845/http://www.acm.org/publications/policies/softwarecrnotice/
Suggestions for where/to whom to report this? R-bugzilla?
c...@r-project.org? Here?
cheers
Ben B
I will post to R-bugs if this is not shot down in flames here.
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
uld we have something more sensible like
with(mtcars,mpg[cyl==8 & disp>350])
? (It could be contrasted directly with
mtcars$mpg[mtcars$cyl==8 & mtcars$disp>350]
)
I'm happy to submit a bug report/patch if that seems appropriate.
Thanks, posted to https://github.com/lme4/lme4/issues/412 for further
discussion ...
On Wed, Feb 22, 2017 at 10:03 AM, Therneau, Terry M., Ph.D.
wrote:
> I found this by accident yesterday. The program that crashes is the first
> two lines of the example from the help page for nlmer. That exampl
clude the authors' names is
pretty important, even if their names have exotic characters, so this is
worth fixing. Is this edit to packageDescription the best way to solve
this problem of exotic characters preventing the authors' names from
showing on Windows?
thanks,
Ben
Windo
information has been auto-generated from the
#' package DESCRIPTION file and may need manual editing, see
#' ‘help("citation")’.
Where do we go from here? I do want to use the Chinese locale with R on
Windows (and perhaps others do too), so switching the locale isn't a fix.
Thanks very much, I see your bug report here:
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17291
On 18/06/2017 2:26 AM, Duncan Murdoch wrote:
On 17/06/2017 9:13 AM, Ben Marwick wrote:
Hi Duncan,
Thanks for your reply. Yes, it does seem to be specific to the CTYPE
setting to Chinese on
intainers some
bother.
Making a direct mention of DOIs will also encourage well-formatted and
visible citations of relevant scholarly work in package DESCRIPTIONs,
which is a desirable behavior for package authors, and helps to
strengthen ties between programming and research activities.
What d
<- list.files(".", all.files = TRUE, full.names = TRUE, recursive = TRUE)
It's also missing from built-in help pages, for example ?Sys.chmod
best,
Ben
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Thanks!
On 22/07/2017 4:08 PM, Duncan Murdoch wrote:
On 22/07/2017 8:19 AM, Ben Marwick wrote:
Hi everyone,
In the example code at the bottom of this page,
https://stat.ethz.ch/R-manual/R-devel/library/base/html/files2.html,
there is a missing `=`. That page has:
f <- list.fi
"form" -> "from". Diff against latest SVN:
Index: sparse.model.matrix.Rd
===
--- sparse.model.matrix.Rd (revision 3336)
+++ sparse.model.matrix.Rd (working copy)
@@ -4,7 +4,7 @@
\alias{fac2sparse}
\alias{fac2Sparse}
\descr
tracker, so it will get more attention here; once the excitement has
died down here (which might be almost immediately!), if no-one has
already volunteered to post it to the bug tracker, request an account
(as specified at https://www.r-project.org/bugs.html )
Thanks!
Ben Bolker
For what
unk")==12)) ## not OK
attr(m1,"junk") ## NULL
## note I have to use the ugly stopifnot(isTRUE(...)) because a missing
attribute returns NULL, an assignment to NULL returns NULL, and
stopifnot(NULL) doesn't stop ...
cheers
Ben Bolker
_
r(m1,"junk")==12)) ## OK
m1[cbind(1:2,2:3)] <- 1
stopifnot(isTRUE(attr(m1,"junk")==12)) ## OK
attr(m1,"junk") ## 12
Do you lose attributes with this code? It would surprise me if this
had changed in recent versions but I guess anything's possible ...
O
trix(0,nrow=3,ncol=10, dimnames=list(letters[1:3],LETTERS[1:10]))
rr <- c("a","b","c")
cc <- c("B","C","E")
m <- Matrix(matrix(1:9,3,3))
x[rr,cc] <- m
cheers
Ben Bolker
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
I take Duncan's point but would second the motion to have WRE clarify
how static vignettes are supposed to work; it's a topic I am repeatedly
confused about despite being an experienced package maintainer. If
knowledgeable outsiders compiled a documentation patch would it be
likely to be cons
I may be unusual but I don't find these examples surprising at all/
I don't think I would make these mistakes (maybe it's easier to make
that mistake if you're used to a language where 'return' is a keyword
rather than a function?
My two cents would be that it would make more sense to (1) wri
OK, you're way ahead of me. If this is in the QA tools, I guess I
don't really see the need to change the parser and/or the language to
flag it immediately?
On Fri, Nov 20, 2020 at 7:43 PM Duncan Murdoch wrote:
>
> On 20/11/2020 7:01 p.m., Ben Bolker wrote:
> >I may
The 'offset' argument description is blank ...
maybe 'additive adjustment to each of the (red, green, blue, alpha)
values defining the colors, after adjustment by the corresponding
\code{.f} factor' ...?
This is the relevant code:
x <- col2rgb(col, alpha = TRUE)/255
x[] <- pmax(0, p
FWIW there is previous discussion of this in a twitter thread from May:
https://twitter.com/bolkerb/status/1258542150620332039
at the end I suggested defining something like .__END <- identity() as a
pipe-ender.
On 12/9/20 2:58 PM, Kevin Ushey wrote:
I agree with Duncan that the right solu
101 - 200 of 585 matches
Mail list logo