Re: [Rd] unloadNamespace

2015-01-09 Thread Paul Gilbert
amespace("tseries"), it calls getNamespace("tseries"), which has the side effect of loading that package (and its dependencies). One way to work around this is to check loadedNamespaces() before you try to unload a package. -Winston On Thu, Jan 8, 2015 at 9:45 AM, Paul Gilbert

Re: [Rd] Which function can change RNG state?

2015-02-08 Thread Paul Gilbert
On 02/08/2015 09:33 AM, Dirk Eddelbuettel wrote: On 7 February 2015 at 19:52, otoomet wrote: | random numbers. For instance, can I be sure that | set.seed(0); print(runif(1)); print(rnorm(1)) | will always print the same numbers, also in the future version of R? There Yes, pretty much. Th

Re: [Rd] R CMD check and missing imports from base packages

2015-04-29 Thread Paul Gilbert
ion in the popular 'dplyr' package masks the one that has been in the stats package forever, and they have nothing in common, so that may give you an example. As I recall, several packages mask the simulate generic in stats, if you are looking for examples. Paul Gilbert Bill Dunlap TI

Re: [Rd] Print output during long tests?

2015-05-04 Thread Paul Gilbert
If your tests can be divided into multiple files in the tests/ directory then you will get lines like * checking tests ... Running ‘test1.R’ Running ‘test2.R’ Running ‘test3.R’ ... Paul On 05/04/2015 11:52 AM, Toby Hocking wrote: I am the author of R package animint which uses testthat f

[Rd] vignettes/

2011-11-02 Thread Paul Gilbert
I am experimenting with putting vignettes in a vignettes/ directory as suggested in the new R release news. If I understand correctly, it is now suggested that the vignette source (.Stex in my case) should be in the vignettes/ directory and the pdf should be put in the inst/doc/ directory, for

Re: [Rd] secure password token management method in R

2011-12-18 Thread Paul Gilbert
One way this is often done is to have this information in a file that only the owner can read. For example, mysql uses a file .my.cnf (in Windows it may have a different name). The code then just reads the information from the file. To guard against user carelessness, I think mysql will not use

[Rd] CRAN link broken

