Re: [Rd] "False" warning on "replacing previous import" when re-exporting identical object

2013-08-30 Thread Henrik Bengtsson
Hi. On Fri, Aug 30, 2013 at 6:58 AM, Paul Gilbert wrote: > This is related to the recent thread on correct NAMESPACE approach when > writing S3 methods. If your methods are S4 I think pkgB does not need to > export the generic. Just export the method and everything works magically and > your p

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Marc Schwartz
On Aug 30, 2013, at 2:20 PM, Henrik Bengtsson wrote: > On Fri, Aug 30, 2013 at 12:14 PM, Duncan Murdoch > wrote: >> On 30/08/2013 3:09 PM, Marc Schwartz wrote: >>> >>> On Aug 30, 2013, at 2:00 PM, cstrato wrote: >>> Dear all, To create a *.pdf file from a *.Rnw file I do: >>>

[Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear all, To create a *.pdf file from a *.Rnw file I do: olddir <- getwd(); setwd(outdir); tryCatch({Sweave("QAReport.Rnw"); tools::texi2pdf("QAReport.tex", clean=TRUE) }, finally = setwd(olddir) ); This works fine,

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Henrik Bengtsson
On Fri, Aug 30, 2013 at 12:21 PM, cstrato wrote: > Dear Duncan, dear Marc, > > Thank you for your fast reply. > > Can you please tell me: > If texi2pdf() won't delete files how are the files deleted when the > directory structure is Test/inst/doc/? Check if what you're observing is reproducible w

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Henrik, Thank you for your explanation. Yes, this behavior is reproducible many times. When I copy both lines together into R, i.e. Sweave("QAReport.Rnw") tools::texi2pdf("QAReport.tex", clean = TRUE) then the auxiliary files are deleted. However, when I keep the *.tex file only an

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Henrik, I am trying to attach the 'QAReport.Rnw' file which I am using on my Mac to reproduce your problem. Best regards, Christian On 8/30/13 9:50 PM, cstrato wrote: Dear Henrik, Thank you for your explanation. Yes, this behavior is reproducible many times. When I copy both lines t

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Henrik Bengtsson
On Fri, Aug 30, 2013 at 12:40 PM, Marc Schwartz wrote: > > On Aug 30, 2013, at 2:20 PM, Henrik Bengtsson wrote: > >> On Fri, Aug 30, 2013 at 12:14 PM, Duncan Murdoch >> wrote: >>> On 30/08/2013 3:09 PM, Marc Schwartz wrote: On Aug 30, 2013, at 2:00 PM, cstrato wrote: > Dear a

Re: [Rd] "False" warning on "replacing previous import" when re-exporting identical object

2013-08-30 Thread Henrik Bengtsson
On Fri, Aug 30, 2013 at 11:51 AM, Henrik Bengtsson wrote: > Hi. > > On Fri, Aug 30, 2013 at 6:58 AM, Paul Gilbert wrote: >> This is related to the recent thread on correct NAMESPACE approach when >> writing S3 methods. If your methods are S4 I think pkgB does not need to >> export the generic.

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Henrik, Below is the 'QAReport.Rnw' file which I use on my Mac to reproduce your problem. Maybe this will help others to reproduce this problem, too. Best regards, Christian begin QAReport.Rnw \documentclass{article} \textwidth=6.2in \textheight=8.5in %\parskip=.3cm \oddsidem

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Henrik, Thank you for this information, I will try to install the patched version. Best regards, Christian On 8/30/13 10:23 PM, Henrik Bengtsson wrote: Just checked the SVN logs and the comparison towards file timestamps have been dropped in R devel and R 3.0.1 SVN r63690 (Aug 25, 2013)

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Henrik Bengtsson
Just checked the SVN logs and the comparison towards file timestamps have been dropped in R devel and R 3.0.1 SVN r63690 (Aug 25, 2013) and newer. It is now simply comparing the set of files before and after. Try with one of those and I'll bet you that clean=TRUE does what it supposed to. /Henrik

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Duncan Murdoch
On 30/08/2013 3:21 PM, cstrato wrote: Dear Duncan, dear Marc, Thank you for your fast reply. Can you please tell me: If texi2pdf() won't delete files how are the files deleted when the directory structure is Test/inst/doc/? Is this done by Sweave()? No. Duncan Murdoch Best regards, Christi

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Duncan, dear Marc, Thank you for your fast reply. Can you please tell me: If texi2pdf() won't delete files how are the files deleted when the directory structure is Test/inst/doc/? Is this done by Sweave()? Best regards, Christian On 8/30/13 9:14 PM, Duncan Murdoch wrote: On 30/08/201

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Henrik Bengtsson
On Fri, Aug 30, 2013 at 12:14 PM, Duncan Murdoch wrote: > On 30/08/2013 3:09 PM, Marc Schwartz wrote: >> >> On Aug 30, 2013, at 2:00 PM, cstrato wrote: >> >> > Dear all, >> > >> > To create a *.pdf file from a *.Rnw file I do: >> > >> > olddir <- getwd(); >> > setwd(outdir); >> > >> >

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Duncan Murdoch
On 30/08/2013 3:09 PM, Marc Schwartz wrote: On Aug 30, 2013, at 2:00 PM, cstrato wrote: > Dear all, > > To create a *.pdf file from a *.Rnw file I do: > > olddir <- getwd(); > setwd(outdir); > > tryCatch({Sweave("QAReport.Rnw"); >tools::texi2pdf("QAReport.tex", cl

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Marc Schwartz
On Aug 30, 2013, at 2:00 PM, cstrato wrote: > Dear all, > > To create a *.pdf file from a *.Rnw file I do: > > olddir <- getwd(); > setwd(outdir); > > tryCatch({Sweave("QAReport.Rnw"); >tools::texi2pdf("QAReport.tex", clean=TRUE) > }, >

Re: [Rd] Type annotations for R function parameters.

2013-08-30 Thread Brian Rowe
The type constraints in lambda.r make this relatively easy. The idea is to add a declaration before a function that provides static typing on the function arguments. The type constraint also specifies the return type, so it would be straightforward to construct a graph. Where a type variable is

Re: [Rd] "False" warning on "replacing previous import" when re-exporting identical object

2013-08-30 Thread Paul Gilbert
This is related to the recent thread on correct NAMESPACE approach when writing S3 methods. If your methods are S4 I think pkgB does not need to export the generic. Just export the method and everything works magically and your problem disappears. For S3 methods there seems to be the difficultly

Re: [Rd] Type annotations for R function parameters.

2013-08-30 Thread Duncan Murdoch
On 13-08-30 7:22 AM, Оботуров Артем wrote: This essentially locks up the version of each package at the time of writing an adapter. This makes you to make review of changes before introducing an updated version of those packages into the system. Yes, that's why I said this is hard. Also there

Re: [Rd] Type annotations for R function parameters.

2013-08-30 Thread Deepayan Sarkar
On Fri, Aug 30, 2013 at 2:49 PM, Оботуров Артем wrote: > Hello. > > One of my clients asked if it would be possible to have an IDE which could > use type discovery for R functions to make flow-like construction of an R > program. Something like a LabView graphical composition of processing > eleme

Re: [Rd] Type annotations for R function parameters.

2013-08-30 Thread Duncan Murdoch
On 13-08-30 5:19 AM, Оботуров Артем wrote: Hello. One of my clients asked if it would be possible to have an IDE which could use type discovery for R functions to make flow-like construction of an R program. Something like a LabView graphical composition of processing elements. They called this

[Rd] Type annotations for R function parameters.

2013-08-30 Thread Оботуров Артем
Hello. One of my clients asked if it would be possible to have an IDE which could use type discovery for R functions to make flow-like construction of an R program. Something like a LabView graphical composition of processing elements. They called this type of program composition a "workflow". I

[Rd] ::: inside the package

2013-08-30 Thread Reijo Sund
> You only need ::: from outside the package. In some cases I have had difficulties to evaluate non-exported/hidden R functions from C code without ::: (inside the package). But that's a different story and not any serious problem at all. Probably there is also some easy workaround, but I haven

Re: [Rd] Packages not found

2013-08-30 Thread rpruim
Is it possible to set the CRAN mirror at the command line when doing R CMD check --as-cran (which also breaks currently)? $ R CMD check --as-cran fastR_0.7-1.tar.gz * using log directory ‘/Users/rpruim/projects/github/fastR/fastR.Rcheck’ * using R Under development (unstable) (2013-08-19 r63623)

[Rd] Big Integer Support in JSON-to-R Conversion

2013-08-30 Thread Trannon Mosher
I have come across an issue converting a JSON string in R (with either the package 'rjson' or 'RJSONIO') when big integers are included in the JSON string. A simple example of the problem is: > options(scipen=999) # To prevent representing the answer in scientific notation > json.str <- '{"bigIn

Re: [Rd] Packages not found

2013-08-30 Thread rpruim
> On the CRAN website http://cran.r-project.org/ it is currently not > possible to get to the packages. Clicking on "Packages" or on > "Contributed extension packages" results in Error 404: Object not > found!, see: http://cran.r-project.org/web/packages/ This is also blocking R CMD check --as-