Skip to content

nomnoml with roxygen #32

@lschneiderbauer

Description

@lschneiderbauer

Hello!

I attempted to use nomnoml markdown commands in roxygen documentation, e.g. like this:

##' ...
##' @details
##' ## Graphical representation
##'
##' ```{nomnoml, testnomnoml, echo=FALSE}
##' #direction: down
##' #padding: 8
##' #spacing: 30
##'
##' [random_thing | another_random_thing]
##' ```

This almost worked:

  • The generated .Rmd files use the wrong figure link:
\subsection{Graphical representation}{

\figure{man/figures/testnomnoml-1.png}
}

But it should be

\subsection{Graphical representation}{

\figure{testnomnoml-1.png}
}

since according to the R documentation they should be relative to the path "man/figures/".

  • The generated figure's resolution is so low that the picture is barely recognizable. How can I change that?
  • The figure seems to always be in the same format, no matter the actual content, so there sometimes is a lot of whitespace. Is it possible to crop the picture, so only the relevant pixels are included?

Is nomnoml intended to be used with roxygen? Or should I rather not attempt that at all?
Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions