Re: [Rd] suggestion for "sets" tools upgrade

2014-02-06 Thread R. Michael Weylandt
On Thu, Feb 6, 2014 at 8:31 PM, Carl Witthoft wrote: > First, let me apologize in advance if this is the wrong place to submit a > suggestion for a change to functions in the base-R package. It never really > occurred to me that I'd have an idea worthy of such a change. > > My idea is to provide

Re: [Rd] user defined macros in Rd files

2013-10-12 Thread R. Michael Weylandt
On Oct 9, 2013, at 21:18, Duncan Murdoch wrote: > On 13-10-09 7:54 PM, Henrik Bengtsson wrote: >> >> >> On my related wishlist: A standardized mechanism to 'R CMD build' for >> building man/*.Rd from any input format (e.g. roxygen and so on) >> analogously how we can now build vignettes of an

Re: [Rd] R CMD check fails in R-devel r63910

2013-09-13 Thread R. Michael Weylandt
On Sep 13, 2013, at 7:44, alku wrote: > Hi, > > The R CMD check is successful in R 3.0.1 but fails to install package > lmerTest under R-devel r63910, > Here is what I get: > > ** preparing package for lazy loading > Error in reconcilePropertiesAndPrototype(name, slots, prototype, > superCla

Re: [Rd] Accessing the formals() of a non-exported method without :::?

2013-08-23 Thread R. Michael Weylandt
On Aug 23, 2013, at 11:15, Gavin Simpson wrote: > Dear List, > > I'm in the process of making tweaks to my various R packages following > changes in r-devel for package checks. I'm wondering about the one use > of ::: in one of my packages. I am arranging for a call to a > non-exported S3 meth

Re: [Rd] Confusion about Depends:, Imports:, Enhances:, import(), inportFrom()

2013-08-22 Thread R. Michael Weylandt
On Aug 22, 2013, at 15:33, Henrik Bengtsson wrote: > On Thu, Aug 22, 2013 at 10:05 AM, R. Michael Weylandt > wrote: >> >> >> On Aug 22, 2013, at 9:09, Michael Friendly wrote: >> >>> In checking my vcdExtra package, the following NOTE newly appear

Re: [Rd] Confusion about Depends:, Imports:, Enhances:, import(), inportFrom()

2013-08-22 Thread R. Michael Weylandt
On Aug 22, 2013, at 9:09, Michael Friendly wrote: > In checking my vcdExtra package, the following NOTE newly appeared (R-Forge, > using R version 3.0.1 Patched (2013-08-20 r63635)) > > Package in Depends field not imported from: ‘gnm’ > These packages needs to imported from for the case whe

Re: [Rd] Extending suggestion for stopifnot

2013-08-20 Thread R. Michael Weylandt
On Aug 20, 2013, at 14:41, ivo welch wrote: > A second enhancement would be a "smart string", which knows that > everything inside {{...}} should be evaluated. I think one the HTML templating libraries (whisker or mustache or some such) provides something not unlike this. Perhaps take a look

Re: [Rd] Depends vs Imports

2013-07-31 Thread R. Michael Weylandt
On Wed, Jul 31, 2013 at 7:35 PM, Simon Urbanek wrote: > > On Jul 31, 2013, at 7:14 PM, Paul Gilbert wrote: > >> I am being asked to modernize the Depends line in the DESCRIPTION file of >> some packages. Writing R Extensions says: >> >> The general rules are >> >> Packages whose namespace on

Re: [Rd] On the mechanics of function evaluation and argument matching

2013-07-17 Thread R. Michael Weylandt
On Wed, Jul 17, 2013 at 9:58 AM, Brian Rowe wrote: > Hello, > > Section 4.3.2 of the R language definition [1] states that argument matching > to formal arguments is a 3-pass process to match arguments to a function. An > error is generated if any (supplied) arguments are left unmatched. > Inte

Re: [Rd] Inconsistent results from .C()

2013-05-21 Thread R. Michael Weylandt
It might also help if you can point us to the C code to help debug. MW On Tue, May 21, 2013 at 10:53 AM, Robin Evans wrote: > I should add to this that I'm running on Scientific Linux 6. I later > noticed that the bug only seems to occur when I run the code from Rstudio, > and not if I use the

Re: [Rd] locking down R

2013-05-19 Thread R. Michael Weylandt
On Sun, May 19, 2013 at 7:16 PM, Ben Bolker wrote: > > Is anyone on this list aware of discussions about locking down/securing R? > > My colleagues and I are working with health statistics in an office > that disallows many useful tools (e.g. emacs, vim, perl, make) on the > grounds that they

Re: [Rd] Latex errors (build on windows)

2013-05-03 Thread R. Michael Weylandt
Can you post the offending package? On Fri, May 3, 2013 at 8:46 AM, Knut Krueger wrote: > Where can I found hepl about latex errors: > > the R CMD check tells me less, but: > * checking PDF version of manual ... WARNING > LaTeX errors when creating PDF version. > This typically indicates Rd probl

Re: [Rd] Minimal build of R ...

2013-05-02 Thread R. Michael Weylandt
On Thu, May 2, 2013 at 5:12 PM, Jony Hudson wrote: > Hi, > > I'm trying to cross-compile R to javascript so that it can run in a > web-browser. Take as long as you need to stop laughing. So, as I was saying - > I want to try and get a build of R running in the browser. [If you're not > familia

Re: [Rd] diag() when input is a numeric scalar

2013-05-02 Thread R. Michael Weylandt
On Thu, May 2, 2013 at 12:35 AM, philchalmers wrote: > Hi All, > > I'm wondering why when passing a single numeric value that contains any > decimals to diag() that the value is silently coerced to a integer for > constructing an identify matrix. To me, an input like diag(5.435) seems > fairly amb

Re: [Rd] Catch SIGINT from user in backend C++ code

2013-05-02 Thread R. Michael Weylandt
On Thu, May 2, 2013 at 12:50 AM, Jewell, Chris wrote: > Hi, > > I was wondering if anybody knew how to trap SIGINTs (ie Ctrl-C) in backend > C++ code for R extensions? I'm writing a package that uses the GPU for some > hefty matrix operations in a tightly coupled parallel algorithm implemented

Re: [Rd] Why does typeof() modify an object's "named" field?

2013-03-23 Thread R. Michael Weylandt
On Fri, Mar 22, 2013 at 7:43 PM, Josh O'Brien wrote: > Some other functions that query the nature of an object (e.g. class(), > length(), attributes()) do not modify the object's "named" field. Is > there a reason that typeof() should? > Because it's not implemented as a primitive and the closure

[Rd] Typo-let in NEWS.Rd

2013-03-20 Thread R. Michael Weylandt
Applicable against current trunk and (I believe) R-3.0.0 branch. Michael Index: doc/NEWS.Rd === --- doc/NEWS.Rd (revision 62340) +++ doc/NEWS.Rd (working copy) @@ -183,7 +183,7 @@ through as bytes inputs invalid in the curren

Re: [Rd] Viewing Compelete Decision Tree in R - R.2.15.2 - Wndows7 32bit

2013-03-14 Thread R. Michael Weylandt
Not an R-devel question. Wait for a response for your cross post to R-help. MW On Thu, Mar 14, 2013 at 9:51 AM, Manoj G wrote: > I tried drawing some decision trees. Since the number of levels are more in > the tree, the plot result for the decision tree is not clear and > conjusted. If i sav

Re: [Rd] It's a BUG or a Feature? Generating seq break comparing operators

2013-02-07 Thread R. Michael Weylandt
R FAQ 7.31 Cheers, MW On Thu, Feb 7, 2013 at 10:05 AM, Davide Rambaldi wrote: > Hello everybody: > > I get a strange behavior with seq, take a look at this: > >> msd <- seq(0.05,0.3, 0.01) >> msd[13] > [1] 0.17 >> class(msd) > [1] "numeric" >> class(msd[13]) > [1] "numeric" >> typeof(msd[13]) >

Re: [Rd] [R] error in plot(table(c('a','a')))

2012-11-28 Thread R. Michael Weylandt
Should I file an issue for this in the bug tracker? Slighly rearranged discussion with reproducible example follows on below. > Em 26-11-2012 21:39, R. Michael Weylandt escreveu: >> >> On Mon, Nov 26, 2012 at 2:41 PM, Ludo Pagie wrote: >>> tbl.char1 <- table(c('a

Re: [Rd] [R] choose folder interactively

2012-11-28 Thread R. Michael Weylandt
On Wed, Nov 28, 2012 at 12:47 PM, Duncan Murdoch wrote: > On 12-11-28 7:39 AM, Ivan Calandra wrote: >> >> Dear users, >> >> I am looking for a function to choose a folder interactively, just like >> file.choose() but for a folder. >> > "choose.dir()" does exist on Windows, so you could switch to t

Re: [Rd] Retrieving data from aspx pages

2012-10-30 Thread R. Michael Weylandt
Hi Jose, I think this is more of an r-help question so I'm going to forward your question there: R-devel is really for the development of R itself, not development with R. Cheers, Michael On Mon, Oct 29, 2012 at 8:11 PM, jose ramon mazaira wrote: > Hi. I'm trying to write an application to retr

[Rd] malloc error in tab-completion: OS X

2012-10-07 Thread R. Michael Weylandt
I've just built R-devel (r60889) from source on my Mac OS X 10.6.8 using gcc from Xcode and gfortran from Simon. I didn't use all the recommended configuration flags only ./configure && make Still, I seem to pass "make check" and "make test-Segfault" in the tests directory with no problem, but th

[Rd] Small Extension to license()/licence()

2012-09-30 Thread R. Michael Weylandt
By analogy with maintainer(), I suggest extending license() to give the licensing terms of packages as well as R itself when prompted. Below is a small patch in that direction. This won't break anything and imposes no significant maintenance burden; it has the advantage of making it ever so margina

Re: [Rd] R crashes when printing a named numeric vector of a specific class - Bug?

2012-09-11 Thread R. Michael Weylandt
On Tue, Sep 11, 2012 at 4:35 PM, Milan Bouchet-Valat wrote: > Le mardi 11 septembre 2012 à 16:53 +0200, Basil Abou El-Komboz a écrit : >> Dear useR's, >> >> today I stumbled over an interesting phenomenon: First, I created a >> named numeric vector with a certain class and several attributes via t

Re: [Rd] Don't dput() data frames?

2012-08-28 Thread R. Michael Weylandt
On Tue, Aug 28, 2012 at 1:00 PM, Simon Urbanek wrote: > > On Aug 28, 2012, at 1:51 PM, R. Michael Weylandt wrote: > >> /src/main/attrib.c contains this comment in row_names_gets(): >> >> /* This should not happen, but if a careless user dput()s a >>

[Rd] Don't dput() data frames?

2012-08-28 Thread R. Michael Weylandt
/src/main/attrib.c contains this comment in row_names_gets(): /* This should not happen, but if a careless user dput()s a data frame and sources the result, it will */ which svn blame says Prof Ripley placed there in r39830 with the commit message "correct the work of dput() on the r

