Displaying 20 results from an estimated 10000 matches similar to: "R CMD build fails with try(stop()) in vignette"
2007 Jul 18
1
possible bug R CMD check: No space(s) allowed after \VignetteDepends{}
R CMD check gives an error when a vignette entry %\VignetteDepends{} has any
extra space at the end.
Maybe this is by design, but I found it confusing.
Changing the function "vignetteMetaRE" in tools package could solve the
problem. I.e.
vignetteMetaRE <- function(tag)
paste("[[:space:]]*%+[[:space:]]*\\\\Vignette", tag,"\\{([^}]*)\\}", sep
= "")
2020 Oct 08
1
Coercion function does not work for the ALTREP object
Hi Gabriel, here is a simple package for reproducing the problem.
https://github.com/Jiefei-Wang/testPkg
Best,
Jiefei
On Thu, Oct 8, 2020 at 5:04 AM Gabriel Becker <gabembecker at gmail.com> wrote:
> Jiefei,
>
> Where does the code for your altrep class live?
>
> Thanks,
> ~G
>
> On Wed, Oct 7, 2020 at 4:25 AM Jiefei Wang <szwjf08 at gmail.com> wrote:
>
2003 Sep 28
1
infinite recursion during package installation with methods, setAs
I ran into a problem recently trying to update a package which uses S4
methods using a recent beta of R. I think I can reproduce it with a
simple example. I have package called `testpkg' in directory testpkg/.
In the R/ subdirectory of testpkg/ I have a file called testpkg.R which
contains the following two lines:
setClass("testpkg", representation(pts = "list"))
2019 Jan 04
2
Compiler + stopifnot bug
Thanks for the reports. Will look into it soon and report back.
Luke
Sent from my iPhone
> On Jan 3, 2019, at 2:15 PM, Martin Morgan <mtmorgan.bioc at gmail.com> wrote:
>
> For what it's worth this also introduced
>
>> df = data.frame(v = package_version("1.2"))
>> rbind(df, df)$v
> [[1]]
> [1] 1 2
>
> [[2]]
> [1] 1 2
2012 Mar 21
2
enableJIT() prohibits usual R debugging
Hi,
Browser doesn't work properly with the compiler enabled. It might be
intended behavior, but it's not documented.
compiler::enableJIT(1)
foo <- function(){
browser()
cat("here\n")
}
Browser doesn't stop, and I am getting:
> foo()
Called from: foo()
Browse[1]> here
>
Thanks,
Vitalie.
> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform:
2012 Mar 19
1
enableJIT(3) with Primitives
I'm not sure if this is a bug or expected behavior, but I don't see
anything in the documentation that explains it, so I thought I'd
mention it:
~ michaelweylandt$ R -q --vanilla
library(compiler)
enableJIT(3)
`+` # Throws an error
`+` # Throws a warning
`+` # Prints the primitive as expected
sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: i386-apple-darwin9.8.0/i386
2019 Mar 03
2
bug: sample( x, size, replace = TRUE, prob= skewed.probs) produces uniform sample
When `length( skewed.probs ) > 200' uniform samples are generated in R-devel.
R-3.5.1 behaves as expected.
`epsilon` can be a lot bigger than illustrated and still the uniform distribution is produced.
Chuck
> set.seed(123)
>
> epsilon <- 1e-10
>
> ## uniform to 200 then small
> p200 <- prop.table( rep( c(1, epsilon), c(200, 999-200)))
> ## uniform to 201
2009 Jan 09
1
snow and different R versions
Dear Luke and others,
I have many R versions on my machine and want to start a particular
one when snow builds its cluster. (The same version I start snow
from.) It seems that everything is set up correctly in
defaultClusterOptions:
> mget(ls(defaultClusterOptions), defaultClusterOptions)
$homogeneous
[1] TRUE
$manual
[1] FALSE
$master
nodename
"maya.unil.ch"
$outfile
[1]
2020 Sep 11
4
Garbage collection of seemingly PROTECTed pairlist
I want to write an R function using R's C interface that takes a 2-column
matrix of increasing, non-overlapping integer intervals and returns a list
with those intervals plus some added intervals, such that there are no
gaps. For example, it should take the matrix rbind(c(5L, 6L), c(7L, 10L),
c(20L, 30L)) and return list(c(5L, 6L), c(7L, 10L), c(11L, 19L), c(20L,
30L)). Because the output is
2007 Mar 23
1
can't load just saved R object "ReadItem: unknown type 65"
I have run into a problem loading a just saved R object using R-devel. I
have been saving and loading this particular type of R object for a long
while and never ran into this problem. I save, then immediately reload
(to test save) and get "ReadItem: unnknown type 65".
This error is reproducible after logout from server and restart of emacs
and R.
Below is my output and
2007 Mar 23
1
can't load just saved R object "ReadItem: unknown type 65"
I have run into a problem loading a just saved R object using R-devel. I
have been saving and loading this particular type of R object for a long
while and never ran into this problem. I save, then immediately reload
(to test save) and get "ReadItem: unnknown type 65".
This error is reproducible after logout from server and restart of emacs
and R.
Below is my output and
2011 Feb 03
1
bug in codetools/R CMD check?
Hi Mr Tierney,
I have noticed an error message from R 1.12.x's CMD check for a while (apparently prof Ripley completely rewrote CMD check in R 1.12+)
e.g.:
http://bioconductor.org/checkResults/2.7/bioc-LATEST/snpMatrix/lamb2-checksrc.html
----------------
* checking R code for possible problems ... NOTE
Warning: non-unique value when setting 'row.names': ?new?
Error in
2007 Sep 20
1
Sweave vignettes and bitmap on windows
During vignette generation on Windows, Sweave seems to clean up before
all graphics files are completely processed. For instance, if tmp.Rnw
is:
\documentclass[12pt]{article}
\begin{document}
<<>>=
bitmap("afile.png")
plot(1:100)
dev.off()
@
\end{document}
Then:
C:\R\tmp>R CMD Sweave tmp.Rnw
Writing to file tmp.tex
Processing code chunks ...
1 : echo term verbatim
2020 Jan 24
3
R package builder silently continues after unclosed brace
If you start a function in one file but don't close it, the package
will still build if you manage to close it in a later file. Like so:
a.R
b.R
c.R
a.R:
function_a <- function(){
print("this is function_a")
}
b.R:
function_b <- function(){
print("unclosed function_b")
# no closing }
c.R:
function_c <- function(){
print("function_c will be part of
2024 Oct 25
1
Could .Primitive("[") stop forcing R_Visible = TRUE?
? Fri, 25 Oct 2024 08:39:39 -0400
Duncan Murdoch <murdoch.duncan at gmail.com> ?????:
> Surely you or they should be the ones to run the test across all of
> CRAN?
That's fair. The question is, is there a fundamental reason I
overlooked to deny such a change? Except for positioning and
whitespace, the line has been in names.c since SVN revision 2. The
one regression test touched
2014 Jun 14
1
Should a package that indirectly Suggests: a vignette engine pass R CMD check?
A package uses VignetteEngine: knitr; the package itself does not Suggests:
knitr, but it Suggests: BiocStyle which in turn Suggests: knitr. Nonetheless, R
CMD check fails indicating that a package required for checking is not declared.
Is it really the intention that the original package duplicate Suggests: knitr?
This is only with a recent R. In detail, with
$ Rdev --version|head -3
R Under
2017 Dec 19
1
abort
FYI. G?bor
? R --vanilla -q
> sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
locale:
[1]
2018 Mar 10
1
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
Great.
For the record of this thread, I've submitted patch PR17391
(https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17391). I've
patched it against the latest R-devel on the SVN, passes 'make
check-all', and I've verified it works with the above tests.
/Henrik
On Fri, Mar 9, 2018 at 4:37 AM, <luke-tierney at uiowa.edu> wrote:
> I'm happy to look at a
2015 Feb 03
2
Seed in 'parallel' vignette
Hi,
This is most likely only a minor technicality, but I saw the
following: On page 6 of the 'parallel' vignette
(http://stat.ethz.ch/R-manual/R-devel/library/parallel/doc/parallel.pdf),
the random-number generator "L'Ecuyer-CMRG" is said to have seed
"(x_n, x_{n-1}, x_{n-2}, y_n, y_{n-1}, y_{n-2})". However, in L'Ecuyer
et al. (2002), the seed is given with
2007 Aug 16
1
methods and try()
Hi all, I'm having a problem with some sort of interaction with try()
and methods, I think.
The setup is as follows, I have an S4 class that holds an environment
and I would like to evaluate the right hand side of a function inside
that environment. No problem there.
However, if the formula involves a symbol that doesn't exist, which
may or may not happen, it fails as it should and