Hi,
> 1e10+5i
[1] 1e+10+0e+00i
> Im(1e10+5i)
[1] 5
maybe little better...
--- R-3.5.1.orig/src/main/complex.c2018-03-26 07:02:25.0 +0900
+++ R-3.5.1/src/main/complex.c2018-07-10 12:50:42.523874767 +0900
@@ -381,6 +381,7 @@
r->i = fround(pow10 * x->i, digits)/pow10;
} el
I wonder if get(data(foo, package="myPackage")) could be rewritten as
myPackage::foo. The latter will be a little more rigorous, because
data(foo) simply returns a character string "foo", so you are
essentially calling get ("foo"), and the default get(, inherits =
FALSE) may cause you trouble somet
Dear Duncan,
Was close to giving up to use the parameterized rmarkown as vignettes.
But your suggestions to use quote and eval, as well as to use the
package parameter in data
made it work, with all devtools::install,check,build and
build_vignettes as well as with R CMD ... etc.
But most importan
On 09/07/2018 3:24 PM, Witold E Wolski wrote:
Dear Yihui,
Thank you for the valuable questions.
sample_analysis is a "tibble" while
configuration is an "R6" class.
But I also have parametrized reports where I pass R reference classes
as arguments.
This is the Rmd yaml params part corresponding
Dear Yihui,
Thank you for the valuable questions.
sample_analysis is a "tibble" while
configuration is an "R6" class.
But I also have parametrized reports where I pass R reference classes
as arguments.
This is the Rmd yaml params part corresponding to the error message.
params:
configuration:
On 09/07/2018 12:24 PM, Yihui Xie wrote:
So far you haven't provided a reproducible example yet. I wonder what
exactly the object `sample_analysis` is. Sounds like it is an
environment. If that is the case, devtools::build_vignettes() will
tangle (for the meaning of "tangle", see ?tools::buildVig
So far you haven't provided a reproducible example yet. I wonder what
exactly the object `sample_analysis` is. Sounds like it is an
environment. If that is the case, devtools::build_vignettes() will
tangle (for the meaning of "tangle", see ?tools::buildVignette) your
vignette into an invalid R scri
On 09/07/2018 8:49 AM, Witold E Wolski wrote:
Dear Duncan,
Following your advice (Thank you for it) I did include into the vignettes
params:
configuration: !r get(data(sample_analysis))
data: !r get(data(skylineconfig))
And everything seemed (see below) to work fine.
devtools::build_vigne
Dear Duncan,
Following your advice (Thank you for it) I did include into the vignettes
params:
configuration: !r get(data(sample_analysis))
data: !r get(data(skylineconfig))
And everything seemed (see below) to work fine.
devtools::build_vignettes() builds the vignettes.
Runs with NO error.