2011-12-30 Thread Paul Gilbert
The packages link on CRAN (http://cran.at.r-project.org/) seems to be broken. Paul Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the autho

Re: [Rd] Task views

2012-02-11 Thread Paul Gilbert
On 12-02-11 01:10 PM, Uwe Ligges wrote: On 11.02.2012 18:55, Patrick Burns wrote: On 11/02/2012 08:25, Hans W Borchers wrote: Vartanian, Ara indiana.edu> writes: All, I am looking for ... Why is it necessary over and over again to point to the Optimization Task View? ... Now it could be

Re: [Rd] Parallel R CMD check?

2012-02-17 Thread Paul Gilbert
On 12-02-17 01:19 PM, Martin Morgan wrote: On 02/17/2012 01:42 AM, Prof Brian Ripley wrote: On 17/02/2012 06:50, Martin Morgan wrote: Running R CMD check on a package can take quite a lot of time. Checks seem like they could be run in parallel (separate processes for, e.g., codoc, examples, t

Re: [Rd] portable parallel seeds project: request for critiques

2012-02-17 Thread Paul Gilbert
Paul I think (perhaps incorrectly) of the general problem being that one wants to run a random experiment, on a single node, or two nodes, or ten nodes, or any number of nodes, and reliably be able to reproduce the experiment without concern about how many nodes it runs on when you re-run it.

Re: [Rd] portable parallel seeds project: request for critiques

2012-02-17 Thread Paul Gilbert
Ok, I guess I need to look more carefully. Thanks, Paul On 12-02-17 04:44 PM, Paul Johnson wrote: On Fri, Feb 17, 2012 at 3:23 PM, Paul Gilbert wrote: Paul I think (perhaps incorrectly) of the general problem being that one wants to run a random experiment, on a single node, or two nodes

[Rd] include

2012-02-19 Thread Paul Gilbert
I am trying to add #include to a .c file in one of my package, so I can call error() without a complaint about implicit defined function. The src/ has a Makefile, to build some exec/ files that are needed. Without the include, my Makefile target OBJS = $(SRC:.c=.o) $(PKGNAME).so: $(OBJS)

Re: [Rd] include

2012-02-19 Thread Paul Gilbert
On 12-02-19 02:59 PM, Dirk Eddelbuettel wrote: On 19 February 2012 at 14:45, Paul Gilbert wrote: | I am trying to add | | #include | | to a .c file in one of my package, so I can call error() without a You may want to turn 'remapping' on which hides all R functions behind a prefix

Re: [Rd] include

2012-02-19 Thread Paul Gilbert
On 12-02-19 04:56 PM, Simon Urbanek wrote: Paul, On Feb 19, 2012, at 2:45 PM, Paul Gilbert wrote: I am trying to add #include to a .c file in one of my package, so I can call error() without a complaint about implicit defined function. The src/ has a Makefile, to build some exec/ files

Re: [Rd] seeing feedback when R CMD check pkg runs unit tests.

2012-03-02 Thread Paul Gilbert
Mario I think of the RUnit and svUnit testing to be in addition to the standard R package testing framework. You can get unit and more integrated testing results, with the behaviour I think you are looking for, simply by putting small test files in the tests/ directory of the package. These

Re: [Rd] seeing feedback when R CMD check pkg runs unit tests.

2012-03-03 Thread Paul Gilbert
On 12-03-03 03:56 AM, Mario Frasca wrote: On Fri, 02 Mar 2012 12:15:48 -0500 pgilbert902 at gmail.com (Paul Gilbert) wrote: Mario [...] Examples only need to run, but in tests/ you can do things like if( 2*2 != 4 ) stop("arithmatic is messed up.") problem is: when you do a

[Rd] RC / methods package

2012-03-24 Thread Paul Gilbert
(I think this is being caused by the new methods package in RC.) In the RC (March 24) some of my packages are generating a Note Note: Method with signature "MySQLConnection#integer" chosen for function "coerce", target signature "TSMySQLConnection#integer". "dbObjectId#integer" would also be

Re: [Rd] RC / methods package

2012-03-25 Thread Paul Gilbert
version is dbExistsTable(con, "vintageAlias") left unevaluated in the result from new? As you can tell, I'm struggling a bit with interpreting the information from the note. Also, if it were a warning I could set it to stop, and then traceback to what was causing the problem. As

Re: [Rd] RC / methods package

2012-03-26 Thread Paul Gilbert
On 12-03-25 05:29 PM, Paul Gilbert wrote: John Here is the definition of the TSMySQLConnection class, and a few other things. This is a simplified example that produces the message, but unfortunately will not work unless you have a MySQL database to connect to. (I do get the same problem with

Re: [Rd] RC / methods package

2012-03-26 Thread Paul Gilbert
n though in my case either would have worked, my feeling is that there could be cases where it is a problem, so package developers should be using setAs() explicitly to reduce ambiguities, as you say. And because of this you should be issuing a warning not just a note. And, if you do issue a warn

Re: [Rd] CRAN policies

2012-03-27 Thread Paul Gilbert
One of the things I have noticed with the R 2.15.0 RC and --as-cran is that the I have to bump the version number of the working copy of my packages immediately after putting a version on CRAN, or I get an message about version suitability. This is probably a good thing for packages that I have

Re: [Rd] CRAN policies

2012-03-27 Thread Paul Gilbert
On 12-03-27 10:59 AM, Uwe Ligges wrote: On 27.03.2012 16:17, Paul Gilbert wrote: One of the things I have noticed with the R 2.15.0 RC and --as-cran is that the I have to bump the version number of the working copy of my packages immediately after putting a version on CRAN, or I get an

Re: [Rd] CRAN policies

2012-03-27 Thread Paul Gilbert
An associated problem, for the wish list, is that it would be nice for package developers to have a way to automatically distinguish between NOTEs that can usually be ignored (e.g. a package suggests a package that is not available for cross reference checks - I have several case where the sugg

[Rd] --as-cran / BuildVignettes: false

2012-03-28 Thread Paul Gilbert
I have packages where I know CRAN and other test platforms do not have all the resources to build the vignettes, for example, access to databases. Previously I think putting BuildVignettes: false in the DESCRIPTION file resolved this, by preventing CRAN checks from attempting to run the vi

Re: [Rd] CRAN policies

2012-03-29 Thread Paul Gilbert
On 12-03-29 09:29 PM, mark.braving...@csiro.au wrote: > I'm concerned this thread is heading the wrong way, towards > techno-fixes for imaginary problems. R package-building is already > encumbered with a huge set of complicated rules, and more > instructions/rules eg for metadata would make thin

[Rd] R-forge --as-cran

2012-03-30 Thread Paul Gilbert
(Renamed from "Re: [Rd] CRAN policies" because the of the muli-threading of that subject.) Claudia Actually, my version numbers are year-month dates, eg 2012.3-1, although I don't set them automatically. I have had some additional off-line discussion on this. The problem is this: Now when

Re: [Rd] CRAN policies

2012-03-31 Thread Paul Gilbert
Mark I would like to clarify two specific points. On 12-03-31 04:41 AM, mark.braving...@csiro.au wrote: > ... Someone has subsequently decided that code should look a certain way, and has added a check that isn't in the language itself-- but they haven't thought of everything, and of course t

Re: [Rd] Vignette questions

2012-04-11 Thread Paul Gilbert
On 12-04-11 04:41 PM, Terry Therneau wrote: Context: R2.15-0 on Ubuntu. 1. I get a WARNING from CMD check for "Package vignette(s) without corresponding PDF: In this case the vignettes directory had both the pdf and Rnw; do I need to move the pdf to inst/doc? Yes, you need to put the pdf in

Re: [Rd] Vignette questions

2012-04-12 Thread Paul Gilbert
On 12-04-12 03:15 AM, Uwe Ligges wrote: On 12.04.2012 01:16, Paul Gilbert wrote: On 12-04-11 04:41 PM, Terry Therneau wrote: Context: R2.15-0 on Ubuntu. 1. I get a WARNING from CMD check for "Package vignette(s) without corresponding PDF: In this case the vignettes directory had

Re: [Rd] equivalent to source() inside a package

2012-05-25 Thread Paul Gilbert
Is there a reason for not using a vignette or putting a file in the demo/ directory? This seems like the sort of thing for which they are intended. Paul On 12-05-25 03:33 PM, Wei Hao wrote: Hi all: I'm working on a project that I have packaged for ease of distribution. The different simula

Re: [Rd] Requests for vignette clarification (re: Writing R Extensions)

2012-06-03 Thread Paul Gilbert
a variety of mechanism suggested on R-devel for subverting the CRAN checks of the vignette code. My interpretation is that these should generally be considered contrary to the spirit of what CRAN maintainers are attempting to do, and package maintainers should expect continuing problems as

[Rd] problem with vignettes when S4 classes in packages overlap

2012-09-18 Thread Paul Gilbert
( A similar problem is also reported by Sebastian P. Luque with library(maptools) library(trip) in the vignette as below ). I am writing a vignette which loads RMySQL and RPostgreSQL. This produces the warning: Loading required package: DBI Warning in .simpleDuplicateClass(def, prev) :

Re: [Rd] problem with vignettes when S4 classes in packages overlap

2012-09-18 Thread Paul Gilbert
On 12-09-18 07:23 PM, Duncan Murdoch wrote: On 12-09-18 5:40 PM, Paul Gilbert wrote: ( A similar problem is also reported by Sebastian P. Luque with library(maptools) library(trip) in the vignette as below ). I am writing a vignette which loads RMySQL and RPostgreSQL. This produces

[Rd] CRAN test / avoidance

2012-09-19 Thread Paul Gilbert
( subject changed from Re: [Rd] R-devel Digest, Vol 115, Issue 18 ) I have the impression from this, and previous discussions on the subject, that package developers and CRAN maintainers are talking at cross-purposes. Many package maintainers are thinking that they should be responsible for ch

Re: [Rd] Is there an automatic method for updating an existing CRAN package from R-forge?

2012-10-01 Thread Paul Gilbert
Yes, the button is still there if you are logged in and unhide it. (You probably also need the appropriate developer permission.) Beware that R-forge needs to indicate the package build status is current, but also, if you have just made svn updates it may falsely indicate current. Check the rev

[Rd] R 2.15.2 make check failure on 32-bit --with-blas="-lgoto2"

2012-10-26 Thread Paul Gilbert
Is --with-blas="-lgoto2" a known problem (other than possibly not being the preferred choice)? I thought I had been testing RC with the same setup I regularly use, but I now see there was a slight difference. I am now getting the following failure in make check on 32-bit Ubuntu 12.04, config

Re: [Rd] R 2.15.2 make check failure on 32-bit --with-blas="-lgoto2"

2012-10-26 Thread Paul Gilbert
On 12-10-26 12:15 PM, Prof Brian Ripley wrote: On 26/10/2012 16:37, Paul Gilbert wrote: Is --with-blas="-lgoto2" a known problem (other than possibly not being the preferred choice)? And what precisely is it? And what chipset are you using? I thought I had been testing RC wit

Re: [Rd] Retrieving data from aspx pages

2012-10-30 Thread Paul Gilbert
I don't know of an easy way to do this in R. I've been doing something similar with python scripts called from R. If anyone knows how to do this with just R, I would appreciate hearing too. Paul On 12-10-29 04:11 PM, jose ramon mazaira wrote: Hi. I'm trying to write an application to retrieve

Re: [Rd] Retrieving data from aspx pages

2012-10-30 Thread Paul Gilbert
ively myself, and can't speak to it's current state but on quick inspection RHTMLForms seems worth a look for what you want. http://www.omegahat.org/RHTMLForms/ ~G On Tue, Oct 30, 2012 t 5:38 AM, Paul Gilbert mailto:pgilbert...@gmail.com>> wrote: I don't know of an easy way

Re: [Rd] Retrieving data from aspx pages

2012-10-30 Thread Paul Gilbert
el Becker wrote: I haven't used it extensively myself, and can't speak to it's current state but on quick inspection RHTMLForms seems worth a look for what you want. http://www.omegahat.org/RHTMLForms/ ~G On Tue, Oct 30, 2012 t 5:38 AM, Paul Gilbert mailto:pgilbert...@gmail.com>>

Re: [Rd] Retrieving data from aspx pages

2012-10-31 Thread Paul Gilbert
ul to automate the interaction with servers retrieving automatically the name-value pairs required by the server (parsing the page source code) instead of examining in each web page the appropiate fields. 2012/10/30, Paul Gilbert : Jose As far as getting to the data, I think the best way to do thi

Re: [Rd] An idea: Extend mclapply's mc.set.seed with an initial seed value?

2012-11-02 Thread Paul Gilbert
I appreciate your problem, and getting reproducible random generator results on a parallel system is something to be careful about. However, I would avoid making it too easy to have a fixed seed. In earlier days there were mistakes too often made by users inadvertently using the same seed over

[Rd] SystemRequirements’ field

2012-12-12 Thread Paul Gilbert
Am I correct in thinking that the ‘SystemRequirements’ field in a package DESCRIPTION file is purely descriptive, there are no standard elements that can be extracted by parsing it and used automatically? This field does not seem to be widely used, even for some obvious cases like backend data

Re: [Rd] SystemRequirements’ field

2012-12-12 Thread Paul Gilbert
On 12-12-12 02:19 PM, Prof Brian Ripley wrote: On 12/12/2012 18:33, Paul Gilbert wrote: Am I correct in thinking that the ‘SystemRequirements’ field in a package DESCRIPTION file is purely descriptive, there are no standard elements that can be extracted by parsing it and used automatically

Re: [Rd] R-forge, package dependencies

2013-01-15 Thread Paul Gilbert
I'm surprised this works on Windows and Mac, since RMonetDB does not seem to be on CRAN. I thought it was still a requirement that dependencies need to be on CRAN (which makes development difficult for related packages like this). A related long standing request is that R-forge checking look f

[Rd] maintaining multiple R versions

2013-01-18 Thread Paul Gilbert
(somewhat related to thread [Rd] R CMD check not reading R_LIBS ) For many years I have maintained R versions by building R (./configure ; make) in a directory indicating the version number, putting the directory/bin on my path, and setting R_LIBS_SITE. It seems only one version can easily b

Re: [Rd] maintaining multiple R versions

2013-01-23 Thread Paul Gilbert
switch among them at the command line. Aaron On Fri, Jan 18, 2013 at 02:04:13PM -0500, Paul Gilbert wrote: (somewhat related to thread [Rd] R CMD check not reading R_LIBS ) For many years I have maintained R versions by building R (./configure ; make) in a directory indicating the version number

Re: [Rd] [BioC] enabling reproducible research & R package management & install.package.version & BiocLite

2013-03-05 Thread Paul Gilbert
(More on the original question further below.) On 13-03-05 09:48 AM, Cook, Malcolm wrote: All, What got me started on this line of inquiry was my attempt at balancing the advantages of performing a periodic (daily or weekly) update to the 'release' version of locally installed R/Bioconductor pa

[Rd] R-3.0.0 reg-tests-3.R / survival

2013-04-03 Thread Paul Gilbert
"make check" is failing on reg-test3.R with a message that survival was built with an older version of R. (On my Ubuntu 32 bit and Ubuntu 64 bit machines). Why would "make check" be looking anywhere that it would find something built with an older version of R? ~/RoboAdmin/R-3.0.0/tests$ ta

Re: [Rd] R-package preparation --as-cran behaving unexpectedly

2013-04-03 Thread Paul Gilbert
On 13-04-03 11:31 AM, Duncan Murdoch wrote: On 03/04/2013 7:25 AM, Stefan Boehringer wrote: Dear all, I am trying to submit an R-package to CRAN. In preparation I do run R_INSTALL_TAR=/bin/tar R CMD check --as-cran parallelize.dynamic_0.9.tar.gz and the command finishes without warnings or

Re: [Rd] R-3.0.0 reg-tests-3.R / survival

2013-04-03 Thread Paul Gilbert
] "grid" "KernSmooth" "lattice""MASS" "Matrix" [16] "methods""mgcv" "nlme" "nnet" "parallel" [21] "rpart" "spatial""splines"

Re: [Rd] package file permissions problem R 3.0.0/Windows OS

2013-04-15 Thread Paul Gilbert
On 13-04-15 03:19 PM, Prof Brian Ripley wrote: On 15/04/2013 14:11, John Fox wrote: Dear Brian, On Mon, 15 Apr 2013 06:56:26 +0100 Prof Brian Ripley wrote: POSIX-style execute permission isn't a Windows concept, so it was fortuitous this ever worked. One possibility is that Cygwin was in

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-29 Thread Paul Gilbert
Being generally uninformed about Windows, I have to admit to almost total confusion trying to follow this thread. However, since I have recently been trying to do something in Windows, I would appreciate a newbie friendly explanation of a few points: -Rtools is used to build R and to build (so

Re: [Rd] R-3.0.1 - "transient" make check failure in splines-EX.r

2013-05-29 Thread Paul Gilbert
Avraham I resolved this only by switching to a different BLAS on the 32 bit machine.Since no one else seemed to be having problems, I considered it possible that there was a hardware issue on my old 32 bit machine. The R check test failed somewhat randomly, but often. most disconcertingly, it

Re: [Rd] different results on linux and windows

2009-05-14 Thread Paul Gilbert
like differencing the sums of two mean zero sequences, then differences between libraries will show up. I have found bigger differences between Linux variants than I have between Windows and most Linuxes. Paul Gilbert Klaus Nordhausen wrote: Dear R experts, we are preparing an R-package to compute th

Re: [Rd] .Rhistory created with wrong permissions (PR#13752)

2009-06-10 Thread Paul Gilbert
nicolas.thierry-m...@imag.fr wrote: Hi, This is with a centos 5.3 x86_64 system, using R 2.8.1 (details below). In a directory where R is invoked, at the end of a session R offers to "Save workspace image". Replying yes creates/updates at least two files in the current directory: .Rhistory a

[Rd] Matrix vignette error in June 24 RC

2009-06-24 Thread Paul Gilbert
I am getting the following problem with make check-all on the June 24 rc. I realize I could probably fix it by installing/setting a path to the sty file, but I don't remember having to do that for make check-all in the past. Paul Gilbert ___ checking package 'Matrix&#

Re: [Rd] S4 and connection slot [Sec=Unclassified]

2009-06-29 Thread Paul Gilbert
There may be a problem that objects with slots can persist into new sessions (i.e. be saved) but I think connections die when a session ends, so whatever is in the slot is no longer valid. Paul Stavros Macrakis wrote: On Mon, Jun 29, 2009 at 9:19 AM, Martin Morgan wrote: ...I'm not sure

Re: [Rd] noweb and R

2009-07-28 Thread Paul Gilbert
Terry I didn't see any response to this and I am a bit curious about the answer. If I understand correctly, you are suggesting you would like some directory, say Rman/, that gets pre-processed to produce the R/ and man/ directories. Are you thinking that it should be part of the package tre

Re: [Rd] loadings function (PR#13886)

2009-08-11 Thread Paul Gilbert
In 2.9.1 the documentation says Usage: loadings(x) ## S3 method for class 'loadings': print(x, digits = 3, cutoff = 0.1, sort = FALSE, ...) ## S3 method for class 'factanal': print(x, digits = 3, ...) which indicates one argument as in the function call. The digits,

Re: [Rd] unit testing for R packages?

2009-10-05 Thread Paul Gilbert
Seth I should look at RUnit more carefully sometime, but having had my own system in place from much earlier, I've never made the move. Basically I just use files in the tests/ directory which are run by a makefile in the package directory above. Roughly, this just means that I can run the test

[Rd] beta build problem

2009-10-13 Thread Paul Gilbert
I am having the following problem building R-beta_2009-10-12_r50045.tar.gz on Ubuntu 9.04 - the Jaunty Jackalope Paul ... make[2]: Entering directory `/home/paul/toolchain/R/R-beta/src/library/Recommended' begin installing recommended package boot gzip: invalid option -- 'x'

[Rd] news() format

2009-10-15 Thread Paul Gilbert
I am trying to reformat my NEWS file so it works with news() (in R-beta as of a few days ago). I have tried several variations around Changes in version 2009.10-1 o Standardized NEWS format for function news(). o Fixed a few documentation problems found by R-2.10.0 (beta)

[Rd] R RSS feed

2009-10-15 Thread Paul Gilbert
I was trying to subscribe to an RSS feed from but IE chokes on DTDs and Firefox also has trouble with this feed. (I'm not sure if it has trouble with DTDs in general.) I went to one of our web developers to see what I should use to read the feed, and

[Rd] Makevars or Makevars.in

2009-11-10 Thread Paul Gilbert
I am just trying to adjust one of my packages so the C code builds in Windows. This is code that has been around for a long time, and I'm am only a casual reader of C, so it has had the "if it is not broken don't touch it" approach for many years. The section 1.2.1 "Using Makevars" of "Writi

[Rd] CRAN nearly down?

2010-03-05 Thread Paul Gilbert
Is CRAN having trouble or is it just me? (The web interface is very slow and install.packages() is timing out and giving me "service not available"). Paul La version française suit le texte anglais. --

Re: [Rd] Using SVN + SSH on windows

2010-03-29 Thread Paul Gilbert
... >> I try several things: if I do >> 'svn://christo...@svn.r-forge.r-project.org/svnroot/kml3d', I do >manage to >> download the project. But then, I do not manage to upload some >modification. > >All looks ok, but I think you are using the wrong protocol. It should >be 'svn+ssh' for *commits*,

Re: [Rd] Difference Linux / Windows

2010-04-01 Thread Paul Gilbert
Since this seems more like a wish-list discussion, if someone actually starts thinking about the issue I would like to add the following somewhat related point: It would be nice if there were a mechanism, in task views or that could be used by task views, to avoid attempting to install packages th

[Rd] utf8.def

2010-04-19 Thread Paul Gilbert
I am trying to check my packages with R-rc and latex is failing to find utf8.def. I presume my latex installation is defective or too old, or is this file distributed with R and I just don't have a path set correctly? Paul __ * checking PDF version of manual ... WARNING LaTeX

Re: [Rd] utf8.def

2010-04-19 Thread Paul Gilbert
>-Original Message- >From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] >Sent: April 19, 2010 11:20 AM >To: Paul Gilbert >Cc: r-devel@r-project.org >Subject: Re: [Rd] utf8.def > >On Mon, 19 Apr 2010, Paul Gilbert wrote: > >> I am trying to check my

Re: [Rd] utf8.def

2010-04-19 Thread Paul Gilbert
Thanks Brian. Yes, "make pdf" fails and my latex is too old (2001/06/01). Paul >-Original Message- >From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] >Sent: April 19, 2010 12:14 PM >To: Paul Gilbert >Cc: r-devel@r-project.org >Subject: RE: [Rd] utf8.def

[Rd] S4 default/missing args

2010-05-14 Thread Paul Gilbert
, con, ...){ if(is.null(con <- getOption("TSconnection"))) stop("con should be specified or set with options(TSconnection=con).") else return('ok') } ) TSdoc("B103") Error in TSdoc("B103&quo

Re: [Rd] location of Sweave.sty in R devel (2010-06-15 r52280)

2010-06-15 Thread Paul Gilbert
Charles For some time I have had to add R to the tex paths: export TEXINPUTS="~/texmf/tex/latex:$RHOME/share/texmf:" export BSTINPUTS="~/texmf/bibtex/bst:$RHOME/share/texmf:" to get vignettes to build. Not sure if I am still suppose to need to do that, but the symptom looks the same. Paul

Re: [Rd] manage R function and data dependencies like 'make'

2007-02-07 Thread Paul Gilbert
I use make to do things like you describe. Here is an example target from one of my Makerules files: $(T:%=compare.R$(REP).T%):compare.%: compare.R estimates.% @echo making $(notdir $(PWD)) $@ because $? changed ... @(cd $(subst compare.,,$@) ; \ echo "z <- try( sourc

Re: [Rd] how to use debug.mypkg

2007-03-23 Thread Paul Gilbert
Here is the way I do something similar in my dse1 package: ..onLoad <- function(library, section) { .DSEflags(list(COMPILED=TRUE, DUP=TRUE)) invisible(TRUE) } ..DSEflags <- local({ .DSE.flags <- character(0) function(new) { if(!missing(new)) .DSE.flags <<-

[Rd] broken link in posting-guide.html

2007-04-04 Thread Paul Gilbert
There seems to be a broken link at <http://www.r-project.org/posting-guide.html> in the line *Technical details of posting*: See General Instructions <http://www.r-project.org/mail#instructions> for more details of the following:

[Rd] eigen in beta

2007-04-10 Thread Paul Gilbert
I am having some trouble with a case where eigen in R-beta gives a different largest value than in previous versions of R. Other values seem to be the same. Before I spend too much time, is anyone aware of a problem (symmetric = FALSE, only.values = TRUE). Paul Gilbert

Re: [Rd] eigen in beta

2007-04-10 Thread Paul Gilbert
"Linux""2.4.21-40.ELsmp" version nodename "#1 SMP Thu Feb 2 22:13:55 EST 2006" "mfa04559" machine

Re: [Rd] eigen in beta

2007-04-10 Thread Paul Gilbert
Here is another check that R-2.4.1 is right. This should give 1. prod(eigen(z, symmetric = FALSE, only.values = TRUE)$values ) * prod(eigen(solve(z), symmetric = FALSE, only.values = TRUE)$values ) R-2.4.1 gives [1] 1+0i R-2.5.0 gives [1] 1.01677-0i Paul Paul Gilbert wrote: > Here is

Re: [Rd] eigen in beta

2007-04-10 Thread Paul Gilbert
Peter Dalgaard wrote: > Paul Gilbert wrote: > >> Here is the example. Pehaps others could check on other platforms. It >> is only the first eigenvalue that is different. I am relatively sure >> the old values are correct, since I compare with an alternate >> c

Re: [Rd] eigen in beta

2007-04-11 Thread Paul Gilbert
simple way to get all the relevant information?) Paul Gilbert Prof Brian Ripley wrote: > All the systems I tried this on give the 'correct' answer, including > > x86_64 Linux, FC5 (gcc 4.1.1) > i686 Linux, FC5 > ix86 Windows (both gcc 3.4.5 and gcc pre-4.3.0) > Spa

Re: [Rd] eigen in beta

2007-04-11 Thread Paul Gilbert
Prof Brian Ripley wrote: > On Wed, 11 Apr 2007, Paul Gilbert wrote: >> Hmmm. It is a bit disconcerting that make check passes and I can get >> a fairly seriously wrong answer. Perhaps this test could be added to >> make check. > Well, you have learnt something new ab

Re: [Rd] eigen in beta

2007-04-11 Thread Paul Gilbert
Peter Dalgaard wrote: > Well, there's make check-all... Ok, this is what I should be running. It reports running tests of LAPACK-based functions make[3]: Entering directory `/home/mfa/gilp/toolchain/R/src/R-beta/tests' running code in 'lapack.R' ...make[3]: *** [lapack.Rout] Error 1 make

[Rd] Namespace dependencies not required:

2007-04-27 Thread Paul Gilbert
dependencies required in Imports: or Namespace dependencies not indicated in Imports: or, perhaps one of these is necessary: Namespace dependencies not indicated in Depends: or Namespace dependencies not indicated by Depends, Suggests, or Imports: Paul Gilbert

Re: [Rd] Imports/exports of S4 methods

2007-05-04 Thread Paul Gilbert
I'm wrestling with the same issues, so this is the blind leading the blind, but that usually prompts someone knowledgeable to say something useful. Roger D. Peng wrote: >I have a question about what to do in the following situation (please bear >with >the setup): > >Package A defines an S4 g

[Rd] S4 assignment \alias and \usage

2007-05-30 Thread Paul Gilbert
What is the Rd file alias and usage syntax for an S4 assignment method? I have been trying variations on \alias{TSdoc<-,default-method} \usage{ \S4method{TSdoc}{default}(x) <- value but so far I have not got it right according to various codoc, etc, checks. Paul G

Re: [Rd] S4 assignment \alias and \usage

2007-05-30 Thread Paul Gilbert
s{TSdoc<-,someClass,anotherClass-method} > > You may not be allowed to specify usage, but I think the issue only > arises when setting methods for a generic documented elsewhere. > > + seth > Martin Maechler wrote: >>>>>> "PaulG" == Paul Gilbert

Re: [Rd] S4 assignment \alias and \usage

2007-05-30 Thread Paul Gilbert
Seth Falcon wrote: > Paul Gilbert <[EMAIL PROTECTED]> writes: > >> Let me back up a bit, I may be making another mistake. My code has >> >> setGeneric("TSdoc<-", >>def= function(x, value) standardGeneric("TSdoc<-"), >>

Re: [Rd] In creating a Windows binary package (zip), how do I make the installation configurable

2007-07-12 Thread Paul Gilbert
[EMAIL PROTECTED] wrote: >I would like to create a binary package for Windows which when >installed will give the user an option of whether to install >one version or another. > >Here is the problem, I have a package 'FAME' that can run >in two different modes on Windows. > I hope this is a Windo

[Rd] S4 coerce

2007-07-16 Thread Paul Gilbert
ot;, "SQLiteConnection", coerce = function(x) [EMAIL > PROTECTED]) > Tcon <- new("TSconnection", con=dbConnect(m, dbname="test"), vintage=FALSE, panel=FALSE) > is(Tcon, "DBIConnection") [1] TRUE > is(Tcon, "MySQLCo

Re: [Rd] S4 coerce

2007-07-17 Thread Paul Gilbert
Seth Falcon wrote: >Paul Gilbert <[EMAIL PROTECTED]> writes: > > > >>(I am not sure if this is a bug or a request for a more understandable >>warning, or possible something obvious I should be posting on r-help.) >> >>I am trying to coerce an new

Re: [Rd] S4 coerce

2007-07-18 Thread Paul Gilbert
ot;test"), vintage=FALSE, panel=FALSE) > is(Tcon, "DBIConnection") [1] TRUE I think this should work: > dbListTables(Tcon) Error in function (classes, fdef, mtable) : unable to find an inherited method for function "dbListTables", for signature "TSconnect

Re: [Rd] [R] aggregate.ts

2007-07-25 Thread Paul Gilbert
(moved from r-help) Achim Zeileis wrote: >On Wed, 25 Jul 2007, laimonis wrote: > > > >>Consider the following scrap of code: >> >> > >...slightly modified to > x1 <- ts(1:24, start = c(2000, 10), freq = 12) > x2 <- ts(1:24, start = c(2000, 11), freq = 12) > >and then > y1 <- aggregate(x1

Re: [Rd] partial correlation function for multivariate time series

2007-09-11 Thread Paul Gilbert
many years. Paul Gilbert Simone Giannerini wrote: > Dear all, > > I found the following behaviour with pacf() in the multivariate case, > > set.seed(10) > x <- rnorm(1000,sd=1) > y <- rnorm(1000,sd=1) > pacf(ts(cbind(x,y)),plot=FALSE,lag.max=10) > > Pa

Re: [Rd] installing packages (PR#9907)

2007-09-12 Thread Paul Gilbert
I don't think this is a bug in R. I believe a (not too) recent change in Gentoo removed /usr/bin/pwd so that the only one left is /bin/pwd. R seems to remember from install time where to find these utilities, and probably found /usr/bin/pwd when you installed the not recent version of R. You fo

Re: [Rd] partial correlation function for multivariate time series

2007-09-14 Thread Paul Gilbert
what you say. I do think parts of this code pre-date Reisel's book, so inconsistency with his book would probably be imperfect foresight. BTW, I think bug reports with suggested fixes are usually more useful. And, at the very least, it seems the references in the documentation could be impr

[Rd] vignette optional sections.

2007-10-31 Thread Paul Gilbert
this? Thanks, Paul Gilbert La version française suit le texte anglais. This email may contain privileged and/or confidential in

Re: [Rd] Package Building and Name Space

2008-01-24 Thread Paul Gilbert
I find the error message >>>>>Error in MyPackage::MyFunction : is a bit misleading. Could it be changed to Error in Package::Function perhaps with a hint: "Possibly Package is not exporting a NAMESPACE." (At least, I think this does not work unless Packag

Re: [Rd] Package Building and Name Space

2008-01-24 Thread Paul Gilbert
Sorry, once again I was totally confused. Paul Duncan Murdoch wrote: > On 1/24/2008 10:00 AM, Paul Gilbert wrote: > >> I find the error message >> >> >>>>>Error in MyPackage::MyFunction : >> >> is a bit misleading. Could it be changed to >

[Rd] r-release Windows x86_64

2008-02-04 Thread Paul Gilbert
s too. It is something that has been fixed in my sources for awhile. (I think it was fixed in the version on CRAN too, but I'm not certain.) Paul Gilbert La version française suit l

<    1   2   3   >