Displaying 20 results from an estimated 2000 matches similar to: "Forking and adapting an R package"
2016 Jul 12
2
[R] Forking and adapting an R package
On 12/07/2016 7:28 AM, timo at timogrossenbacher.ch wrote:
> Hello.
>
> I'm trying to adapt the package ?hexbin? to suit my needs. This is the first
> time I do this. I've read a bit through Hadley's ?R packages?, but now I'm
> pretty lost (from a workflow point of view). I am using RStudio and Hadley's
> devtools.
>
> So I forked the repo I want to
2016 Jul 13
0
[R] Forking and adapting an R package
> Duncan Murdoch <murdoch.duncan at gmail.com> hat am 12. Juli 2016 um 19:38
> geschrieben:
>
> On 12/07/2016 7:28 AM, timo at timogrossenbacher.ch wrote:
> > Hello.
> >
> > I'm trying to adapt the package ?hexbin? to suit my needs. This is the first
> > time I do this. I've read a bit through Hadley's ?R packages?, but now I'm
> >
2018 Feb 19
4
Include pre-existing PDF files as vignettes in an R package?
Greetings. The group that I work with has just started using the approach
outlined in Karl Broman's handy primer:
http://kbroman.org/pkg_primer/pages/vignettes.html
to create vignettes for a couple of R packages.
This works fine as long as we have a current Rmd version of the vignette. But
we have some old PDF documents that we'd like to include as vignettes as well.
I'd like
2018 Sep 14
1
Problem building rmarkdown vignettes with child
Dear Community,
I have an Rmarkdown vignette with optional child documents.
Since all markdown files in the vingette folder are build when
executing R CMD build
I did place the child documents in
/inst/ParametrizedReportChid/
so they are excluded from the build.
I do reference them from the markdown file in the vignette folder by:
```{r referencingChildDocument}
child_docs <-
2012 Mar 25
1
multiple hexbin plots with varying greatest densities
Greetings:
I have multiple hexbin plots with varying greatest densities.
Right now, the data on each plot varies from 1-256 levels of density. The problem with that is that in Plot A the data are more scattered across a 2 x 2 grid whereas in Plot B the data are more concentrated in fewer cells. Hence, Plot A has a few very dense grid cells and plot B has nothing as dense as plot A.
(In Plot A
2018 Jul 09
3
Parametrized Vignettest in R packages
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 script. Environments cannot be represented
via dput(), so knitr's purl() (eventually
2018 Jul 09
2
Parametrized Vignettest in R packages
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 to the error message.
>
>
2018 Feb 19
2
Include pre-existing PDF files as vignettes in an R package?
Thanks, Duncan. The files in question are Emacs Org-mode files, and I
think these are more or less isomorphic to Rmd files, but I haven't
used Org-mode in a long time, so I think the mapping (Org-mode ==>
Rmd) would be painful.
-- Mike
On Mon, Feb 19, 2018 at 1:20 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 18/02/2018 9:06 PM, Michael Hannon wrote:
>>
2018 Nov 07
1
Problem building rmarkdown vignettes with child
Hello,
This is a problem I posted about already some time ago:
https://stat.ethz.ch/pipermail/r-devel/2018-September/076786.html
Finally, I did had some time to create a minimal package to reproduce
the problem that vignettes with child can not be build.
https://github.com/wolski/RmarkdownVignetteProblem
The problem basically is that while all the vignettes can be build by running
2018 Feb 19
0
Include pre-existing PDF files as vignettes in an R package?
On 18/02/2018 9:06 PM, Michael Hannon wrote:
> Greetings. The group that I work with has just started using the approach
> outlined in Karl Broman's handy primer:
>
> http://kbroman.org/pkg_primer/pages/vignettes.html
>
> to create vignettes for a couple of R packages.
>
> This works fine as long as we have a current Rmd version of the vignette. But
> we
2018 Feb 19
2
Include pre-existing PDF files as vignettes in an R package?
> On 19 Feb 2018, at 12:25, Duncan Murdoch <murdoch.duncan at gmail.com <mailto:murdoch.duncan at gmail.com>> wrote:
>
> On 19/02/2018 5:47 AM, Michael Hannon wrote:
>> Thanks, Duncan. The files in question are Emacs Org-mode files, and I
>> think these are more or less isomorphic to Rmd files, but I haven't
>> used Org-mode in a long time, so I think
2004 Nov 09
1
gplot.hexbin - how to set figure margin.
Hi,
Would like to use to the hexbin package to plot a 2D hist - because it looks really _cool_.
My problem is related to drawing a pdf hexbin graphic in series of other graphics.
All other figures have a par(mar=c(3.2,3.2,1,1)). So the gplot.hexbin figure in this series looks a little alienated?
Was trying a to specify the _mar_ using par, viewport, hexViewport etc. a little.
My question. How
2018 Jul 09
2
Parametrized Vignettest in R packages
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. By this the .Rmd file, html file and corresponding
.R files is being placed into the inst/doc
2005 Mar 31
1
hexbin and grid - input data values as coordinates
Dear all,
I am trying to use hexbin and read the very interesting article on grid
( http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Murrell.pdf ) and am hoping for some advice from more experienced users of hexbin.
I am trying to visualise a data and fit a straight line trough it. For
example, here is how I would do it in the usual way
# simulate data
x <- rnorm(1000)
y <-
2018 Feb 19
0
Include pre-existing PDF files as vignettes in an R package?
Hi Mike,
Did you read the relevant section of the official "Writing R
Extensions" manual? If so, what about the instructions provided there
do you find lacking?
Best,
Ista
On Sun, Feb 18, 2018 at 9:06 PM, Michael Hannon
<jmhannon.ucdavis at gmail.com> wrote:
> Greetings. The group that I work with has just started using the approach
> outlined in Karl Broman's handy
2012 Mar 22
3
How to export hexbin tables?
Hi all!
I'm trying to save an output of the HEXBIN process... is so much data
(105k), and I need to export to an ASCII file.
I tried to use:
write.table() ----> Error in as.data.frame.default(x[[i]], optional = TRUE)
:
cannot coerce class 'structure("hexbin", package = "hexbin")' into a
data.frame
cat() ---> Error in cat(list(...), file, sep, fill,
2007 Oct 19
1
Using grid graphics (hexbin) in pairs() plot problem
Hi,
I am trying to create a plot with pairs()
using a gplot.hexbin() for each pair.
For pairs I can provide a custom upperPanel function:
pairs(iris[1:4], panel=mypanel)
and mypanel() calls plot.hexbin():
library(hexbin) # Bioconductor
mypanel <- function(x, ...){
hb <- hexbin(x)
plot(hb)
}
The problem is that gplot.hexbin() is based
on the
2018 Feb 19
0
Include pre-existing PDF files as vignettes in an R package?
On 19/02/2018 5:47 AM, Michael Hannon wrote:
> Thanks, Duncan. The files in question are Emacs Org-mode files, and I
> think these are more or less isomorphic to Rmd files, but I haven't
> used Org-mode in a long time, so I think the mapping (Org-mode ==>
> Rmd) would be painful.
If they aren't LaTeX then they won't be able to masquerade as Sweave
files, so things are
2017 Sep 07
3
post_processor in rmarkdown not working
Dear Duncan,
Thanks for chiming in. Could you explain how you set debug() on
post_processor()? I've tried adding debug(post_processor) to rsos_article()
or adding debug(post_processor) when after post_processor was defined in
the debugger. Neither work for me.
All supporting files are available within the package. The code below
should be reproducible on your machine.
2009 Jun 28
1
help with hexbin package
Dear All
i am trying to figure out the use of hexbin function in the hexbin package
--can any one send me a working example of the same
The > example(hexbin) ---option is of not much use
Thanks
Kind regards
Ravi
[[alternative HTML version deleted]]