@MikeMahoney218@fosstodon.org
@MikeMahoney218@fosstodon.org avatar

MikeMahoney218

@MikeMahoney218@fosstodon.org

Researcher, environmental science and technology. Community coordinator @ESIPFed. Ex: open source intern https://fosstodon.org/@Posit (nee RStudio) \
#rstats, ML, Boston and spatial data. \
Boosts imply causation.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

AGU has funding to help "faculty from typically under-resourced institutions, such as Emerging Research Institutions (ERIs), Minority Serving Institutions (MSIs), and community colleges (2YCs)" attend this year's Fall meeting!

https://connect.agu.org/education/honors/nsf-grant
#GISChat

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

before | after

After: Mike Mahoney, PhD

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@terence thank you 😄😄

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

Blog post about our new preprint: what do the new FIA allometrics mean for existing model-based forest carbon accounting projects?

https://www.mm218.dev/posts/2024-05-08-nsvb/

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

lazyweb: I've got a categorical raster (stars or terra) with 5 classes. What's the fastest way to turn that into 5 layers of booleans, one per class?

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

I'm very happy to share I won an Outstanding Student Presentation Award at AGU last year!

My slides for "Consistent Workflows for Assessing Model Performance" are available now as part of the winner's gallery, alongside a recording I can't bear to watch 😆

https://agu23.ipostersessions.com/?s=4E-2F-D2-F8-2E-A8-0B-7B-EA-C1-05-1E-2F-C6-27-22

yutannihilation, to random

Some days ago, the CRAN check with R-devel started to raise "Found non-API calls to R" NOTE. I'm not sure if they are serious on disallowing these not-so-minor APIs, but what should I do? Do you take some action or just wait?

For example, rlang package now has these NOTE:

File ‘rlang/libs/rlang.so’:
Found non-API calls to R: ‘R_ClosureExpr’, ‘R_PromiseExpr’,
‘SETLENGTH’, ‘SET_ENCLOS’, ‘SET_ENVFLAGS’, ‘SET_TRUELENGTH’

https://cran.r-project.org/web/checks/check_results_rlang.html

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@coolbutuseless @yutannihilation yeah, NOTEs won't trigger a CRAN email or any action (* until/unless they get upgraded to a warning or error), but will cause the automated checks to fail for incoming packages (sending you to human review and then probably to resubmission)

gvwilson, to random
@gvwilson@mastodon.social avatar

This is - what? still trying to wrap my head around it https://15r10nk.github.io/inline-snapshot/

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@gvwilson I use snapshot testing pretty extensively to make sure things like print methods, warnings/errors, plots/graphics are stable, or complex objects are identical across versions. In my mind, it's a fallback for when it's hard to express what the "expected" output should be -- their example using multiplication is exactly when not to use these, I think.

I think the testthat docs do a decent job enumerating when these are useful --
https://testthat.r-lib.org/articles/snapshotting.html

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

What are some #Rstats packages that take forever to compile?

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@brodriguesco I think s2 takes a while, if memory serves

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

the top of the rsi readme is both one of the stupidest and my favorite jokes I've put in any public project

https://github.com/Permian-Global-Research/rsi

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

my favorite stupid joke from any project is our lab's API to access shared data, called Labrador...

because it's a Retriever for data from the Lab

it also auto-generates documentation about the available data sets... or as we call it, dogumentation

the service to generate it is called "autodog"

my coworkers hate this joke

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@maelle hahahaha

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

poll: if you use git stash, do you use git stash pop or git stash apply to retrieve your code from the stash?

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@b0rk I did not realize a failed pop could make you lose work! New fear unlocked

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

man, I really don't understand why anyone would use Earth Engine for anything they want to exist long-term

terence, (edited ) to random
@terence@fosstodon.org avatar

Accidental #rstats aRt with #rayshader. I say accidental, but I believe it is some sort of bug.

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@terence very pleasantly origami though

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

People who self-host anything: where does your server live?

I'm looking for alternatives to AWS Lightsail for hosting a small Linux server and am curious what's worked for other people.

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@scheidegger that's my main hang-up with DO; looks like AWS is just flat out cheaper? wasn't sure if there were other things going for DO

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

while I think guide_custom() in ggplot2 3.5.0 is pretty cool, I've found a tiny issue with the example the team used to illustrate its use 😛

if you want a north arrow that actually points north, check out
ggspatial::annotation_north_arrow(which_north = "true")

https://github.com/paleolimbot/ggspatial/

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

today I am grateful for software developers who provide citation info (especially bibtex) for their not-obviously-research-oriented tools

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

hey #rstats -- I seem to recall some survey a while ago about how people found packages, be it via Google or GitHub or CRAN task views or so on. Am I making this up, does anyone have the link?

gvwilson, to random
@gvwilson@mastodon.social avatar

I am converting a LaTeX document into Microsoft Word because that's the only format this particular IEEE journal will accept. But hey, at least… um… nope, I got nothing.

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@gvwilson not sure if it will be more or less painful for this, but I personally found pandoc handled maybe 90% of the conversion for me in a single cli call

(Tables, figures, captions were the challenges iirc)

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

hey #quarto , does anyone have an example of using the new custom cross-references to label tables? I think my YAML makes sense:

crossref:
custom:

  • kind: float
    key: supptbl
    reference-prefix: Table S

But neither
#| label: supptbl-something

nor
::: {#supptbl-something}

seem to actually work

https://quarto.org/docs/authoring/cross-references-custom.html

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@scheidegger @cscheid
the issue is with:
#| results: asis

I think I need this, because I need Quarto to detect references inside the table and turn them into citations. I could find the StackOverflow that told me I needed this again, if it's helpful, but not sure if there's a better way to go about that

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@scheidegger @cscheid

reprex that fails:


crossref:
custom:

  • kind: float
    key: supptbl
    reference-prefix: Table S
    format: html

::: {#supptbl-1}

#| results: asis  
knitr::kable(head(iris, 1))  

:::

See @supptbl

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@scheidegger @cscheid

Unfortunately no such luck:


crossref:
custom:

  • kind: float
    key: supptbl
    reference-prefix: Table S
    format: html

::: {#supptbl-1}

#| results: asis  
#| tbl-cap: This is a caption for the table.  
#| supptbl-cap: This is a caption for the table.  
knitr::kable(head(iris, 1))  

:::

See @supptbl

MikeMahoney218,
@MikeMahoney218@fosstodon.org avatar

@cscheid @scheidegger ahh, thank you! working on my end too, now. Thank you so much for the help here 😄

I know this isn't really useful feedback, but I don't think I ever would have gotten here from the documentation. Is it documented that the caption can't be set in the code chunk?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • Leos
  • provamag3
  • cisconetworking
  • lostlight
  • All magazines