Displaying 15 results from an estimated 15 matches for "dontshow".
2015 Feb 09
2
R CMD check: Uses the superseded package: ‘doSNOW’
...llowing example in an .Rd file:
> #ifdef windows
> if (require(doSNOW)) {
> registerDoSNOW(cl <- makeCluster(2, type = "SOCK"))
> ci(roc2, method="bootstrap", parallel=TRUE)
> \dontrun{ci(roc2, method="bootstrap", parallel=TRUE)}
> \dontshow{ci(roc2, method="bootstrap", parallel=TRUE, boot.n=20)}
> stopCluster(cl)
> }
> #endif
> #ifdef unix
> if (require(doMC)) {
> registerDoMC(2)
> \dontrun{ci(roc2, method="bootstrap", parallel=TRUE)}
> \dontshow{ci(roc2, method="bootstr...
2005 Oct 03
3
Problem building/checking library that requires input from user
Hi all,
I've got a package i've written that i am trying to check, build, and
install. This is my 1st time doing this, so apologies in advance... ;)
The package that I've written requires input from the user. It needs to know
sample sizes and then runs some calcs, (sample sizes are just integers), and
it gets this info from the user as
num_reps <- readline("How many reps
2015 Feb 10
1
R CMD check: Uses the superseded package: ‘doSNOW’
...def windows
>>> if (require(doSNOW)) {
>>> registerDoSNOW(cl <- makeCluster(2, type = "SOCK"))
>>> ci(roc2, method="bootstrap", parallel=TRUE)
>>> \dontrun{ci(roc2, method="bootstrap", parallel=TRUE)}
>>> \dontshow{ci(roc2, method="bootstrap", parallel=TRUE, boot.n=20)}
>>> stopCluster(cl)
>>> }
>>> #endif
>>> #ifdef unix
>>> if (require(doMC)) {
>>> registerDoMC(2)
>>> \dontrun{ci(roc2, method="bootstrap", parallel...
2018 Nov 12
2
Better cleanup of example session during check
...getting CRAN errors due to the rawConnection not being closed in examples
> cleanEx()
Error: connections left open:
content (rawConnection)
and the only way to remove this is by removing the objects and calling gc() as part of the example code. While it is possible to hide all that inside a \dontshow{} block, it appears to me that it would be better if cleanEx() did a cleaning of the environment along with a single gc call prior to performing any checks on the end state. Is this something you would consider?
best
Thomas Lin Pedersen
[[alternative HTML version deleted]]
2005 Oct 03
0
Problem building/checking library that requires input fro m user
...: r-help at stat.math.ethz.ch
> Subject: RE: [R] Problem building/checking library that requires input
> from user
>
>
> Thanks, Dr Warnes & Prof Ripley...
>
> However, upon following the instructions below, I'm getting
> syntax errors on
> the line that has \dontshow...below is my code...I get the
> same error if i
> omit the first block and just try \dontrun...
>
> \dontshow{
> num_reps <- 10
> }
>
> \dontrun{
> num_reps <- readline(""How many reps do you have... ")
> num_reps <- as.integer(num_reps)
&g...
2015 Feb 10
0
R CMD check: Uses the superseded package: ‘doSNOW’
...:
> > #ifdef windows
> > if (require(doSNOW)) {
> > registerDoSNOW(cl <- makeCluster(2, type = "SOCK"))
> > ci(roc2, method="bootstrap", parallel=TRUE)
> > \dontrun{ci(roc2, method="bootstrap", parallel=TRUE)}
> > \dontshow{ci(roc2, method="bootstrap", parallel=TRUE, boot.n=20)}
> > stopCluster(cl)
> > }
> > #endif
> > #ifdef unix
> > if (require(doMC)) {
> > registerDoMC(2)
> > \dontrun{ci(roc2, method="bootstrap", parallel=TRUE)}
> >...
2018 Nov 12
0
Better cleanup of example session during check
...he rawConnection not being closed in examples
>
>> cleanEx()
> Error: connections left open:
> content (rawConnection)
>
> and the only way to remove this is by removing the objects and calling gc() as part of the example code. While it is possible to hide all that inside a \dontshow{} block, it appears to me that it would be better if cleanEx() did a cleaning of the environment along with a single gc call prior to performing any checks on the end state. Is this something you would consider?
Wouldn't it be possible for you to add a way to explicitly request the
connection...
2006 May 18
1
Trellis equivalent of par(ask=TRUE)?
...functionality
for print.trellis in fact, not for plot.
par(ask=TRUE) does not influence print.trellis.
trellis.par.get() does not have an equivalent for par(ask=).
Nor does gpar() or any other method in Grid that I could find.
I have tried to help myself (in an admittedly crude way) by putting
\dontshow{plot(1,type="n") # make R stop and ask}
before each Lattice plot call in my .Rd file.
But that does not work either.
It leads to R CMD check output as follows:
> par(ask=TRUE)
> ## Don't show:
> plot(1,type="n") # make R stop and ask
Press Return for next...
2007 Aug 23
0
indexing and regression testing
...s a pleasure to meet you at Iowa State University. Two days ago I submitted two experimental packages to CRAN (hope it will be there soon):
rindex: quick indexing of large objects (currently only character, see ?index)
regtest: some first support for automated regression testing (heavily used in \dontshow{} section of ?index)
With rindex you can for example
i <- index(rownames(someDataFrame))
# then this
someDataFrame[match(fewRowNames, i),]
# is much faster than that
someDataFrame[match(fewRowNames, rownames(someDataFrame)),]
# which still is much faster than
someDataFrame[fewRowNames, ]
# th...
2012 Dec 17
2
Suggestion: 'method' slot for format.ftable()
Dear R-developers,
I would like to suggest a 'method' slot for format.ftable() (see an adjusted
'format.ftable()' below, taken from the source of R-2.15.2).
At the moment, format.ftable() contains several empty cells due to the way the
row and column labels are printed. This creates problems (= unwanted empty
columns/rows) when converting an ftable to a LaTeX table; see an
2007 Nov 02
0
applying duplicated, unique and match to lists?
...'usage' for other objects documented here.
#! \arguments{
#! \item{x}{ a fully serializable R object }
#! }
#! \value{
#! character scalar
#! }
#! \seealso{ \code{\link{digest}}, \code{\link[base]{serialize}} }
#! \examples{
#! md5(pi)
#! sha1(pi)
#! crc32(pi)
#! id1(pi)
#!
#! dontshow{
#! if (!identical(paste(serialize(list(str="a string", double=pi), connection=NULL)[-(1:14)], collapse=""), id1(list(str="a string", double=pi))))
#! stop("something has changed in serialization, please fix the internal .Calls in function 'id1',...
2024 Apr 24
0
[Rd] R 4.4.0 is released
...gt;[*] no longer sets wrong "balanced" attribute, fixing
PR#18681 thanks to Mikael Jagan.
* str(<classed-call>) now deparses the call as expected, fixing
PR#18684, reported by Dave Slager.
* In Rd examples, code following the closing brace of a \dontrun,
\dontshow or \donttest tag on the same line is no longer skipped
when R CMD check runs the examples.
* as.data.frame(matrix(*, ncol=0)) now gets valid names() and
colnames(); reported by Davis Vaughan on the R-devel list.
* Internal Mathlib function stirlerr(n) is now almost fully...
2024 Apr 24
0
[Rd] R 4.4.0 is released
...gt;[*] no longer sets wrong "balanced" attribute, fixing
PR#18681 thanks to Mikael Jagan.
* str(<classed-call>) now deparses the call as expected, fixing
PR#18684, reported by Dave Slager.
* In Rd examples, code following the closing brace of a \dontrun,
\dontshow or \donttest tag on the same line is no longer skipped
when R CMD check runs the examples.
* as.data.frame(matrix(*, ncol=0)) now gets valid names() and
colnames(); reported by Davis Vaughan on the R-devel list.
* Internal Mathlib function stirlerr(n) is now almost fully...
2003 Oct 08
1
R-1.8.0 is released
...o Rdconv now produces more informative output from the special
\method{GENERIC}{CLASS} markup for indicating the usage of S3
methods, providing the CLASS info in a comment.
o \dontrun sections are now marked within comments in the
user-readable versions of the converted help pages.
o \dontshow is now the preferred name for \testonly.
INSTALLATION CHANGES
o The zlib code in the sources is used unless the external
version found is at least version 1.1.4 (up from 1.1.3).
o The regression checks now have to be passed exactly, except
those depending on recommended packages (whic...
2003 Oct 08
1
R-1.8.0 is released
...o Rdconv now produces more informative output from the special
\method{GENERIC}{CLASS} markup for indicating the usage of S3
methods, providing the CLASS info in a comment.
o \dontrun sections are now marked within comments in the
user-readable versions of the converted help pages.
o \dontshow is now the preferred name for \testonly.
INSTALLATION CHANGES
o The zlib code in the sources is used unless the external
version found is at least version 1.1.4 (up from 1.1.3).
o The regression checks now have to be passed exactly, except
those depending on recommended packages (whic...