Hi Matthew,
see the notes on examples in function documentations here: https://r-pkgs.org/man.html#man-functions if you use the Roxygen setup (which I recommend) or the corresponding info in WRE: https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Writing-R-documentation-files Regards, Berry ________________________________ From: R-package-devel <r-package-devel-boun...@r-project.org> on behalf of csmatyi <csma...@protonmail.com> Sent: Tuesday, April 13, 2021 22:04 To: R-package-devel@r-project.org <R-package-devel@r-project.org> Subject: [R-pkg-devel] how to provide an example for my package when I want to generate a figure Hello all, I have a fairly simple package I want to make. It takes two dataframes and then creates a jpeg (a heat map) based on the info in the dataframes. I know how to put the code in the vignette. But as to how to make an example, I don't know that. Would I put the code in the R code for the heat map? How can I do this, it seems very foggy to me. Thanks, Matthew Sent with [ProtonMail](https://protonmail.com) Secure Email. [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel