Re: [R-pkg-devel] Saving output of check()

2018-04-11 Thread Ben Bolker
I have at various times tried the built-in (tools package) solution; fairly complex hand-rolled stuff I did myself; and revdepcheck. I found that revdepcheck handled installation of needed dependencies, including caching packages where necessary, more easily. It felt like the 'tools'

Re: [R-pkg-devel] Saving output of check()

2018-04-11 Thread Uwe Ligges
Not sure why nobody dicusses the R internal check functionality, also for reverse dependencies, from the tools package? That is what CRAN uses for the reverse dependency checks. Best, Uwe Ligges On 11.04.2018 23:14, J C Nash wrote: Another workaround is to use tlogl <-

Re: [R-pkg-devel] Saving output of check()

2018-04-11 Thread J C Nash
> Georgi Boshnakov > > > > > > From: R-package-devel [r-package-devel-boun...@r-project.org] on behalf of J > C Nash [profjcn...@gmail.com] > Sent: 11 April 2018 19:05 > To: List r-package-devel > Subject: [R-pkg-devel] Saving output of chec

Re: [R-pkg-devel] Saving output of check()

2018-04-11 Thread J C Nash
Another workaround is to use tlogl <- readLines(attr(cpkg.chk, "path")) Possibly this may suggest a way to improve functionality. JN On 2018-04-11 03:24 PM, Henrik Bengtsson wrote: > R CMD check, which is used internally runs checks in standalone > background R processes. Output from these is

Re: [R-pkg-devel] Saving output of check()

2018-04-11 Thread J C Nash
I got several responses to my query. Henrik's does suggest "why", but I am rather unhappy that R has this weakness. (See below for a sort of workaround for Linux users.) In particular, note that the check_built() function DOES return an object, but it does NOT print(). In fact, putting alldep <-

Re: [R-pkg-devel] Saving output of check()

2018-04-11 Thread Henrik Bengtsson
R CMD check, which is used internally runs checks in standalone background R processes. Output from these is not capturable/sinkable by the master R process. The gist of what's happening is: > sink("output.log") > system("echo hello") ## not sinked/captured hello > sink() >

Re: [R-pkg-devel] Saving output of check()

2018-04-11 Thread Georgi Boshnakov
] Sent: 11 April 2018 19:05 To: List r-package-devel Subject: [R-pkg-devel] Saving output of check() Hi, In trying to test that an upgrade to my optimx package does not break other packages, I wanted to loop over a list of all such packages in alldep, with nall the length of this list. cat("

[R-pkg-devel] Saving output of check()

2018-04-11 Thread J C Nash
Hi, In trying to test that an upgrade to my optimx package does not break other packages, I wanted to loop over a list of all such packages in alldep, with nall the length of this list. cat("Check the dependent packages\n") for (ii in 1:nall){ cpkg <- alldep[ii] dd <-