Re: [Rd] [BUG?] utils::prompt(name=f)

2012-07-30 Thread R. Michael Weylandt
Just for the record, I don't see that error with 2.15.0 or with R-Devel 60040-someodd. Both display > foo <- function(x) cat(x, "\n") > prompt(name = "foo") Created file named ‘foo.Rd’. Edit the file and move it to the appropriate directory. Best, Michael On Sun, Jul 29, 2012 at 12:17 PM, Paul R

Re: [Rd] questions on R CMD INSTALL et al

2012-07-24 Thread R. Michael Weylandt
On Tue, Jul 24, 2012 at 2:30 PM, luxInteg wrote: > Greetings, > > I am learning R > My machine has these; > CPU: 3cores amd64 > OS pure-64bit CBLFS liux compiled from sources (kernel 3.2.1, gcc-4.6.2 > R-2.15 > When I compiled R the compiler spewed out lines like these:- > > make[3]: Entering

Re: [Rd] large dataset - confused

2012-07-23 Thread R. Michael Weylandt
1) Move this off R-devel to R-help. 2) Read the IO manual here: http://cran.r-project.org/manuals.html 3) You probably want to look at the read.table() function's help page by typing ?read.table Michael On Mon, Jul 23, 2012 at 12:32 PM, walcotteric wrote: > I'm trying to load a dataset into R,

