Re: [Rd] R patched for Windows missing

2005-10-26 Thread Duncan Murdoch
d.html is currently looking like > this: See the thread on this with subject "Re: [Rd] download problem: Windows binaries - patched/devel versions". We know about it and are working on it. It's caused by the mirroring software being a little too helpful. Duncan Murdo

Re: [Rd] Critical Bug in type conversions: as.integer, trunc, ... (PR#8255)

2005-10-27 Thread Duncan Murdoch
haviour for floating point values, discussed in the FAQ item on "7.31 Why doesn't R think these numbers are equal?" Duncan Murdoch > > To reproduce: > > expected: >> typeof(3) > [1] "double" > >> as.integer(3) > [1] 3 > > stra

Re: [Rd] [R] unvectorized option for outer()

2005-10-31 Thread Duncan Murdoch
ngs like "eval", "substitute", etc. So I'd say that you don't want anything special there, as long as you make sure that FUN is always evaluated in its original environment. Generally I don't like the look of that manipulation of the body of your result; it lo

Re: [Rd] [R] unvectorized option for outer()

2005-10-31 Thread Duncan Murdoch
FUNV) <- environment(FUN) No, definitely not. For example, FUN may have been defined in an environment in which "eval" has been replaced, but if FUNV needs eval, it needs the original one. At some point FUNV will call FUN. As long as that evaluatio

Re: [Rd] [R] unvectorized option for outer()

2005-10-31 Thread Duncan Murdoch
"A", "alpha")) It appears to give the right answer: > outer(1:3, 1:2, SSD, Y) [,1] [,2] [1,] 53.51878 54.92567 [2,] 52.06235 54.85140 [3,] 50.63071 54.77719 but that's a bit of a surprise, and I wouldn't be too surprised if there are other weird ex

Re: [Rd] [R] unvectorized option for outer()

2005-11-01 Thread Duncan Murdoch
ize.args, names(args), nomatch = 0) do.call("mapply", c(FUN = FUN, args[dovec], MoreArgs = list(args[-dovec]), SIMPLIFY = SIMPLIFY, USE.NAMES = USE.NAMES)) } forma

Re: [Rd] [R] unvectorized option for outer()

2005-11-01 Thread Duncan Murdoch
On 11/1/2005 10:16 AM, Thomas Lumley wrote: > On Tue, 1 Nov 2005, Duncan Murdoch wrote: > >> The version I posted yesterday did indeed mess up when some arguments were >> unspecified. Here's a revision that seems to work in all the tests I can >> think of.

