Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nomnoml with roxygen #32

Open
lschneiderbauer opened this issue Jun 14, 2024 · 0 comments
Open

nomnoml with roxygen #32

lschneiderbauer opened this issue Jun 14, 2024 · 0 comments

Comments

@lschneiderbauer
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant