Re: [Rd] R optim(method="L-BFGS-B"): unexpected behavior when working with parent environments

2019-05-06 Thread Thomas Petzoldt
It seems that it's an old bug that was found in some other packages, but at that time not optim: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15958 and that Duncan Murdoch posted a patch already last Friday :) Thomas Am 06.05.2019 um 16:40 schrieb Ben Bolker: That's consistent/not

Re: [Rd] CRAN packages maintained by you

2016-09-02 Thread Thomas Petzoldt
Am 02.09.2016 um 16:02 schrieb Dirk Eddelbuettel: On 2 September 2016 at 14:54, Thomas Petzoldt wrote: | Hi, | | I have the same problem and, at a first look, the issues reported by the | CRAN checks seemed easy to fix. However, after checking it again locally | and on http://win-builder.r

Re: [Rd] CRAN packages maintained by you

2016-09-02 Thread Thomas Petzoldt
_ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Dr. Thomas Petzoldt Technische Universitaet Dresden Faculty of Environmental Sciences Institute of Hydrobiology 01062 Dresden, Germany Tel.: +49 351 463 34954 Fax: +49 351 463 37108 E-Mail: tho

[Rd] unexpected behavior of <<- in nlm (lazy?)

2014-09-02 Thread Thomas Petzoldt
functions worked as expected. See example below. The symptom is that super assignments (<<-) of unmodified variables lead to "references" instead of copies. Thomas Petzoldt and Karline Soetaert ## -- ## Unexpected behavior: #

Re: [Rd] numerical issue in contour.default?

2013-09-13 Thread Thomas Petzoldt
On 13.09.2013 16:44, Prof Brian Ripley wrote: On 13/09/2013 15:14, Duncan Murdoch wrote: On 13/09/2013 10:01 AM, Thomas Petzoldt wrote: Dear R developers, I found a small issue while plotting contours of data containing both "usual" and "very small" numbers. It appeared w

[Rd] numerical issue in contour.default?

2013-09-13 Thread Thomas Petzoldt
YPE=German_Germany.1252 [3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C [5] LC_TIME=German_Germany.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base -- Dr. Thomas Petzoldt Technische Universitaet Dresden Faculty of Environmental Sciences Institute of

Re: [Rd] Linux distribution with gcc 4.8 and AddressSanitizer -- solved

2013-04-20 Thread Thomas Petzoldt
our help and the great R system! Thomas P. -- Thomas Petzoldt Technische Universitaet Dresden Faculty of Environmental Sciences Institute of Hydrobiology 01062 Dresden, Germany E-Mail: thomas.petzo...@tu-dresden.de http://tu-dresden.de/Members/thomas.petzo

Re: [Rd] Linux distribution with gcc 4.8 and AddressSanitizer ?

2013-04-19 Thread Thomas Petzoldt
On 18.04.2013 18:05, José Matos wrote: On Thursday 18 April 2013 17:38:06 Thomas Petzoldt wrote: Dear R developers, I've got an information from Prof. Ripley regarding a bug found with AdressSanitizer in one of our packages. It is now fixed, thank you for this information. Now, I would

[Rd] Linux distribution with gcc 4.8 and AddressSanitizer ?

2013-04-18 Thread Thomas Petzoldt
ere a recommendation of a suitable Linux distribution with gcc 4.8, ideally an ISO image or (even better) a virtual appliance for VMware or VirtalBox? My Debian Wheezy machines have only 4.7.2. Thank you Thomas Petzoldt -- Dr. Thomas Petzoldt Technische Universitaet Dresden Faculty of Environm

[Rd] R 3.0 in newsticker of German computer magazine c't

2013-04-05 Thread Thomas Petzoldt
Thanks to you all for your great work! Thomas Petzoldt __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Matrix install fails because of defunct save in require

2010-09-17 Thread Thomas Petzoldt
On 17.09.2010 20:04, Prof Brian Ripley wrote: I'm not sure why end users would be using R-devel rather than R-alpha at this point, but I have already changed R-devel to allow Matrix to get updated before it fails. Yes I realized the update and successfully recompiled it. Many thanks. "End user

Re: [Rd] Matrix install fails because of defunct save in require

2010-09-17 Thread Thomas Petzoldt
On 17.09.2010 19:22, Uwe Ligges wrote: On 17.09.2010 16:04, Thomas Petzoldt wrote: Dear R-Devel, I've just tried to compile the fresh R-devel and found that the install of package Matrix failed: - ** help *** installing help indices ** bui

[Rd] Matrix install fails because of defunct save in require

2010-09-17 Thread Thomas Petzoldt
(save = FALSE) ERROR: installing package indices failed - possible reason: Matrix/data/*.R News.Rd says: The \code{save} argument of \code{require()} is defunct. Thomas Petzoldt __ R-devel@r-project.org ma

Re: [Rd] Summary: package test failed on Solaris x86 ...

2010-09-17 Thread Thomas Petzoldt
Bill Dunlap, Matthew Doyle and you (Martyn Plummer). I've also setup a new Linux test system, so that next time valgrind checks can be performed before package upload. Thank you! Thomas Petzoldt __ R-devel@r-project.org mailing list

Re: [Rd] package test failed on Solaris x86 -- help needed for debugging

2010-09-16 Thread Thomas Petzoldt
On 16.09.2010 17:05, Martyn Plummer wrote: Dear Thomas, Is this the deSolve package? http://www.r-project.org/nosvn/R.check/r-patched-solaris-x86/deSolve-00check.html I can help you with that. It does pass R CMD check on my OpenSolaris installation, but I am getting some compiler warnings. I w

[Rd] package test failed on Solaris x86 -- help needed for debugging

2010-09-16 Thread Thomas Petzoldt
to ask about a possibility to run a few tests on such a system: r-patched-solaris-x86 An even more recent version of R on the same OS (Solaris 10) and with the same compiler (Sun Studio 12u1) would help also. Any assistance is appreciated Thomas Petzoldt -- Thomas Petzoldt Technische Unive

Re: [Rd] proto and baseenv()

2010-02-25 Thread Thomas Petzoldt
Am 25.02.2010 06:33, wrote Ben: Wow, thanks for the heads-up. That is horrible behavior. But using baseenv() doesn't seem like the solution either. I'm new to proto, but it seems like this is also a big drawback: z<- 1 proto(baseenv(), expr={a=z})$a Error in eval(expr, envir, enclos) : obje

[Rd] Sort order of vignettes in help index and CRAN

2010-02-01 Thread Thomas Petzoldt
if CRAN would use the \VignetteIndexEntry , but file name ordering (without the extension) is also ok. Thomas Petzoldt -- Thomas Petzoldt Technische Universitaet Dresden Institut fuer Hydrobiologiethomas.petzo...@tu-dresden.de 01062 Dresden

Re: [Rd] linking to package directories is NOT broken in R >= 2.10 beta

2009-10-19 Thread Thomas Petzoldt
her special files like NEWS and LICENSE (as found in MASS) or THANKS (like in Hmisc)? Thanks for consideration. Thomas Petzoldt __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] linking to package directories broken in R >= 2.10 beta

2009-10-18 Thread Thomas Petzoldt
Duncan Murdoch wrote: [...] The doc directory is known to be visible. It might surprise someone if arbitrary directories were visible, and readable by any user. 2) The change will introduce additional work for package authors that used internal links within their packages. I can, of course,

Re: [Rd] linking to package directories broken in R >= 2.10 beta

2009-10-17 Thread Thomas Petzoldt
Duncan Murdoch wrote: Thomas Petzoldt wrote: [...] This is fine, but in contrast to older versions (<= 2.9.2) no automatic index is created for the linked directory, so we now get: "URL /library/foo/examples/ was not found" but linking to *individual files* (e.g. examp

[Rd] linking to package directories broken in R >= 2.10 beta

2009-10-17 Thread Thomas Petzoldt
would much prefer if a default index would be created for the directory if no index.html is found. I very much enjoy the new help system and would be even more happy if that issue could be fixed. Thomas Petzoldt PS: A minimal reproducible example (foo_1.0.tar.gz) can be provided by mai

[Rd] speedup approxfun (code suggestion)

2009-09-24 Thread Thomas Petzoldt
package. The code suggestion was tested with R-devel rev. 49803 and several contributed packages and we found no negative side effects. Please find the suggested patch below and please excuse if we overlooked something. Thanks for your consideration Best wishes, Karline Soet

[Rd] OOP performance, was: V2.9.0 changes

2009-07-02 Thread Thomas Petzoldt
ers use Fortran). This can be done in a mixed style and even a full C to C communication is possible (see the deSolve documentation how to do this with differential equation models). Thomas P. -- Thomas Petzoldt Technische Universitaet Dresden Institut fuer Hydrobiologiethomas.petzo..

[Rd] vignette index not linked into HTML help system for package

2009-03-16 Thread Thomas Petzoldt
"At install time an HTML index for all vignettes is automatically created from the \VignetteIndexEntry statements unless a file index.html exists in directory inst/doc. This index is linked into the HTML help system for each package." Have I missed something? Thanks a lot Th

Re: [Rd] question

2009-03-07 Thread Thomas Petzoldt
est to use accessor functions preferably written as generics working on returned S3 or S4 objects. I'm strongly against going back to the past S behaviour and I wonder a little bit about this discussion. I like it to have a clean workspace with only a few o

[Rd] CRAN package check on MacOS: sh: line 1: gs: command not found

2009-03-04 Thread Thomas Petzoldt
-release-macosx-ix86/simecol-00check.html or http://www.r-project.org/nosvn/R.check/r-release-macosx-ix86/fxregime-00check.html Does anybody know what's wrong here? Thanks a lot Thomas Petzoldt -- Thomas Petzoldt Technische Universitaet Dresden Institut fuer Hydrobiologiethomas.petzo.

Re: [Rd] R-devel/Linux x64/Sun Studio 12: Problem with Matrix

2009-02-22 Thread Thomas Petzoldt
Just for the record: Thomas Petzoldt wrote: Prof Brian Ripley wrote: This seems to be a problem with your OS installation. I have I tested compilation on another Fedora 10 installation: 1) fresh installation from the installation DVD (Fedora-10-x86_64-DVD.iso instead of the harddisk

Re: [Rd] R-devel/Linux x64/Sun Studio 12: Problem with Matrix

2009-02-21 Thread Thomas Petzoldt
t its not an obvious error in config.site. Maybe it's because I started from a rather minimal Fedora version, so I'll try to fix my installation. Thank you Thomas P. -- Thomas Petzoldt Technische Universitaet Dresden Institut fuer Hydrobiologiethomas.petzo...@tu-dresden.d

[Rd] R-devel/Linux x64/Sun Studio 12: Problem with Matrix

2009-02-20 Thread Thomas Petzoldt
: *** [Matrix.so] Error 1 ERROR: compilation failed for package ‘Matrix’ * Removing ‘/home/user/R/R-devel/library/Matrix’ Can someone help me or give me a pointer what I'm making wrong? How can I get/include the missing shared library? Many thanks in advance Thomas Petzoldt #file: config.site

Re: [Rd] New package test results available

2009-02-10 Thread Thomas Petzoldt
Thomas Petzoldt wrote: Prof Brian Ripley schrieb: We've added a column at http://cran.r-project.org/web/checks/check_summary.html of test results using the Sun Studio compiler: it is intended that these will be updated weekly. The Sun Studio compiler is that used on Solaris: these

Re: [Rd] New package test results available

2009-02-07 Thread Thomas Petzoldt
this means that including is wrong in C++? I read "Writing R extensions" several times, but was not aware that this was a mistake. If I replace by then it works on my systems, but I want to be certain that there are no other side effects. Thanks in advance for clarificati

Re: [Rd] nlminb: names of parameter vector not passed to objective function (fixed)

2008-12-07 Thread Thomas Petzoldt
NEWS, rev. 47094 now says: o nlminb() copies names from 'start' to the parameter vector used (for consistency with optim()). Dear Prof. Ripley, thank you very much for doing this. Thomas Petzoldt __ R-devel@r-project.o

Re: [Rd] nlminb: names of parameter vector not passed to objective function

2008-12-03 Thread Thomas Petzoldt
Dear Prof. Ripley, thank you very much for the fast response. I am very grateful for all the work that the R Core does and so I try to contribute my humble part as a tester. Prof Brian Ripley wrote: On Wed, 3 Dec 2008, Thomas Petzoldt wrote: Dear R developers, I tried to use nlminb

[Rd] nlminb: names of parameter vector not passed to objective function

2008-12-03 Thread Thomas Petzoldt
ask whether it would be possible to change this idiosyncratic behavior? Tested with: R version 2.8.0 Patched (2008-11-04 r46830) i386-pc-mingw32 and also R version 2.9.0 Under development (unstable) (2008-12-03 r47039) i386-pc-mingw32 Thanks a lot Thomas Petzoldt set.seed(3577) # ma

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-09 Thread Thomas Petzoldt
have explicit objectives on performance or validity have to be avoided. Thomas Petzoldt Summary and Wish-list 1 A recommendation to provide a file "foo-package.Rd" and an \alias{foo} was already given in "Writi

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-06 Thread Thomas Petzoldt
hadley wickham wrote: It may not be much work for you, but I find any additional requirements to the package format to be a real pain. I have ~10 packages on CRAN and having to go through and add this extra information all at once is a big hassle. R releases tend to happen in the middle of the

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-06 Thread Thomas Petzoldt
Dear Hadley, thank you very much for your comments. hadley wickham wrote: - there are lots of packages without one, so this would create a lot of work for people to add them. No, I don't think that this is too much work. Positively speaking, it's one small contribution to bring more light into

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-06 Thread Thomas Petzoldt
Duncan Murdoch wrote: On 06/10/2008 8:06 AM, Thomas Petzoldt wrote: Duncan Murdoch wrote: Thomas Petzoldt wrote: Dear R developers, if one uses package.skeleton() to create a new package, then a file anRpackage.Rd with the following entries is prepared: \name{anRpackage-package} \alias

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-06 Thread Thomas Petzoldt
Duncan Murdoch wrote: Thomas Petzoldt wrote: Dear R developers, if one uses package.skeleton() to create a new package, then a file anRpackage.Rd with the following entries is prepared: \name{anRpackage-package} \alias{anRpackage-package} \alias{anRpackage} \docType{package} Packages

[Rd] why is \alias{anRpackage} not mandatory?

2008-10-06 Thread Thomas Petzoldt
additional \alias." My question: what speaks against making this sentence more pronounced and why not NOTE-ing a missing package alias in the package check? Thomas Petzoldt -- Thomas Petzoldt Technische Universitaet Dresden Institut fuer Hydrobiologie 01062 Dresden GERMANY

Re: [Rd] odesolve dynload example

2008-09-16 Thread Thomas Petzoldt
ckage vignette about writing models in compiled code. Thomas Petzoldt Redding, Matthew wrote: Hello R Developers, This is my first foray into using c-code with R, so please forgive my foolishness. I had a look at the archives and did not find anything on this, so hopefully I am not doubling u

Re: [Rd] Fortran underscore problem persists on Linux x86/64 (PR#11206)

2008-04-20 Thread Thomas Petzoldt
about that. Is it still necessary to provide detailed information about all involved compilers and symbol tables? Thomas Petzoldt -- Thomas Petzoldt Technische Universitaet Dresden Institut fuer Hydrobiologie[EMAIL PROTECTED] 01062 Dresden http://tu-dresden.de/hyd

[Rd] Fortran underscore problem persists on Linux x86/64 (PR#11206)

2008-04-19 Thread thomas . petzoldt
Full_Name: Thomas Petzoldt Version: R 2.8.0 devel, svn version 45389 OS: Linux x86/64 Ubuntu 7.1 Submission from: (NULL) (217.235.62.12) In contrast to all other tested operating systems a call of Fortran functions on Linux x86/64 requires an appended underscore. The problem occured with

Re: [Rd] getNativeSymbolInfo fails with Fortran symbol.

2008-04-16 Thread Thomas Petzoldt
MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C >> >> Search Path: >> .GlobalEnv, package:deSolve, package:stats, package:graphics, >> package:grDevices, package:utils, package:datasets, packag

Re: [Rd] optim: why is REPORT not used in SANN?

2008-04-07 Thread Thomas Petzoldt
Thomas Petzoldt schrieb: Martin Maechler wrote: "TP" == Thomas Petzoldt <[EMAIL PROTECTED]> on Sun, 16 Mar 2008 13:50:55 +0100 writes: TP> Hello, I wonder why the control parameter REPORT is not TP> supported by method SANN. Looking into optim.c I found TP

Re: [Rd] optim: why is REPORT not used in SANN?

2008-04-06 Thread Thomas Petzoldt
Martin Maechler wrote: >>>>>> "TP" == Thomas Petzoldt <[EMAIL PROTECTED]> >>>>>> on Sun, 16 Mar 2008 13:50:55 +0100 writes: > > TP> Hello, I wonder why the control parameter REPORT is not > TP> supported by metho

Re: [Rd] suggested minor patch for optim.R

2008-04-05 Thread Thomas Petzoldt
Ben Bolker wrote: > optim ignores misspelled control parameters, so that trying > to set (e.g.) "maxint=1000" in the control argument silently > does nothing. The patch below (watch out for line breaks! also > posted at http://www.zoo.ufl.edu/bolker/optim_patch.R , and > http://www.zoo.ufl.ed

[Rd] optim: why is REPORT not used in SANN?

2008-03-16 Thread Thomas Petzoldt
nREPORT to samin and setting something like: STEPS = nREPORT / tmax Thomas P. -- Thomas Petzoldt Technische Universitaet Dresden Institut fuer Hydrobiologie[EMAIL PROTECTED] 01062 Dresden http://tu-dresden.de/hydrobiologie/ GERMANY

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
Hi Gabor, nice to see you on this thread. As you see, I'm back with my old problem. Gabor Grothendieck wrote: > If the intention is to place fList's contents in the global > environment > then you need to specify that in addtoenv or else it assumes > the parent environment. No, it was the in

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
Duncan Murdoch wrote: > On 1/21/2008 9:58 AM, Thomas Petzoldt wrote: >> Hello Duncan, >> >> thank you very much for your prompt reply. When I interpret your answer >> correctly there seems to be no alternative than either: >> >> A) using lots of (possibly pri

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
it requires lots of "obsolete code". I already had this idea but found it awkward because it would look more like Pascal where one has separate interface and implementation. Duncan Murdoch wrote: > On 1/21/2008 8:30 AM, Thomas Petzoldt wrote: >> Hello, >> >> firs

[Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
blem, trivial m2() # Error in bar() : could not find function "foo" m3() # works, but even in that case we get problems # if we do this in a package: # * checking R code for possible problems ... NOTE # bar: no visible global function definition for 'foo' ## tested with R versio

Re: [Rd] R-2.6.0 package check problems

2007-10-05 Thread Thomas Petzoldt
untb_1.3-2.tar.gz passed the check just now on my system: R 2.7.0 Under development (unstable), svn rev 43092 (5. Oct), i386-pc-mingw32 Thomas P. -- Thomas Petzoldt Technische Universitaet Dresden Institut fuer Hydrobiologie[EMAIL PROTECTED] 01062 Dresden

Re: [Rd] silent option in nested calls to try()

2007-08-27 Thread Thomas Petzoldt
use tryCatch. > > Best, > > luke > > On Mon, 27 Aug 2007, Thomas Petzoldt wrote: > >> Hello, >> >> is it *really intentional* that the "silent" option of try() does only >> apply to the outer call in nested try constructs? I would assume that a >

[Rd] silent option in nested calls to try()

2007-08-27 Thread Thomas Petzoldt
), silent=TRUE) Error in exp(NULL) : Non-numeric argument to mathematical function > -- Thomas Petzoldt Technische Universitaet Dresden Institut fuer Hydrobiologie 01062 Dresden GERMANY http://tu-dresden.de/Members/thomas.petzoldt __ R-devel

Re: [Rd] package check note: no visible global function definition (in functions using Tcl/Tk)

2007-06-11 Thread Thomas Petzoldt
Dear Prof.Ripley, Dear Seth, thank you both, including tcltk in Depends as suggested by Prof. Ripley immediately helped to silence the tcltk NOTEs, but Seth is also right. It is in fact not the ultimate solution for the Suggests case, that I intentionally used like in Seth's code example. Thom

[Rd] package check note: no visible global function definition (in functions using Tcl/Tk)

2007-06-11 Thread Thomas Petzoldt
toplevel' My question: - Is this an indication of a serious problem? - How can one avoid (or if not possible suppress) these messages? Thanks in advance Thomas P. OS: WinXP Prof., German R 2.6.0, svn-rev. 41910, 2007-06-11 -- Thomas Petzoldt Technische Universitaet Dresden Institut

Re: [Rd] S4 initialize or "generating function"

2007-01-31 Thread Thomas Petzoldt
Seth Falcon wrote: > Thomas Petzoldt <[EMAIL PROTECTED]> writes: >> One odd thing I found was that initialize does obviously not allow to >> incorporate additional named parameters which are not slots. > > ?! Does for me: Your example works but one can not a

Re: [Rd] S4 initialize or "generating function"

2007-01-31 Thread Thomas Petzoldt
to lose multiple dispatch when defining > constructors. > > + seth > > > [*1*] The default initialize method interprets named arguments as > slots which is a reasonable default, but not always sensible. What I > find quite strange is that an un-named argumen

[Rd] S4 initialize or "generating function"

2007-01-30 Thread Thomas Petzoldt
Hello, apologies if I missed something well known. I'm just revising an own package and wonder if it is still common to use "generating functions" which have the same name as the corresponding S4 class as suggested by Chambers, 2001. "Classes and Methods in the S Language". -- or should one conse

[Rd] incomplete make clean for grDevices ( Windows only) (PR#8137)

2005-09-16 Thread thomas . petzoldt
Full_Name: Thomas Petzoldt Version: R 2.2.0 alpha OS: Windows Submission from: (NULL) (141.30.20.2) Symptom: If one moves a source tree to another drive letter, a following compile will fail when compiling grDevices. The bug is found on Windows only. Reason: When performing a "make