Re: [Rd] spyware detected (PR#8270)

2005-11-01 Thread Duncan Murdoch
the installer, so this looks like a false alarm. If I were you I'd contact the writers of "Spy Sweeper" with a bug report. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Documentation error in online help for print.data.frame (PR#8273)

2005-11-01 Thread Duncan Murdoch
le, down in the Arguments section it says: > > right: logical, indicating whether or not strings should be >right-aligned. The default is left-alignment. > > This seems to be at odds with the right=TRUE in the Usage, and with what I see > when I pri

Re: [Rd] unvectorized option for outer()

2005-11-02 Thread Duncan Murdoch
I've now added a version of Vectorize to R-devel. Duncan __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Changes to environments in R-devel

2005-11-03 Thread Duncan Murdoch
tyenv(). - You can now create your own environment with emptyenv() as its parent. Searches for variables in such an environment will not automatically proceed to baseenv(), as searches do in current R releases. Duncan Murdoch __ R-devel@r-proje

Re: [Rd] Packages that require other packages - How?

2005-11-09 Thread Duncan Murdoch
all library or require to attach my package? > > Apologies for being dense... You can either put a call to require() in the function that needs it (which would be the best solution if that function is relatively rarely used), or in the startup code (in .First.lib, .onLoad, or .onAttach:

Re: [Rd] Packages that require other packages - How?

2005-11-09 Thread Duncan Murdoch
On 11/9/2005 1:31 PM, Kasper Daniel Hansen wrote: > On Nov 9, 2005, at 9:22 AM, Duncan Murdoch wrote: > >> On 11/9/2005 11:50 AM, Gavin Simpson wrote: >>> Dear list, >>> >>> The help page for library/require contains the following paragraph in >>> t

[Rd] bug in windows GUI/script editor (PR#8288)

2005-11-09 Thread Duncan Mackay
ow 5) click in the close box of the script window (which was visible even though the script window was largely behind the console window) 6) click on the File menu ..CRASH!!! "R for Windows GUI front-end has encountered a problem and needs to close. We are sorry for the inconveni

[Rd] bug in windows GUI/script editor (PR#8288)

2005-11-09 Thread Duncan Mackay
s encountered a problem and needs to close. We are sorry for the inconvenience." Cheers, Duncan > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major2 minor

Re: [Rd] bug in windows GUI/script editor (PR#8288)

2005-11-09 Thread Duncan Murdoch
On 11/9/2005 6:16 PM, Duncan Mackay wrote: > Here's how I can reproduce this bug, running under MDI under WinXP > > 1) start Rgui > 2) open a script window using File>New script > 3) click back in the console window and open a help window (e.g. by typing > "?me

Re: [Rd] R: bug in windows GUI/script editor (PR#8288)

2005-11-10 Thread Duncan Murdoch
it overwrites some pointers to those items. When the script editor is closed, the pointers become invalid, and you may crash. The second fix will require more extensive work, but I should get it done today. Duncan Murdoch __ R-devel@r-project.org

Re: [Rd] R: bug in windows GUI/script editor (PR#8288)

2005-11-10 Thread Duncan Murdoch
On 11/10/2005 8:58 AM, Duncan Murdoch wrote: > On 11/10/2005 3:02 AM, [EMAIL PROTECTED] wrote: > >>SGkgRHVuY2FuLA0KSSBhbSBydW5uaW5nIFIgaW4gTURJIG1vZGUgKHdpdGggbG9jYWxpc2F0 > > > Roberto: > > Something went wrong with your posting -- it came out completely in &g

Re: [Rd] Scan data from a .txt file

2005-11-17 Thread Duncan Murdoch
Can someone suggest a way to do this. You probably want to use read.table("table.txt", head=TRUE). Chances are it will automatically recognize the column types; if not, there's the colClasses argument. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] pr[in]comp: predict single observation when data has colnames (PR#8324)

2005-11-18 Thread Duncan Murdoch
is the line > > newdata <- newdata[, nm] > > in predict.prcomp (line 106 of prcomp.R) and predict.princomp (line 11 > of princomp-add.R), which should probably be > > newdata <- newdata[, nm, drop = FALSE] > Yes, I see the problem, and I agree with your correction. I'll commit a patch. Thanks! Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Image display in R

2005-11-18 Thread Duncan Murdoch
use locator() to determine which cell someone clicked on. You can see that code here: <http://tolstoy.newcastle.edu.au/~rking/R/help/05/10/14322.html>. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] problem with \eqn (PR#8322)

2005-11-18 Thread Duncan Murdoch
aion of \eqn) > > \eqn{{\bf\beta}_j}{\bf\beta}_jnormal-bracket5bracket-normal{b(j)} > > In other words, > \eqn{...}{...}_... > > and the "_" is still outside of any maths environment, which is most > probably not Ross's intention. But that is Latex code produ

Re: [Rd] windrose (circular package) error in table (PR#8341)

2005-11-21 Thread Duncan Murdoch
elow) is incorrect when using different rotations. More > precisely, when a rotation is used for the plot, the output table stuffs up. Please send bug reports about contributed packages to the maintainer, Claudio Agostinelli <[EMAIL PROTECTED]>. Duncan Murdoch > > This example

Re: [Rd] Changes to Windows registry in R-2.2.0

2005-11-24 Thread Duncan Murdoch
those manuals is in Texinfo format (.texi); don't edit the HTML versions. > There is one out-of-date entry: in R-2.2.0\doc\manual\R-exts.html it says: > [...] > Find and set the R home directory and the user's home directory. The > former may be available from the Windows Registry:

Re: [Rd] Building a windows binary of a package on Linux

2005-11-30 Thread Duncan Murdoch
27;ve got that file if you installed a pre-built R, but it's in the source tarball (and in https://svn.r-project.org/R. Choose a tag subdirectory for a release version, or the trunk for the latest and greatest. You'll probably get the same instructions on all rec

Re: [Rd] RNG stuck via Fortran call

2005-11-30 Thread Duncan Murdoch
l code if it's short enough. It sounds as though you're not handling the RNG state properly. Please don't send this code to me, post it to the list. (Actually, in putting together a short reproducible example, you're very likely to discover the bug yourself, and won

Re: [Rd] Building a windows binary of a package on Linux

2005-11-30 Thread Duncan Murdoch
On 11/30/2005 11:02 AM, Gavin Simpson wrote: > On Wed, 2005-11-30 at 10:46 -0500, Duncan Murdoch wrote: >> On 11/30/2005 9:33 AM, Gavin Simpson wrote: >> > Dear List, >> > >> > Can I build a binary package (.zip) for Windows on my Linux machine from >&

Re: [Rd] download.file() online help

2005-12-04 Thread Duncan Murdoch
in ?package.dependencies. I'll fix it. Thanks! Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [R] computing the variance

2005-12-05 Thread Duncan Murdoch
example, consider a distribution which is equally likely to be +/- 1, and a sample from it consisting of a single 1 and a single -1. The first formula gives 1 (which is the variance), the second gives 2. The second formula is unbiased because in a random sample I am just as likely to get a 0 from the second formula, but I'm curious about what you mean by "this comes to". Duncan __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] ID for machine?

2005-12-09 Thread Duncan Murdoch
Does R have a function to obtain a name of the machine that it is running on? I'm going to be writing results to a database from several different machines, and I'd like to be able to identify where they came from. Duncan Murdoch __

Re: [Rd] ID for machine?

2005-12-09 Thread Duncan Murdoch
uaranteed to work, but I think it's pretty likely to, whereas some of the system() calls are a little more fragile.) Duncan __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] CRAN and R v2.2.1 for Windows

2005-12-21 Thread Duncan Murdoch
he > "stable" version. That should be fixed soon. The handling for betas and patch versions is different, and sometimes there's a bit of a delay in the switchover as things fail on one or two builds. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] random output with sub(fixed = TRUE)

2005-12-21 Thread Duncan Murdoch
", v, fixed = TRUE) > > b <- as.character(0:10) > > identical(a, b) > [1] TRUE > > > > -roger I think finding two separate bugs on the day after the release goes a bit beyond what is necessary to satisfy the ritual. Duncan Murdoch > > Peter Dalgaar

Re: [Rd] Portability and Memory Issues for R-package

2005-12-27 Thread Duncan Murdoch
dd whatever functions are not already there, and then just make your package depend on the R package, rather than on the GSL library directly. This will mean that all the manual work that has been done to get gsl to build will not need to be repeated by anyone who wants to install your p

Re: [Rd] Portability and Memory Issues for R-package

2005-12-27 Thread Duncan Murdoch
tines. I would expect that if you require users to install GSL and compile your package themselves, you'll get almost no Windows users. I don't know what is involved in installing the package on other platforms. Duncan Murdoch > I may follow up with him in regards to this and

Re: [Rd] Enhancement request: anonymous connections

2005-12-27 Thread Duncan Murdoch
(working copy) @@ -11,6 +11,7 @@ if(!isOpen(con)) { ## code below assumes that the connection is open ... open(con, "rb") +on.exit(close(con)) } magic <- readChar(con, 5) Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] .Call not counting parameters consistently (PR#8450)

2005-12-28 Thread Duncan Murdoch
On 12/28/2005 3:01 PM, Duncan Temple Lang wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Coincidentally, I am in the process of working on a related aspect of > symbol resolution. > > The issue is likely to be the caching of native symbols > that we

Re: [Rd] 'sessionInfo()' instead of 'version'

2005-12-29 Thread Duncan Murdoch
the following reasonable suggestions have been made. I forget where they were posted, so you may not have seen them: - the Subversion revision number, at least for non-released versions - the version number of the GUI, at least for OS X (where it changes independently of R). Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] 'sessionInfo()' instead of 'version'

2005-12-29 Thread Duncan Murdoch
27;t see that one (or forgot I did), its omission wasn't an editorial judgement. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] xy.coords

2005-12-31 Thread Duncan Murdoch
ould mean all existing uses that put a NULL there would need to be changed. Adding a default value of NULL to y would have less impact, but I'd still be worried about it having long-range bad effects. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] xy.coords

2005-12-31 Thread Duncan Murdoch
where you would want to use xy.coords(y ~ x)? Normally xy.coords() is used in other functions, and they can default y to NULL (see plot.default, for example). Duncan Murdoch > > On 12/31/05, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > >>On 12/30/2005 10:10 PM, Gabo

Re: [Rd] xy.coords

2005-12-31 Thread Duncan Murdoch
r missing or NULL it will work as documented, > and probably intended, yet continue to be backward compatible with > existing usages. But a simpler change is to change the documentation, and it achieves all of those objectives. Duncan Murdoch > > On 12/31/05, Duncan Murdoch <[EMAIL

Re: [Rd] xy.coords

2005-12-31 Thread Duncan Murdoch
lmost never needs to specify NULL there. It's the default value for y in the high level functions that call xy.coords, so it is put there automatically. Duncan Murdoch > > On 12/31/05, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > >>On 12/31/2005 12:21 PM, Gabor Grothe

Re: [Rd] xy.coords

2005-12-31 Thread Duncan Murdoch
nd better way is as documented > and the software, not the documentation, ought to be changed. Take a look at the examples. It's pretty clear that it is working as intended, and the documentation incorrectly says "missing" where it means "NULL". Duncan Murdoch > &

Re: [Rd] New R folder names bring out Windows batch file bug

2005-12-31 Thread Duncan Murdoch
> https://stat.ethz.ch/mailman/listinfo/r-devel Please let us know Microsoft's response to your bug report. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Wish list

2006-01-01 Thread Duncan Murdoch
e areas. This mostly > affects the package buildin gprocess which could > then be rehosted within R as a package building > package. > 10. Event Loop > > Add an event loop mechanism to facilitate GUI > programming in R and also to facilitate the development > of facilities to allow higher levels of interaction > within grid graphics. There is such a thing now: see the Writing R Extensions manual. It still needs work, but people using it and suggesting improvements will help. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Enhancement request: anonymous connections

2006-01-01 Thread Duncan Murdoch
bage collector closed a connection, then things would go wrong when there were two copies of it: the second one would be messed up when the first was destroyed. If we had references, then opening a connection could create a connection object and a reference to it; the connection object would rem

Re: [Rd] Enhancement request: anonymous connections

2006-01-01 Thread Duncan Murdoch
On 1/1/2006 1:05 PM, Prof Brian Ripley wrote: > On Sun, 1 Jan 2006, Duncan Murdoch wrote: > > >>On 12/28/2005 9:50 AM, Seth Falcon wrote: >> >>>On 27 Dec 2005, [EMAIL PROTECTED] wrote: >>> >>> >>>>This is a bug in load, isn

Re: [Rd] xy.coords

2006-01-02 Thread Duncan Murdoch
On 12/31/2005 4:09 PM, Gabor Grothendieck wrote: > On 12/31/05, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > >>On 12/31/2005 3:26 PM, Gabor Grothendieck wrote: >> >>>I think this is just playng with words. >> >>I'm starting to be convinced of tha

Re: [Rd] random seed question

2006-01-05 Thread Duncan Murdoch
hms, because the state would not be updated properly. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] prod(numeric(0)) surprise

2006-01-08 Thread Duncan Murdoch
vention, which is presumably why sum and prod work that way. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] prod(numeric(0)) surprise

2006-01-09 Thread Duncan Murdoch
aluation, > > prod(c(numeric(0),1)) ==> prod( c(1) ) ==> 1 > > I would expect sum() to behave the same way, e.g., sum(numeric(0)) ==> > numeric(0). From below, > I think the code below works as I'd expect. Would you really like the last answer to be numeric(0)?

Re: [Rd] prod(numeric(0)) surprise

2006-01-09 Thread Duncan Murdoch
On 1/9/2006 1:27 PM, Liaw, Andy wrote: > If you haven't seen this in your math courses, perhaps this would help: > > http://en.wikipedia.org/wiki/Empty_set > This is what is so great about Wikipedia: it gives certainty where I'd only call it a fairly standard convention

Re: [Rd] hello World problem

2006-01-12 Thread Duncan Murdoch
you should call Rprintf() rather than printf(), if you want your function to work in environments like Windows Rgui. See the Writing R Extensions manual for the details. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Bug in xy.coords() or documentation error?

2006-01-21 Thread Duncan Murdoch
hanged, perhaps along the lines of: > > x, y: the x and y coordinates of a set of points. Alternatively, a > single object 'x' can be provided if 'y = NULL' is also > supplied. > > 'object' might not be correct here - is a fo

[Rd] 2nd argument to substitute()

2006-01-22 Thread Duncan Murdoch
ean up the findVarInFrame3 code, and currently substitute calls it with the environment set to NULL. What is the expectation there? Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [R] help with read.table() function

2006-01-29 Thread Duncan Murdoch
other platforms. Are there any obviously bad side effects from a change like this? Duncan Murdoch On 1/29/2006 11:51 AM, Peter Dalgaard wrote: > Romain Francois <[EMAIL PROTECTED]> writes: > >> Le 29.01.2006 16:26, oliver wee a écrit : >> >>> hello, I have just star

Re: [Rd] [R] help with read.table() function

2006-01-29 Thread Duncan Murdoch
e a bug in R is the root cause of these problems. This isn't about fixing a bug, it's about making the user interface a bit less error-prone. Duncan Murdoch > > Best regards, > > Marc Schwartz > > On Sun, 2006-01-29 at 12:18 -0500, Duncan Murdoch wrote: >>

Re: [Rd] [R] help with read.table() function

2006-01-29 Thread Duncan Murdoch
ually, on a command-line Unix-alike it does nothing much useful at > all): > >> readLines(file.choose()) > Enter file name: errs.txt No, it's not helpful here, but again it makes things no worse, and there's always the possibility that someone would improve file.choo

Re: [Rd] [R] help with read.table() function

2006-01-29 Thread Duncan Murdoch
t sure about right now, because they're relatively obscure: sys.source() shell.exec() Duncan Murdoch > > If there were a GUI version of read.table then that would reasonbly > have file.choose as the default. > > On 1/29/06, Duncan Murdoch <[EMAIL PROTECTED]> wrote: >

Re: [Rd] [R] help with read.table() function

2006-01-29 Thread Duncan Murdoch
On 1/29/2006 5:20 PM, Gabor Grothendieck wrote: > On 1/29/06, Duncan Murdoch <[EMAIL PROTECTED]> wrote: >> On 1/29/2006 1:24 PM, Gabor Grothendieck wrote: >> > Normally one expects stdin to be the default on command line >> > programs and something like fil

Re: [Rd] [R] help with read.table() function

2006-01-30 Thread Duncan Murdoch
On 1/30/2006 4:16 AM, Martin Maechler wrote: >>>>>> "Duncan" == Duncan Murdoch <[EMAIL PROTECTED]> >>>>>> on Sun, 29 Jan 2006 16:35:50 -0500 writes: > > Duncan> On 1/29/2006 1:29 PM, Prof Brian Ripley wrote: > >>

Re: [Rd] [R] Integer bit size and the modulus operator (PR#8541)

2006-01-30 Thread Duncan Murdoch
n2) { > copyMostAttrib(s2, ans); > copyMostAttrib(s1, ans); > } > else > copyMostAttrib(s2, ans); > > Here ans is not PROTECTED. > > The second is in the warning, which causes allocation when ans is not > protected. > > Fixed in R

Re: [Rd] [R] Help! What does this R command mean?

2006-01-31 Thread Duncan Murdoch
On 1/31/2006 4:55 PM, Gabor Grothendieck wrote: > I think that a pointer to ?formula needs to be added to ?":" Good suggestion; I'll do it. Duncan Murdoch > > > On 1/31/06, Liaw, Andy <[EMAIL PROTECTED]> wrote: >> ":" in a formula is not the sa

Re: [Rd] Rprintf loop status does not print under windows

2006-02-04 Thread Duncan Murdoch
%i...", s); > status = 0; > } > status++; > > Under linux/unix this works fine, but under windows the status is not > printed. Am I missing something? Looks like you have buffering enabled (the default). In the Misc menu item, uncheck "buffered output" and

Re: [Rd] NAMESPACE Q: does import as exist?

2006-02-07 Thread Duncan Murdoch
On 2/7/2006 8:48 PM, Seth Falcon wrote: > Is there a way to rename a function when importing it? I want to say, > "import yourFunc from Foo as myFunc" in the NAMESPACE file. > > Does this exist and I've missed it? If it doesn't exist, would others > think it useful (and possible)? I don't kno

Re: [Rd] NAMESPACE Q: does import as exist?

2006-02-08 Thread Duncan Murdoch
On 2/7/2006 9:10 PM, Duncan Murdoch wrote: > On 2/7/2006 8:48 PM, Seth Falcon wrote: >> Is there a way to rename a function when importing it? I want to say, >> "import yourFunc from Foo as myFunc" in the NAMESPACE file. >> >> Does this exist and I'

Re: [Rd] NAMESPACE Q: does import as exist?

2006-02-08 Thread Duncan Murdoch
r') >> >> in a NAMESPACE file. Useful-- yes. Possible-- I don't know! > > Yes, this is along the lines of what I was thinking. > > An unpleasant work around would be to create a translation package > that does something along the lines of Duncan M.'s suggesti

Re: [Rd] NAMESPACE Q: does import as exist?

2006-02-08 Thread Duncan Murdoch
te a translation package >>> that does something along the lines of Duncan M.'s suggestion, >>> importing, renaming, exporting. >> >> Why do you call it unpleasant? > > Because other languages do this without defining an extra "package". > I don&

Re: [Rd] Rscript fails with some packages (for example, h5)

2017-12-27 Thread Duncan Murdoch
n't "depend" on methods, it "imports" methods. | Rscript is not consistent with R, that's my confusion. Indeed. And you are not the first person confused by it. And that's still true, and less irrelevant than my corrections. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Rscript fails with some packages (for example, h5)

2017-12-27 Thread Duncan Murdoch
e inconsistency between R and Rscript is undesirable, but neither of us is in a position to change it, or thinks it's worth the effort to argue for a change. Duncan Steve Dirk Eddelbuettel 于2017年12月27日 周三21:15写道: Duncan, Very nice tutorial. However it does NOT take away from

Re: [Rd] R CMD check warning about compiler warning flags

2018-01-03 Thread Duncan Murdoch
git supports bisection, but I don't see how switching to git would make anything easier for R Core. Perhaps Juan can tell us which R Core tasks would be easier in git. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/ma

Re: [Rd] R CMD build then check fails on R-devel due to serialization version

2018-01-10 Thread Duncan Murdoch
Presumably that particular file (build/vignette.rds) could be automatically built in the old format for now, but the new format needs testing, so it makes sense to me to leave it as a default, even if it makes it more complicated to submit a package to CRAN.

Re: [Rd] R-devel Digest, Vol 179, Issue 7

2018-01-11 Thread Duncan Murdoch
not asking for anything. I'm guessing at an explanation for what CRAN is asking. I'm not part of CRAN or R Core. But it seems like 2 versions should be sufficient: build on the institutional version, test on your personal machine (or on one of the test services like WinBuilder, R-forg

Re: [Rd] bug fix integer overflow in medpolish function

2018-01-19 Thread Duncan Murdoch
his line to: newsum <- sum(as.numeric(abs(z)), na.rm = na.rm) Alternatively, you could use medpolish(as.numeric(x)). Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Why R should never move to git

2018-01-24 Thread Duncan Murdoch
s is ridiculous! It is such an easy concept: I want to take the diff between my most recent commit and the one before, and send that diff to the owners of the master copy. This should be a trivial (and it is in svn). Git and Github allow the most baroque arrangements, but can&#x

Re: [Rd] Why R should never move to git

2018-01-24 Thread Duncan Murdoch
If you or someone else tells me the magic commands I need to do what I want, I'll appreciate it. But the main point of my post is that this is something that should be easy. It shouldn't require expert help. The fact that it does is a flaw in the design of Git or Github or both. Dun

Re: [Rd] Why R should never move to git

2018-01-24 Thread Duncan Murdoch
, the equivalent steps in svn would be svn diff -r PREV:HEAD --internal-diff > patchfile and then the patchfile could be sent to the maintainer. Duncan Murdoch G. On Wed, Jan 24, 2018 at 11:56 PM, Duncan Murdoch wrote: On 24/01/2018 6:35 PM, Gábor Csárdi wrote: When you create a branch for

Re: [Rd] Why R should never move to git

2018-01-24 Thread Duncan Murdoch
On 24/01/2018 7:29 PM, Gábor Csárdi wrote: On Thu, Jan 25, 2018 at 12:24 AM, Duncan Murdoch wrote: [...] Thanks, those instructions appear to have worked. For comparison purposes, the equivalent steps in svn would be svn diff -r PREV:HEAD --internal-diff > patchfile and then the patchf

Re: [Rd] Why R should never move to git

2018-01-25 Thread Duncan Murdoch
s it would take? Remember, there's already a PR from the master branch on my fork. (This is for future reference; I already followed Gabor's more complicated instructions and have solved the immediate problem.) Duncan Murdoch Iñaki 2018-01-25 0:17 GMT+01:00 Duncan Murdoch : La

Re: [Rd] Why R should never move to git

2018-01-25 Thread Duncan Murdoch
On 25/01/2018 6:49 AM, Dirk Eddelbuettel wrote: On 25 January 2018 at 06:20, Duncan Murdoch wrote: | On 25/01/2018 2:57 AM, Iñaki Úcar wrote: | > For what it's worth, this is my workflow: | > | > 1. Get a fork. | > 2. From the master branch, create a new branch called fix-[

Re: [Rd] Why R should never move to git

2018-01-25 Thread Duncan Murdoch
On 25/01/2018 7:03 AM, Iñaki Úcar wrote: 2018-01-25 12:20 GMT+01:00 Duncan Murdoch : On 25/01/2018 2:57 AM, Iñaki Úcar wrote: For what it's worth, this is my workflow: 1. Get a fork. 2. From the master branch, create a new branch called fix-[something]. 3. Put together the stuff

Re: [Rd] Why R should never move to git

2018-01-25 Thread Duncan Murdoch
On 25/01/2018 7:44 AM, Joris Meys wrote: Hi Duncan, I can see that branch on your github. Remember that you have to reload the github page to see the latest additions to your repo. It doesn't do that automatically. Thanks, that was the issue. Duncan Mu

Re: [Rd] Why R should never move to git

2018-01-25 Thread Duncan Murdoch
On 25/01/2018 7:44 AM, Gábor Csárdi wrote: On Thu, Jan 25, 2018 at 12:34 PM, Duncan Murdoch wrote: [...] but that branch doesn't show up in the Github web site. It is right there: https://github.com/dmurdoch/manipulateWidget/branches Any suggestions? Personally I would suggest to ca

Re: [Rd] Best practices in developing package: From a single file

2018-01-30 Thread Duncan Murdoch
Back to Mehmet's question: I think Hadley's book is pretty good, and I'd recommend most of it, just not the Roxygen part. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Best practices in developing package: From a single file

2018-01-30 Thread Duncan Murdoch
On 30/01/2018 4:30 PM, Kenny Bell wrote: In response to Duncan regarding the use of roxygen2 from the point of view of a current user, I believe the issue he brings up is one of correlation rather than causation. Could be. However, I think editing comments in a .R file is a bit harder than

Re: [Rd] Best practices in developing package: From a single file

2018-01-30 Thread Duncan Murdoch
rather than calling package.skeleton myself. Duncan Murdoch These days pkgKitten defaults to creating per-package top-level help page that just references content from DESCRIPTION via a set of newer Rd macros as I find that helps keeping them aligned. The most recent example of mine is

Re: [Rd] Best practices in developing package: From a single file

2018-01-31 Thread Duncan Murdoch
On 30/01/2018 11:39 PM, Hadley Wickham wrote: On Tue, Jan 30, 2018 at 4:55 PM, Duncan Murdoch wrote: On 30/01/2018 4:30 PM, Kenny Bell wrote: In response to Duncan regarding the use of roxygen2 from the point of view of a current user, I believe the issue he brings up is one of correlation

Re: [Rd] Best practices in developing package: From a single file

2018-01-31 Thread Duncan Murdoch
On 31/01/2018 6:33 AM, Joris Meys wrote: Dear Duncan, With all respect, but I strongly disagree on your stance regarding roxygen2 for multiple reasons: 1. It is in my humble opinion not correct to evaluate a tool based on the abuse of some users. It's not because people write packages

Re: [Rd] Best practices in developing package: From a single file

2018-01-31 Thread Duncan Murdoch
good help pages. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Best practices in developing package: From a single file

2018-01-31 Thread Duncan Murdoch
isting code. This wasn't easy because the format had grown into something fairly awful, but I wouldn't call it primitive. At the time I was really hoping someone else would propose something better, but I don't think that ever happened. Duncan Murdoch On the other hand Roxygen2

Re: [Rd] Best practices in developing package: From a single file

2018-02-01 Thread Duncan Murdoch
On 31/01/2018 6:59 AM, Duncan Murdoch wrote: On 30/01/2018 11:39 PM, Hadley Wickham wrote: [ lots deleted ] Personally, I don't find writing in comments any harder than writing in .Rd files, especially now that you can write in markdown and have it automatically translated to Rd forma

Re: [Rd] Best practices in developing package: From a single file

2018-02-01 Thread Duncan Murdoch
provides stunning benefits. Updating "usage" statements in Rd files was mentioned several times. Rdpack::reprompt() does this and more for functions, methods and classes. Thanks for pointing that out (and for writing it)! I had forgotten about your package. Dunc

Re: [Rd] Best practices in developing package: From a single file

2018-02-01 Thread Duncan Murdoch
On 01/02/2018 7:44 AM, Joris Meys wrote: On Thu, Feb 1, 2018 at 1:29 PM, Duncan Murdoch <mailto:murdoch.dun...@gmail.com>> wrote: On 31/01/2018 6:59 AM, Duncan Murdoch wrote: On 30/01/2018 11:39 PM, Hadley Wickham wrote:  [ lots deleted ] Personally

Re: [Rd] Best practices in developing package: From a single file

2018-02-02 Thread Duncan Murdoch
help info coming from a separate file; other people apparently prefer to put it in the .R file. I think both methods should be supported. It makes sense to me to get both types of info from one place, but the author should be able to choose where that is. Duncan Murdoch P.S. I've be

Re: [Rd] Duplicate column names created by base::merge() when by.x has the same name as a column in y

2018-02-17 Thread Duncan Murdoch
f them are far too much trouble to change now that R is more than 20 years old. And in many cases it will turn out that the way R does it actually does make more sense than the way I would have done it. Duncan Murdoch Cheers, Frederick On Sat, Feb 17, 2018 at 04:42:21PM +1100, Scott Ritchi

Re: [Rd] install.packages doesn't produce warnings unless qualified with utils::

2018-03-03 Thread Duncan Murdoch
= "bullshit"), warning = function (w) cat("got a warning")) got a warning My guess is that something (a package, console, etc) is masking utils::install.packages(). RStudio does that. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Unclosed parenthesis in grep.Rd

2018-03-05 Thread Duncan Murdoch
e, line[where], column[where]) } if (any(sum < 0)) { report("Extra close paren: ", match(TRUE, sum < 0)) result <- TRUE } if (sum[length(sum)] > 0) { report("Extra open paren: ", length(sum) - match(TRUE, rev(sum == 0)) + 2) result <

Re: [Rd] Possible bug: file.exists() always returns TRUE for prn.us.txt

2018-03-24 Thread Duncan Murdoch
and ‘lpt1’ to ‘lpt9' (possibly followed by extensions) are also bad. You can Google "PRN filename in Windows" to find lots of people confused by this. One page I get is https://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx but there's no guarantee that will work fi

Re: [Rd] Base R examples that write to current working directory

2018-03-29 Thread Duncan Murdoch
cient because if those files existed before the examples were run, the examples will destroy them. Why not put together a patch that fixes these? This doesn't seem to be something that needs discussion, fixing the bad examples would be a good idea

<    1   2   3   4   5   6   7   8   9   10   >