Re: [Rd] New behavior when running script in package directory?

2023-06-25 Thread Dominick Samperi
Another aspect of this cleverness is that starting a script in an arbitrary directory NOT inside a package results in the current directory set to the user's home directory, while starting the script using R does what you would expect: does not change the current working directory. On Thu, Jun

Re: [Rd] New behavior when running script in package directory?

2023-06-21 Thread Dominick Samperi
Thanks Ivan, looks like bug in ESS, but I only noticed this recently, so it may have been triggered by changes in recent R versions. On Wed, Jun 21, 2023 at 12:26 PM Ivan Krylov wrote: > On Wed, 21 Jun 2023 11:49:24 -0400 > Dominick Samperi wrote: > > > 1. Why does Emacs/ESS beh

Re: [Rd] New behavior when running script in package directory?

2023-06-21 Thread Dominick Samperi
> > -Bill > > On Wed, Jun 21, 2023 at 8:50 AM Dominick Samperi > wrote: > >> Thanks, I checked for .Rprofile and .RData files. They are not present. >> I also tried renaming my .emacs.d file in case the problem is due to >> my Emacs configuration, but this didn'

Re: [Rd] New behavior when running script in package directory?

2023-06-21 Thread Dominick Samperi
R when present (with the > default arguments when starting R). > > HTH, > Jan > > > > On 20-06-2023 23:38, Dominick Samperi wrote: > > When I run a script foo.R containing some trivial code in my home > > directory, via Emacs/ESS, everything works as expected: R &

[Rd] New behavior when running script in package directory?

2023-06-20 Thread Dominick Samperi
When I run a script foo.R containing some trivial code in my home directory, via Emacs/ESS, everything works as expected: R starts, and a setwd() command to set the working directory is run automatically before the code in the script is run. But if I copy foo.R to some package/R directory strange

Re: [Rd] Generalised piping into operators

2023-04-21 Thread Dominick Samperi
A few years ago there was a post by the author of pipeR suggesting improvements in efficiency and reliability. Is there collaboration between these various pipe projects? Sent from my iPhone > On Apr 21, 2023, at 1:01 PM, Duncan Murdoch wrote: > > On 21/04/2023 12:16 p.m., Michael Milton

[Rd] Archive policy and Rcpp?

2023-04-10 Thread Dominick Samperi
It appears that my archived packages Rcpp and RcppTemplate have been removed at CRAN, yet they appeared in the CRAN archives until recently. What is the CRAN policy on archives and removal? Thanks, Dominick [[alternative HTML version deleted]]

[Rd] setulb() from lbfgsb.c not exported

2023-04-01 Thread Dominick Samperi
Hello, It appears that the file ./appl/lbfgsb.c defines setulb() as a static function, and it is included in optim.c, so setulb() is not exported by the R library. I have some sofware that uses setulb() directly, and I would prefer to avoid having to recompile this sofware to export that

Re: [Rd] Problem installing gdb into Rtools42

2023-01-18 Thread Dominick Samperi
On second thought, there is a lot of metapramming code in Rcpp that runs before main, so I was wrong to say nothing can happen before main() is called. Strategically placed print statements may be the best strategy. On Wed, Jan 18, 2023 at 8:17 PM Dominick Samperi wrote: > Since these “st

Re: [Rd] Problem installing gdb into Rtools42

2023-01-18 Thread Dominick Samperi
, but this wouldn't result in the main program block being executed. Dominick On Wed, Jan 18, 2023 at 2:10 PM Tomas Kalibera wrote: > > On 1/18/23 19:41, Dominick Samperi wrote: > > Thanks for the detailed feedback Tomas, > > I ran the command 'pacman -Syuu' again, just to be sure, and t

Re: [Rd] Problem installing gdb into Rtools42

2023-01-18 Thread Dominick Samperi
, but this wouldn't result in the main program block being executed. Dominick On Wed, Jan 18, 2023 at 2:10 PM Tomas Kalibera wrote: > > On 1/18/23 19:41, Dominick Samperi wrote: > > Thanks for the detailed feedback Tomas, > > I ran the command 'pacman -Syuu' again, just to be sure, and t

Re: [Rd] Problem installing gdb into Rtools42

2023-01-18 Thread Dominick Samperi
sed by Ben Gamari here https://gitlab.haskell.org/ghc/ghc/-/issues/19945. Dominick On Wed, Jan 18, 2023 at 12:56 PM Tomas Kalibera wrote: > On 1/18/23 17:39, Dominick Samperi wrote: > > Thanks, > > But this didn't work. It installs msys2 along with lots of other stuff, > and g

Re: [Rd] Problem installing gdb into Rtools42

