MattCrumpLab, to random
@MattCrumpLab@fosstodon.org avatar

I might need to manipulate and synthesize midi in R, so I spent the afternoon trying to make various packages work. They are all wrappers for python stuff. It wasn't a cake walk, but I finally made an mp3 of the top gun theme song = declaring victory

https://homophony.quest/blog/32_1_30_24_R_synth/

Mehrad, to random
@Mehrad@fosstodon.org avatar

I was discussing with a colleague the other day that perhaps the best and indisputable random generator seed is the author' s own name.

The issue is R's set.seed() only accepts integer as random seed value. So I played around a little and finally managed to come up with a simple one-liner solution all using base R to use my own name as random seed.

I wrote a short blog post about it to explain my journey:

https://mehrad.ai/posts/20231022-use-string-as-random-seed-in-r/

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

I'm revisiting the problem of safe evaluation of untrusted R code.

That is: How could you easily run code from an untrusted source? How would you stop them from running "file.remove()" or worse?

I found the old shiny app I made to demo the idea.

Can you break out of the sandbox and make it run unsafe code? "rm()"? "file.remove()?

https://coolbutuseless.shinyapps.io/shiny-safe-eval/

teunbrand, to random
@teunbrand@fosstodon.org avatar

folks who switched from notebook/rmd/qmd oriented workflows to {targets}, how did you transition? Do you just precompute files with {targets} and then use these in your notebooks? Is rendering a notebook in itself a target? How do you do EDA now versus then?
I find it hard to adapt my analysis mindset to the targets framework

brodriguesco, to python
@brodriguesco@fosstodon.org avatar

Even though I think is the superior choice when it comes to data anything, I think I might work on a python edition of my book on reproducibility. Those notebooks hosted on Github without any requirements.txt or Dockerfiles need to stop!

Also, if I do this, I'll be using tidyverse-inspired packages exclusively: siuba, plotnine and Quarto. But there's nothing like {targets} in , and pkg dev isn't as polished either!

Drmowinckels, to webassembly
@Drmowinckels@fosstodon.org avatar

well, my first attempts at are not going great. How about y'all?

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

What are some packages that take forever to compile?

MattCrumpLab, to random
@MattCrumpLab@fosstodon.org avatar

{midiblender} is now up on my github.

It's the beginnings of an package for experimental mangling of files. TBH, it's my personal experimental hacky-code base wrapped in R package clothing. I'm messing with it constantly, and sharing in case others are interested.

Will it blend? 🤷‍♂️

https://www.crumplab.com/midiblender/

maelle, (edited ) to random French
@maelle@mastodon.social avatar

New post on the @rOpenSci blog:

What does it mean to maintain an 📦 ?

An attempt to define what package maintenance entails, with a few tips.

https://ropensci.org/blog/2023/02/07/what-does-it-mean-to-maintain-a-package/

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

New blog post: How to self-publish a technical book on Leanpub and Amazon using Quarto

https://www.brodrigues.co/blog/2023-06-29-book_quarto/

amoeba, to random
@amoeba@toot.cafe avatar

{arrow} 15.0.1 is now on CRAN! See https://cran.r-project.org/web/packages/arrow/index.html.

This release contains a couple of nice additions as well as some documentation and bug fixes.

🧵with highlights in replies...

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

{remedy} AddIns -> AlignEqual()

CarlisleRainey, (edited ) to Economics
@CarlisleRainey@sciences.social avatar

I have a theory with 5 hypotheses.

I pilot a study; only 3 of the 5 seem correct.

I preregister only these 3 and proceed as if I never considered the other 2.

I find strong support for all 3.

Is this good science (i.e., an appropriate use of preregistration)? Why or why not?

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

Work-in-progress: New JSON library

Early results on a microbenchmark look promising!

Fastest JSON parser for R?

Note: Benchmark is not be indicative of real-world use cases. Performance gap narrows on larger examples.

Output of code benchmarking new JSON parser. Results show new parser is faster than jsonlite and RcppSimdJson on this microbenchmark.

Drmowinckels, to random
@Drmowinckels@fosstodon.org avatar

I wrote down some notes and general thoughts from .

Its mostly for my own sake, but maybe others might enjoy it too :)

https://drmowinckels.io/blog/2023-09-26-positconf-2023/

@rladies_bot

jimgar, to random

Favourite resources for learning vim keybindings in RStudio and/or VSCode?

I’ve been programming for a few years now, but I still type like a distracted chimpanzee.

I know it’s worth learning to touch type. I feel like that’s a guaranteed win.

Vim is another story. I really don’t get it, at all. I’m a total noob. That said, I like learning from all types of resources, so long as the language used is clear for a beginner.

Any advice welcome 🙏🏻

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

TIL: someone once attempted refactoring R from C to C++

Project name: CXXR

https://www.cs.kent.ac.uk/projects/cxxr/

barneyharris, to Futurology
@barneyharris@sciences.social avatar

noob question about

If I'm looking to use Docker to assist with making my research reproducible then should I rely on both Dockerfiles and Dockerimages or one or the other? As I understand it, the Dockerfile specifies how the Docker image will be built but an image can contain the scripts, original data, and correctly versioned software / libraries etc. So why not just / always publish the image?

Medewitt, to python

Anyone ever used or or anything else to automatically download a tableau workbook from tableau public (like https://public.tableau.com/app/profile/ncdhhs.covid19data/viz/NCDHHS_COVID-19_DataDownload_Story_16220681778000/DataBehindtheDashboards for example)? My old tricks seem to be failing me

Mehrad, to datascience
@Mehrad@fosstodon.org avatar

I'm trying to integrate some public air quality data into my study. During a sanity check of the data I realized 3 of the measurement columns contain negative values! Does anyone have any idea if having negative value in such measurements is valid and how they should be interpreted?

Contacting the data manager is not as easy and might take me a week or two of emailing to get some answer. I wonder if folks here on fediverse have a quick answer.

klmr, to random
@klmr@mastodon.social avatar

WTF of the day:

_wurli, to python
@_wurli@fosstodon.org avatar

Currently learning as a long-time guy. Posting my thoughts as I go along.

R's {devtools} makes package development really nice:

  1. Write code
  2. Reload package with ctrl + shift + L
  3. Test the new code
  4. Go to (1).

I'm using for package development in Python, and I haven't found a workflow that feels half as nice as this. Am I missing something? Has anyone out found a system that does feel good to use?

More details on stackoverflow: https://stackoverflow.com/questions/77706005/best-workflow-for-python-package-development-in-vscode

sabrinaschalz, to conservative
@sabrinaschalz@fediscience.org avatar

I have a paper on crow behaviour under review that uses agent-based modelling in R to predict survival outcomes. One review is complete, but the editor emailed to ask for more reviewer recommendations because she is struggling to find willing reviewers.

Anyone fancing reviewing a lovely modelling paper about crows?

@academicchatter

ramikrispin, to github
@ramikrispin@mstdn.social avatar

(1/2) Deploy a Shinylive App ✨ to Github Pages tutorial 👇🏼

I created this tutorial a day after the announcement of the shinylive R version at the Posit conference, using a dev version of the shinylive and httpuv packages. It was on my TODO list for quite a while to update the tutorial with the stable version of the core packages. Thanks to a PR from Ronak Shah 🙏🏼, I updated the tutorial and the supporting Docker 🐳.

video/mp4

teunbrand, to random
@teunbrand@fosstodon.org avatar

I'm excited for the new ggplot2 version coming up that I helped out with. So I thought a fun game might be to post a plot every day and people can guess what the new thing is. No cheating by looking at the NEWS.md file!

Let's start with an easy one

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