[Rd] Interaction parameter for split()

2012-06-08 Thread R. Michael Weylandt
Tal's wonderful aggregator recently reblogged this post: http://rsnippets.blogspot.com/2012/06/you-should-not-use-split-in-production.html It's a rather obscure little buglet [and probably only arises in pathological cases], but I don't know if it's not a case that deserves a bit of consideration

Re: [Rd] Object-oriented programming (OOP)

2012-05-15 Thread R. Michael Weylandt
R has multiple OO paradigms, but since you're starting from a point of "I want object oriented," I'd guess you would be interested in the S4 paradigm which is stricter rather than the far more sane S3 system. If S4 is for you, there are some good links here: http://stackoverflow.com/questions/4143

[Rd] StructTS Examples

2012-05-14 Thread R. Michael Weylandt
In the examples for StructTS -- ($RHOME)/library/stats/man/StructTS.Rd -- could par(mfrow = c(4, 1)) plot(log10(UKgas)) plot(cbind(fitted(fit), resids=resid(fit)), main = "UK gas consumption") become plot(log10(UKgas)) par(mfrow = c(4, 1)) plot(cbind(fitted(fit), resids=resid(fit)), main = "UK g

Re: [Rd] creating a package in R

2012-04-29 Thread R. Michael Weylandt
http://cran.r-project.org/doc/manuals/R-exts.pdf Ships with every distribution of R Michael On Apr 29, 2012, at 10:08 AM, nossa wrote: > Please give me the necessary links that permits me to create my own package > inR > > -- > View this message in context: > http://r.789695.n4.nabble.com/c

[Rd] Typo in ?Logistic

2012-03-26 Thread R. Michael Weylandt
In the source section of ?rlogis, we see: Source: ‘[dpr]logis’ are calculated directly from the definitions. ‘rlogis’ uses inversion. Should that read "[dpq]logis" instead? Michael __ R-devel@r-project.org mailing list https://stat.ethz.ch

[Rd] enableJIT(3) with Primitives

2012-03-20 Thread R. Michael Weylandt
I'm not sure if this is a bug or expected behavior, but I don't see anything in the documentation that explains it, so I thought I'd mention it: ~ michaelweylandt$ R -q --vanilla library(compiler) enableJIT(3) `+` # Throws an error `+` # Throws a warning `+` # Prints the primitive as expected s