2023-01-18 Thread Dominick Samperi
mmunities negatively impacted by the fork to mingw-w64. This did not go smoothly. Perhaps it would be safer to simply provide a version of Rtools42 that comes with gdb and msys2? Dominick On Wed, Jan 18, 2023 at 2:40 AM Tomas Kalibera wrote: > > On 1/18/23 04:33, Dominick Samperi wrote:

[Rd] Problem installing gdb into Rtools42

2023-01-17 Thread Dominick Samperi
Hello, I tried installing gdb into Rtools42 following the instructions here https://cran.r-project.org/bin/windows/base/howto-R-4.2.html I ran 'pacman -Sy gdb', and the installation seemed to complete without problems. But gdb could not be started because incorrect DLL versions were installed,

Re: [Rd] rgl/webGL complains about Javascript, even in recent online docs?

2015-09-12 Thread Dominick Samperi
2 PM, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > On 12/09/2015 7:37 AM, Duncan Murdoch wrote: >> On 11/09/2015 10:14 PM, Dominick Samperi wrote: >>> Hello, >>> >>> The recently created online "rgl Overview" at >>> https://cran.r-project.o

Re: [Rd] rgl/webGL complains about Javascript, even in recent online docs?

2015-09-12 Thread Dominick Samperi
FYI, one platform where I have not been able to get interactive rgl working is iOS 8. iOS 8 is supposed to support WebGL, and Javascript is enabled. On Sat, Sep 12, 2015 at 4:33 PM, Dominick Samperi <djsamp...@gmail.com> wrote: > Thanks for the pointers and the quick fix. &g

[Rd] rgl/webGL complains about Javascript, even in recent online docs?

2015-09-11 Thread Dominick Samperi
Hello, The recently created online "rgl Overview" at https://cran.r-project.org/web/packages/rgl/vignettes/rgl.html illustrates a problem that I am trying to resolve. At the bottom of each image block on that page appears the advisory: You must enable Javascript to view this page properly. I am

[Rd] R-3.2.0 Fedora 21 heads up

2015-04-17 Thread Dominick Samperi
FYI, with R-3.2.0 the configure options --with-system-zib=yes --with-system-bzlib=yes --with-system-pcre=yes become the default (according to Peter Dalgaard), so the devel versions of these libraries must be installed under Fedora to prevent unresolved references.

Re: [Rd] Rtools install on new Windows 8.1 desktop stalls with Not responding

2015-01-05 Thread Dominick Samperi
Please ignore, this was an antivirus issue, sorry. On Tue, Jan 6, 2015 at 12:59 AM, Dominick Samperi djsamp...@gmail.com wrote: Hello, When I try to install Rtools in the usual way into C:\Rtools on a new Windows 8.1 desktop it stalls near the beginning of the Extracting files... step

[Rd] Rtools install on new Windows 8.1 desktop stalls with Not responding

2015-01-05 Thread Dominick Samperi
Hello, When I try to install Rtools in the usual way into C:\Rtools on a new Windows 8.1 desktop it stalls near the beginning of the Extracting files... step. The Task Manager Status for the Setup app shows Not responding and it takes a long time to complete the installation, in spite of the

[Rd] rgl pinch and zoom under Windows 8.1

2014-06-02 Thread Dominick Samperi
Under Windows 8.1 with a touch screen, the pinch gesture causes an rgl plot to expand (zoom in) instead of contract, the opposite of what I would expect. When using a map app, for example, the pinch gesture causes the map to contract (zoom out). __

[Rd] rgl rotations

2014-04-17 Thread Dominick Samperi
Is there a way to change the viewpoint using view3d (or rgl.viewpoint) with respect to the image that currently appears rather than the perspective that rgl thinks is the default? For example, if I create an image and then perform what should be a no-op:

[Rd] vapply confusion

2014-04-11 Thread Dominick Samperi
The following code seems to contain an inconsistency in the behavior of vapply(). Am I missing something here? ## This function assumes v is a 3d vector, beta a scalar. f3d - function(v,beta) { v+beta } ## This expression applies f3d to a vector of scalars, and ## specifies the template

Re: [Rd] Timezone warnings on package install in R-alpha

2014-04-05 Thread Dominick Samperi
Hi, I just discovered a small issue that fits into this thread. Consider: z - as.POSIXlt(Sys.time()) z$gmtoff Under both Fedora and Windows (using R 3.1.0) I get the value -14400, which is the number of SECONDS offset from GMT (for New York), not the number of minutes offset as specified in the

Re: [Rd] rgl question

2014-03-31 Thread Dominick Samperi
On Mon, Mar 31, 2014 at 5:44 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 30/03/2014, 9:20 PM, Dominick Samperi wrote: Hello, If I call lines3d(x,y,z) I get lines connecting each point, but when I call rgl.lines(x,y,z) I get dashed lines, and adding something like type='l' leads

[Rd] rgl question

2014-03-30 Thread Dominick Samperi
Hello, If I call lines3d(x,y,z) I get lines connecting each point, but when I call rgl.lines(x,y,z) I get dashed lines, and adding something like type='l' leads to an error message. The docs seem to suggest that rgl.lines() calls lines3d(), so I would expect the result to be the same. Any tips

[Rd] R CMD INSTALL may create invalid DLL under Windows

2013-12-11 Thread Dominick Samperi
Under Windows the make include share/make/winshlib.mk uses nm to grab symbols from object files to insert into a module definition file tmp.def that is used to create a package DLL. This works fine provided the DLL is only used via exported function entry points, which is the case currently, I

Re: [Rd] C++ debugging help needed

2013-10-11 Thread Dominick Samperi
I'm not sure if this is related, but there is one issue that needs to be addressed a link time for object files that are generated from C++ code. In C++ it is permissible to include definitions (not just declarations) in header files. This means more that one object file may contain a definition

[Rd] Building R from source under Mac OS X 10.8.2?

2013-02-15 Thread Dominick Samperi
Hello, I'm trying to build R from source under Mac OS X 10.8.2 (Mountain Lion) by following the FAQ and I run into a problem with the Fortran compiler (downloaded from http://cran.r-project.org/bin/macosx/tools/), specifically, gfortran-4.2.3. I have Xcode 4.6 installed along with the latest

Re: [Rd] Building R from source under Mac OS X 10.8.2?

2013-02-15 Thread Dominick Samperi
simon.urba...@r-project.org wrote: Dominick, On Feb 15, 2013, at 3:13 AM, Dominick Samperi wrote: Hello, I'm trying to build R from source under Mac OS X 10.8.2 (Mountain Lion) by following the FAQ and I run into a problem with the Fortran compiler (downloaded from http://cran.r-project.org

Re: [Rd] On R performance

2012-03-09 Thread Dominick Samperi
On Thu, Mar 8, 2012 at 2:06 PM, Justin Talbot jtal...@cs.stanford.edu wrote: I've been working on an R performance academic project for the last couple years which has involved writing an interpreter for R from scratch and a JIT for R vector operations. With the recent comments on Julia, I

Re: [Rd] Julia

2012-03-07 Thread Dominick Samperi
On Tue, Mar 6, 2012 at 3:56 AM, oliver oli...@first.in-berlin.de wrote: On Mon, Mar 05, 2012 at 04:54:05PM -0800, Nicholas Crookston wrote: There are many experts on this topic.  I'll keep this short. Newer Fortran Languages allow for call by value, but call by reference is the typical and

Re: [Rd] Julia

2012-03-06 Thread Dominick Samperi
On Tue, Mar 6, 2012 at 11:44 AM, William Dunlap wdun...@tibco.com wrote: S (and its derivatives and successors) promises that functions will not change their arguments, so in an expression like   val - func(arg) you know that arg will not be changed.  You can do that by having func copy arg

Re: [Rd] Holding back on source code

2011-11-28 Thread Dominick Samperi
On Mon, Nov 28, 2011 at 2:17 AM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On 27/11/2011 23:07, Sachinthaka Abeywardana wrote: Hi All, A few years back when I was a CSIRO (an Australian research centre) intern I developed a BLAS package for R that uses the GPU. I believe that there is

Re: [Rd] Non-free packages in R-Forge

2011-11-23 Thread Dominick Samperi
2011/11/18 Spencer Graves spencer.gra...@prodsyse.com: Jordi:      Why do you want to reduce demand for Octave by forcing people who want to link to a commercial product to abandon Octave?      Are you familiar with Shapiro and Varian (1998) Information Rules:  A Strategic Guide to the

Re: [Rd] Increase transparency: suggestion on how to avoid namespaces and/or unnecessary overwrites of existing functions

2011-10-01 Thread Dominick Samperi
On Tue, Aug 23, 2011 at 2:23 PM, Janko Thyson janko.thyson.rst...@googlemail.com wrote: aDear list, I'm aware of the fact that I posted on something related a while ago, but I just can't sweat this off and would like to ask your for an opinion: The problem: Namespaces are great, but they

Re: [Rd] Increase transparency: suggestion on how to avoid namespaces and/or unnecessary overwrites of existing functions

2011-10-01 Thread Dominick Samperi
On Sat, Oct 1, 2011 at 1:08 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 11-08-23 2:23 PM, Janko Thyson wrote: aDear list, I'm aware of the fact that I posted on something related a while ago, but I just can't sweat this off and would like to ask your for an opinion: The problem:

Re: [Rd] Sweave support added to rgl package

2011-04-20 Thread Dominick Samperi
On Tue, Apr 19, 2011 at 2:18 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: I have just committed some code to the rgl package on https://r-forge.r-project.org/projects/rgl/ to allow rgl images to be inserted into Sweave documents.  (This is not in the CRAN version yet.)  It makes use of

