Sharon Machlis · @smach
2309 followers · 263 posts · Server masto.machlis.com

The {document} 📦 creates roxygen2-style documentation for functions that aren't (yet) part of an R package.

In the screenshot below, top left shows a test.R file with a function called test_function , including roxygen definitions. After running

d <- document("test.R")

I can use

?test_function

to read the help file as if it were part of a package.

By Andreas Dominik Cullmann

cran.r-project.org/web/package

@rstats

#rstats #roxygen #roxygen2

Last updated 1 year ago

Ellis Hughes · @ellis_hughes
32 followers · 24 posts · Server fosstodon.org

Document your data packages! Join @OSPpatrick and I for 154 where we make an package to serve @f1 championships data!

We go through writing out your tags and creating a vignette as well!

Bit.ly/TidyX_Ep154

#tidyx #rstats #roxygen

Last updated 1 year ago

sanya ΘΔ& · @sanya
31 followers · 1768 posts · Server dariox.club

RT @rajiroxygen
day 1

#roxygen

Last updated 2 years ago

Patrick Anker :neovim: 🫔 · @psanker
111 followers · 671 posts · Server hachyderm.io

For the crew:

Is there a canonical way of communicating object types in docstrings that isn't just flavor text for each element? I have been using something similar to this, inspired by jsDoc

#rstats #roxygen

Last updated 2 years ago

Ilja Kocken · @japhir
88 followers · 25 posts · Server fediscience.org

Recently ran into a disturbing result: I asked it to translate a function written by Mathieu Daëron (github.com/mdaeron/D47crunch) to , using the and a . I had done this manually for my github.com/isoverse/clumpedr/ and wanted to see how they would compare.

It returned my code literally, including TODO notes, comments, and skeleton. But it did not say where it got the code from, even when pressed. My R package is on under 3. Thoughts?

#gpl #github #roxygen #rpackage #tibble #tidyverse #r #python #chatgpt

Last updated 2 years ago