Re: [Rd] Sweave support added to rgl package

2011-04-20 Thread Dominick Samperi
On Wed, Apr 20, 2011 at 2:29 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 20/04/2011 1:52 PM, Dominick Samperi wrote: On Tue, Apr 19, 2011 at 2:18 PM, Duncan Murdoch murdoch.dun...@gmail.com  wrote:  I have just committed some code to the rgl package on  https://r-forge.r

Re: [Rd] Tail Call Elimination?

2011-04-17 Thread Dominick Samperi
The Scheme-inspired function callCC may support this to some extent, but the R man page on this function is very sketchy. Examples have been posted by the author of callCC, so you might want to search the archives. Dominick On Sun, Apr 17, 2011 at 1:34 AM, Mohit Dayal ken.sen...@gmail.com wrote:

[Rd] Orthogonal polynomial ANOVA or polynomial regression?

2011-03-24 Thread Dominick Samperi
Hi, I have not been able to find R tools that permit an orthogonal polynomial ANOVA analysis: single degree of freedom F-test comparisons including L, Q, C, etc. terms. Do such tools exist? I guess you can accomplish something similar by doing straightforward polynomial regression and removing

Re: [Rd] function call overhead

2011-02-28 Thread Dominick Samperi
On Mon, Feb 28, 2011 at 6:37 PM, Paul Johnson pauljoh...@gmail.com wrote: Snipping down to bare minimum history before comment: On Wed, Feb 16, 2011 at 4:28 PM, Olaf Mersmann ol...@statistik.tu-dortmund.de wrote: Dear Hadly, dear list, On Wed, Feb 16, 2011 at 9:53 PM, Hadley Wickham

Re: [Rd] Avoiding name clashes: opinion on best practice naming conventions

2011-02-16 Thread Dominick Samperi
On Wed, Feb 16, 2011 at 4:29 AM, Janko Thyson janko.thyson.rst...@googlemail.com wrote: Dear List, I'm trying to figure out some best practice way with respect to the naming conventions when building own packages. I'd like to minimize the risk of choosing function names that might interfere

Re: [Rd] function call overhead

2011-02-16 Thread Dominick Samperi
the problem of explicitly specifying what version of foo() you really mean to use. Dominick -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-bounces@r- project.org] On Behalf Of Dominick Samperi Sent: February 16, 2011 12:44 PM ... Since the resolution of myPkg

[Rd] R limits documented?

2011-02-11 Thread Dominick Samperi
Is there documentation on R limits? That is, max matrix size, etc.? Diagnostics when limits are exceeded are not always meaningful. For example: x - rep(0,5*5) Error in rep(0, 5 * 5) : invalid 'times' argument In addition: Warning message: In as.vector(data) : NAs introduced by

Re: [Rd] Warning: you may need to use R-patched with recent R distros

2011-02-02 Thread Dominick Samperi
(z3, 1/z0)) Error: all.equal(z2, z0) is not TRUE Simone On Wed, Feb 2, 2011 at 1:45 AM, Dominick Samperi djsamp...@gmail.com wrote:      On Mon, Jan 31, 2011 at 3:18 PM, Prof Brian Ripley      rip...@stats.ox.ac.uk wrote: On Mon, 31 Jan 2011, ken.willi...@thomsonreuters.com wrote

Re: [Rd] Warning: you may need to use R-patched with recent R distros

2011-02-01 Thread Dominick Samperi
On Mon, Jan 31, 2011 at 3:18 PM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On Mon, 31 Jan 2011, ken.willi...@thomsonreuters.com wrote: For the complex-numbers bug, do you know a reliable way (besides looking at version numbers) to determine whether the bug is present or absent in a given

Re: [Rd] R vs. C now rather: how to ease package checking

2011-01-18 Thread Dominick Samperi
On Tue, Jan 18, 2011 at 4:48 AM, Claudia Beleites cbelei...@units.itwrote: On 01/18/2011 01:13 AM, Dominick Samperi wrote: On Mon, Jan 17, 2011 at 7:00 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Hi, Dominick, et al.: Demanding complete unit test suites

Re: [Rd] R vs. C

2011-01-17 Thread Dominick Samperi
On Mon, Jan 17, 2011 at 2:08 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Another point I have not yet seen mentioned: If your code is painfully slow, that can often be fixed without leaving R by experimenting with different ways of doing the same thing -- often

Re: [Rd] R vs. C

2011-01-17 Thread Dominick Samperi
On 1/17/2011 11:38 AM, Dominick Samperi wrote: On Mon, Jan 17, 2011 at 2:08 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Another point I have not yet seen mentioned: If your code is painfully slow, that can often be fixed without leaving R by experimenting

Re: [Rd] R vs. C

2011-01-17 Thread Dominick Samperi
to include this kind of test in a small file in the tests/ directory? Paul -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Spencer Graves Sent: January 17, 2011 3:58 PM To: Dominick Samperi Cc: Patrick Leyshock; r-devel@r

Re: [Rd] R vs. C

2011-01-17 Thread Dominick Samperi
can build your own test suites -- maybe in packages you write yourself -- or pay someone else to develop test suites to your specifications. For example, Revolution Analytics offers Package validation, development and support. Spencer On 1/17/2011 3:27 PM, Dominick Samperi wrote

Re: [Rd] [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-11 Thread Dominick Samperi
On Tue, Jan 11, 2011 at 2:41 PM, Romain Francois rom...@r-enthusiasts.comwrote: Le 11/01/11 19:57, Romain Francois a écrit : Le 11/01/11 19:46, Douglas Bates a écrit : On Tue, Jan 11, 2011 at 12:27 PM, Dominick Samperidjsamp...@gmail.com wrote: On Tue, Jan 11, 2011 at 1:20 PM, Romain

[Rd] rJava question

2010-12-27 Thread Dominick Samperi
After some trial and error I figured out how to pass matrices from R to java and back using rJava, but this method is not documented and I wonder if there is a better way? Anyway, here is what I found works: (m = matrix(as.double(1:12),3,4)) [shows m as you would expect] jtest - .jnew(JTest) (v

Re: [Rd] embed Sweave driver in .Rnw file

2010-12-14 Thread Dominick Samperi
Another question about Sweave (actually it is more a question about TeX). Is there a reliable (system-independent) way to use Sweave.sty without having to place it in the current working directory? MiKTeX under Windows has dropped the use of TEXINPUTS, and this complicates the problem.

Re: [Rd] embed Sweave driver in .Rnw file

2010-12-14 Thread Dominick Samperi
. Is there a better way? Thanks, Dominick On Tue, Dec 14, 2010 at 10:26 AM, Duncan Murdoch murdoch.dun...@gmail.comwrote: On 14/12/2010 9:54 AM, Dominick Samperi wrote: Another question about Sweave (actually it is more a question about TeX). Is there a reliable (system-independent) way to use

Re: [Rd] embed Sweave driver in .Rnw file

2010-12-14 Thread Dominick Samperi
On Tue, Dec 14, 2010 at 11:13 AM, Duncan Murdoch murdoch.dun...@gmail.comwrote: On 14/12/2010 10:52 AM, Dominick Samperi wrote: Both of my questions were not clear, sorry. What I really want to do is have a customized version of Sweave.sty (Sweave++.sty) included automatically from some

Re: [Rd] Terminology clarification (Re: GPL and R Community Policies (Rcpp)

2010-12-04 Thread Dominick Samperi
(to the delight of many readers I am sure). Sorry for the inconvenience, Dominick On Sat, Dec 4, 2010 at 7:49 AM, Dominick Samperi djsamp...@gmail.com wrote: Dirk, Please let me know whether or not you will comply with my request to remove references to my name in Rcpp (except copyright notices

Re: [Rd] Enough (was: Terminology clarification (Re: GPL and R Community Policies (Rcpp))

2010-12-04 Thread Dominick Samperi
DESCRIPTION: 'classic Rcpp API' was written during 2005 and 2006 by Dominick Samperi. debian/copyright:R / C++ interface package. Rcpp was written by Dominick Samperi, debian/copyright: 2005 and 2006 by Dominick Samperi inst/announce/ANNOUNCE-0.6.0.txt:Rcpp was initially written by Dominick

Re: [Rd] Terminology clarification (Re: GPL and R Community Policies (Rcpp)

2010-12-03 Thread Dominick Samperi
Dirk, Please let me know whether or not you will comply with my request to remove references to my name in Rcpp (except copyright notices). Thanks, Dominick On Thu, Dec 2, 2010 at 6:28 PM, Dominick Samperi djsamp...@gmail.comwrote: On Thu, Dec 2, 2010 at 5:58 PM, Dirk Eddelbuettel e

Re: [Rd] GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
and 2006 by Dominick Samperi To: a small portion of the code is based on code written during 2005 and 2006 by Dominick Samperi As it is highly unusual (and largely impossible) to quantify the relative size of the the contribution made by each author of GPL'ed software, this has effectively

Re: [Rd] [Rcpp-devel] GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
On Thu, Dec 2, 2010 at 2:51 AM, Gavin Simpson gavin.simp...@ucl.ac.ukwrote: On Wed, 2010-12-01 at 20:24 -0500, Dominick Samperi wrote: snip / Just to be clear I have never used the package and am not truly commenting on this particular case but only the general ideas in this thread

Re: [Rd] GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
: based on code written during 2005 and 2006 by Dominick Samperi To: a small portion of the code is based on code written during 2005 and 2006 by Dominick Samperi As it is highly unusual (and largely impossible) to quantify the relative size of the the contribution made by each author

Re: [Rd] GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
work. Martyn On Wed, 2010-12-01 at 13:21 -0500, Dominick Samperi wrote: This post asks members of the R community, users and developers, to comment on issues related to the GNU Public License and R community policies more generally. The GPL says very little about protecting

Re: [Rd] GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
On Thu, Dec 2, 2010 at 10:47 AM, Joris Meys jorism...@gmail.com wrote: On Thu, Dec 2, 2010 at 4:31 PM, Dominick Samperi djsamp...@gmail.com wrote: Worst yet is having to compete with your own work. About which competition are we talking then? I'm sorry, but the vast majority

Re: [Rd] GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
wrote: The author line of the latest release of the R package Rcpp (0.8.9) was revised as follows: From: based on code written during 2005 and 2006 by Dominick Samperi To: a small portion of the code is based on code written during 2005 and 2006 by Dominick Samperi From

Re: [Rd] Terminology clarification (Re: GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
On Thu, Dec 2, 2010 at 4:35 PM, Dirk Eddelbuettel e...@debian.org wrote: There are repeated claims concerning a Rcpp fork. Let's address both terms in turn. i) Rcpp was used in November 2008 as the name for a re-launch of a package which had seen releases on CRAN in 2005/2006 during

Re: [Rd] Terminology clarification (Re: GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
On Thu, Dec 2, 2010 at 5:58 PM, Dirk Eddelbuettel e...@debian.org wrote: On 2 December 2010 at 17:23, Dominick Samperi wrote: | OK, since you are so accomodating, then please remove all reference to | my name from Rcpp as I do not want to be subject to arbitrary revisions of | my status. I

Re: [Rd] Terminology clarification (Re: GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
On Thu, Dec 2, 2010 at 5:58 PM, Dirk Eddelbuettel e...@debian.org wrote: On 2 December 2010 at 17:23, Dominick Samperi wrote: | OK, since you are so accomodating, then please remove all reference to | my name from Rcpp as I do not want to be subject to arbitrary revisions of | my status. I

Re: [Rd] Terminology clarification (Re: GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dominick Samperi
On Thu, Dec 2, 2010 at 6:43 PM, Joris Meys jorism...@gmail.com wrote: On Fri, Dec 3, 2010 at 12:38 AM, Dominick Samperi djsamp...@gmail.com wrote: We? Romain did not arrive on the scene until after November of 2009. To live outside the law you must be honest --- Bob Dylan

[Rd] GPL and R Community Policies (Rcpp)

2010-12-01 Thread Dominick Samperi
values and expectations. In this spirit I respectfully request that the R community consider the following. The author line of the latest release of the R package Rcpp (0.8.9) was revised as follows: From: based on code written during 2005 and 2006 by Dominick Samperi To: a small portion

Re: [Rd] [Rcpp-devel] GPL and R Community Policies (Rcpp)

2010-12-01 Thread Dominick Samperi
then the readers of this list are entitled to facts instead of speculation. On Wed, Dec 1, 2010 at 1:06 PM, Dominick Samperi djsamp...@gmail.com wrote: On Wed, Dec 1, 2010 at 1:46 PM, Gavin Simpson gavin.simp...@ucl.ac.uk wrote: On Wed, 2010-12-01 at 13:21 -0500, Dominick Samperi wrote

Re: [Rd] [Rcpp-devel] GPL and R Community Policies (Rcpp)

2010-12-01 Thread Dominick Samperi
On Wed, Dec 1, 2010 at 7:55 PM, Gabor Grothendieck ggrothendi...@gmail.comwrote: On Wed, Dec 1, 2010 at 7:20 PM, Dominick Samperi djsamp...@gmail.com wrote: On Wed, Dec 1, 2010 at 6:37 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:18 PM, Hadley Wickham

[Rd] CRAN package archives (tar.gz) now require --no-same-owner under Windows?

2010-11-29 Thread Dominick Samperi
Hello, I have observed with the latest version of Rtools and R 2.12.0 under Windows Vista or Windows 7 (64bit) that tar issues errors of the form cannot change ownership to uid 1001, gid 100: invalid argument when one uses: tar -xvzf pkg_version.tar.gz There is an easy work-around: tar

[Rd] GNU make heads-up

2010-11-16 Thread Dominick Samperi
As most GNU Makefiles (or Makevars) tend to use '=' insead of ':=', I thought it might be helpful to point out that there is an important difference in the meaning. When a variable is defined like this: PKG_CPPFLAGS=whatever the RHS (whatever) is evaluated every time PKG_CPPFLAGS is used, and

[Rd] TEXINPUTS and Sweave

2010-10-28 Thread Dominick Samperi
Is there a way to set TEXINPUTS for CRAN builds so that style files shipped with packages can be found if they are not in the working directory? Apparently there is an additional problem under Windows/MikTeX because recent versions of MikTeX ignore TEXINPUTS! Thanks, Dominick

Re: [Rd] must .Call C functions return SEXP?

2010-10-28 Thread Dominick Samperi
See comments on Rcpp below. On Thu, Oct 28, 2010 at 11:28 AM, William Dunlap wdun...@tibco.com wrote: -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Andrew Piskorski Sent: Thursday, October 28, 2010 6:48 AM To: Simon

Re: [Rd] [Rcpp-devel] must .Call C functions return SEXP?

2010-10-28 Thread Dominick Samperi
On Thu, Oct 28, 2010 at 6:04 PM, Douglas Bates ba...@stat.wisc.edu wrote: On Thu, Oct 28, 2010 at 1:44 PM, Dominick Samperi djsamp...@gmail.com wrote: See comments on Rcpp below. On Thu, Oct 28, 2010 at 11:28 AM, William Dunlap wdun...@tibco.com wrote: -Original Message

Re: [Rd] Sections 5.8.1 and 5.8.2 of Writing R Extensions (LinkingTo)

2010-10-27 Thread Dominick Samperi
On Wed, Oct 27, 2010 at 2:43 PM, Simon Urbanek simon.urba...@r-project.orgwrote: On Oct 27, 2010, at 1:22 PM, Dominick Samperi wrote: Hello, In Sections 5.8.1 and 5.8.2 of Writing R Extensions the following pattern is suggested for getting the path to a file in another package

[Rd] library verbose option doesn't stop Loading required package XYZ

2010-10-20 Thread Dominick Samperi
Hello, The library verbose option does not stop numerous messages of the form Loading required package: XYZ. This is inconvenient when a package is loaded repeatedly using Rscript. Is there a way to turn off the Loading required package messages? One possible work-around is to make packages

Re: [Rd] library verbose option doesn't stop Loading required package XYZ

2010-10-20 Thread Dominick Samperi
, 2010, at 6:49 PM, Dominick Samperi wrote: Hello, The library verbose option does not stop numerous messages of the form Loading required package: XYZ. This is inconvenient when a package is loaded repeatedly using Rscript. Is there a way to turn off the Loading required package messages

[Rd] Creating a Windows import lib from R.dll (x64)?

2010-10-18 Thread Dominick Samperi
Hello, The procedure for creating an import library (Rdll.lib) that is documented in gnuwin32/README.packages works fine using the i386 architecture, but it doesn't seem to work under x64. Specifically, the procedure is: pexports R.dll R.exp lib /def:R.exp /out:Rdll.lib /machine:X86 R.dll

Re: [Rd] Creating a Windows import lib from R.dll (x64)?

2010-10-18 Thread Dominick Samperi
Thanks Joe, obviously I made the error of including R.dll on the command line, sorry for the wasted bandwidth. On Tue, Oct 19, 2010 at 1:22 AM, Joe Conway m...@joeconway.com wrote: On 10/18/2010 10:00 PM, Dominick Samperi wrote: The procedure for creating an import library (Rdll.lib

Re: [Rd] R 2.12.0 doesn't install properly under Windows Vista

2010-10-17 Thread Dominick Samperi
The new version seems to work, thanks. On Sat, Oct 16, 2010 at 7:01 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote: On 16/10/2010 4:55 PM, Dominick Samperi wrote: After installing R 2.12.0 under windows Vista it does not start because it cannot find Rgui.exe. Indeed, the contents of R\R

[Rd] R 2.12.0 doesn't install properly under Windows Vista

2010-10-16 Thread Dominick Samperi
After installing R 2.12.0 under windows Vista it does not start because it cannot find Rgui.exe. Indeed, the contents of R\R-2.12.0\bin are: config.sh R.exe Rscript.exe Sd2Rd.pl It appears that a few things are missing... [[alternative HTML version deleted]]

Re: [Rd] LinkingTo and C++

2010-07-11 Thread Dominick Samperi
While linking to package shared libs is not possible in general, as Simon point out, it is possible under Windows, provided Windows knows how to find the library linked to at runtime (this requires a customized Makefile.win). One way this is done under Windows is simply to place the package/libs

[Rd] Telling Windows how to find DLL's from R?

2010-07-09 Thread Dominick Samperi
Is it possible to set Windows' search path from within R, or to tell Windows how to find a DLL in some other way from R? Specifically, if a package DLL depends on another DLL the normal requirement is that the second DLL be in the search path so Windows can find it (there are other tricks, but

Re: [Rd] Telling Windows how to find DLL's from R?

2010-07-09 Thread Dominick Samperi
On Fri, Jul 9, 2010 at 3:48 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote: On 09/07/2010 2:38 PM, Dominick Samperi wrote: Is it possible to set Windows' search path from within R, or to tell Windows how to find a DLL in some other way from R? Specifically, if a package DLL depends

Re: [Rd] Telling Windows how to find DLL's from R?

2010-07-09 Thread Dominick Samperi
Thanks Duncan, Martin: Please ignore my remarks about top-level Windows context. I made a mistake. After correcting my mistake Duncan's suggestion worked, and the solution is very similar to what the DLLpath argument of dyn.load() does: Sys.setenv() can be used to edit PATH so that Windows finds

Re: [Rd] constrained optimization

2010-07-07 Thread Dominick Samperi
On Wed, Jul 7, 2010 at 1:49 PM, Paul Bailey pdbai...@umd.edu wrote: Have you considered using the optim function with L-BFGS-B for bounded optimization. Obviously, you will have to do changes of variables so that everything is in terms of a rectangle (which is the type of bounding that it

[Rd] Windows 64bit package build requires underscore hack?

2010-07-05 Thread Dominick Samperi
Hello, After much tinkering I managed to build packages using the 64bit version of R with the help of hints from http://www.murdoch-sutherland.com/Rtools/ and http://www.stats.ox.ac.uk/~ripley/Win64/W64porting.html and R-admin Manual. But a hack was required, and this seems to be related to a

Re: [Rd] Windows 64bit package build requires underscore hack?

2010-07-05 Thread Dominick Samperi
Windows 7 (64bit), using the 64bit version of R. On Mon, Jul 5, 2010 at 7:53 PM, Dominick Samperi djsamp...@gmail.comwrote: Hello, After much tinkering I managed to build packages using the 64bit version of R with the help of hints from http://www.murdoch-sutherland.com/Rtools/ and http

[Rd] Problem with dyn.load() under Windows 64bit at CRAN

2010-06-30 Thread Dominick Samperi
The package cxxPack builds without problems at CRAN under all OS's except Windows 64bit, and in the case of Windows 64bit there is a problem in a call to dyn.load(). This call happens while processing the package vignette, and the odd thing about this is that there are several calls to dyn.load()

Re: [Rd] Package development process?

2010-06-17 Thread Dominick Samperi
On Thu, Jun 17, 2010 at 5:22 AM, Patrick Burns pbu...@pburns.seanet.comwrote: I agree with Hadley, and add that trying to have an example be both an example and a test may not be good for the example aspect either. Examples should make people who are ignorant of the function twig as to how

Re: [Rd] Package development process?

2010-06-17 Thread Dominick Samperi
On Thu, Jun 17, 2010 at 9:23 AM, Hadley Wickham had...@rice.edu wrote: The creation of a research compendium can be viewed as a form of unit testing, and the fact that R has powerful tools that support this process (Sweave) could be viewed as one of its outstanding features (relating

Re: [Rd] Package development process?

2010-06-17 Thread Dominick Samperi
On Thu, Jun 17, 2010 at 5:01 PM, Vincenzo Carey carey...@gmail.com wrote: Rare is vague. Almost every software package in the Bioconductor repository has a vignette; the informal advice to contributors is that the vignette should take the reader through all the steps of a substantively

[Rd] Solaris build problem

2010-06-14 Thread Dominick Samperi
Hello, I have package that builds fine under all OS's at CRAN except Solaris, and the Solaris problem occurs at vignette processing time: the library command fails. So, if a package Foo has a vignette is there a problem if an R code chunk runs library(Foo) from within a code chunk in the vignette

Re: [Rd] Solaris build problem

2010-06-14 Thread Dominick Samperi
? There a bug in GNU make causes one package to corrupt the environment of another. Thanks, Dominick On Mon, Jun 14, 2010 at 9:24 AM, Prof Brian Ripley rip...@stats.ox.ac.ukwrote: On Mon, 14 Jun 2010, Dominick Samperi wrote: Hello, I have package that builds fine under all OS's at CRAN except

Re: [Rd] Solaris build problem

2010-06-14 Thread Dominick Samperi
On Mon, Jun 14, 2010 at 11:23 AM, Prof Brian Ripley rip...@stats.ox.ac.ukwrote: On Mon, 14 Jun 2010, Prof Brian Ripley wrote: At one level the answer is easy: cxxPack was not installed at system level when that check was run, and I presume it was installed on the other build systems.

[Rd] Solaris / CC builds

2010-06-09 Thread Dominick Samperi
Hello, I'm trying to figure our why my package (cxxPack) fails to build under Solaris using CC on CRAN, and I wonder if somebody can comment? If I try to build R on a Solaris SPARC box that has CC the R configure script uses gcc/g++ instead of CC, yet CC seems to be used for the CRAN builds.

  1   2   >