Lisa DeBruine
@debruine.bsky.social
6.9K followers 350 following 300 posts
#rstats #PsyTeachR #PsySciAcc #OpenResearch #CodingClub #ManyFaces (overwhelmed by social media) 🏳️‍🌈 she/they
Posts Media Videos Starter Packs
debruine.bsky.social
devtools::install_github("debruine/reprex.lazyload")

reprex.lazyload::mydata # works
reprex.lazyload::myfunc() # fails

library(reprex.lazyload)
myfunc() # works
debruine.bsky.social
I'm having an #rdev problem using data in an r package inside a function when calling the function without loading the package. I made a reprex to demonstrate the problem (code in the next post) but I think it has something to do with lazyloading data.

mydata is a data table
myfunc() returns mydata
debruine.bsky.social
We're meeting tomorrow before the first class on Friday, so we'll check out some different options and see what they prefer. I'm pretty comfortable with the command line, and can see how that could be a more straightforward interface, so we'll definitely try that one out.
debruine.bsky.social
Thanks! Luckily, the RStudio cheat sheet got html versions recently.

Do you know if VScode is enough better than RStudio to merit using a different IDE than the rest of the class and book instructions?
debruine.bsky.social
Excited for today’s seminar by @juliehulme-psyc.bsky.social about the experiences of disabled and neurodivergent students.
debruine.bsky.social
Fab! I wish I'd learned about this before I spent all day yesterday updating the alt text for my dataviz chapter. I'd thought my figure captions were good enough, but they were more high-level about the purpose of the plots, and less detail about what the plots specifically convey.
debruine.bsky.social
Thank you so much! These are fantastic resources
Reposted by Lisa DeBruine
sajedehra.bsky.social
Time is running out to register for our pre-symposium workshop and Meta Research Symposium event at Paul Meehl Graduate School
Check the information and registration links below:

paulmeehlschool.github.io/workshops/
debruine.bsky.social
This fall I will have a blind student in my coding class for the first time. Do any other instructors or visually impaired coders have advice beyond making sure my book has useful alt-text for the images? #rstats #accessibility

Class book: psyteachr.github.io/reprores-v5/
Reposted by Lisa DeBruine
bartlettje.bsky.social
Our contribution to an upcoming book on teaching open science was "how to teach reproducible research". There are plenty of lesson plans or individual courses out there but less on how you can build skills across a whole degree.

osf.io/preprints/ps...
OSF
osf.io
debruine.bsky.social
I have discovered the most delicious oatmeal topping ever. Stir in a spoon of biscoff spread and top with flaky sea salt (measure with your heart, it really depends how you're feeling abut sweet vs salty on a given day).
Reposted by Lisa DeBruine
ricvolpe.bsky.social
Happy to share the first article of my PhD journey at @uofglasgow.bsky.social and @socialai.bsky.social

@debruine.bsky.social, Prof Stumpf and I reviewed ~150 articles from 10 disciplines about trust in AI and synthesised how it forms in affective human-AI relationships: doi.org/10.1016/j.ch...
Our categorisation of concepts relevant to trusting emotional support from generative AI, underpinned by four categories: propensity to trust, motivations to depend on (convenience, expertise, empathy, positive regard, and personalisation), perceived risks that produce vulnerabilities (privacy, harm, and organisational control) and assurances that support an unquestioning attitude (credibility, congruence, and accountability). Additionally, attachment and social connectedness sit on a spectrum between motivations and risks as they present positive and negative effects on trust.
debruine.bsky.social
I'll probably add this to Papercheck after I test it a bit more (it only works for articles just now) as it will demonstrate some lower-level functions we've been meaning to add to assess the accuracy of references and citations.

What sort of related reference functions would you find useful?
debruine.bsky.social
What was I supposed to do this morning?

Make comments on a draft of the Papercheck paper.

What did I actually do?

Write an R function to add DOIs from OpenAlex to a .bib file (the bibtex citations you get from google scholar bizarrely don't have DOIs)
debruine.bsky.social
I want to highlight a bunch of different original data sources to show the variety of ways data needs to be processed, so I'm on purpose not just getting a bunch of data that is already structured the same way from the SDG Data Portal (which is fab)

unstats.un.org/sdgs/datapor...
debruine.bsky.social
I've started 6 chapters in the past 3 days. It's very draft content, but I'd love feedback on whether this is the sort of thing people might use and what you'd want out of it.

What metadata about each version would you want to be able to decide if a version is good for a lesson you're planning?
A plot showing water access by development level from 2000 to 2022. High-income countries have nearly 100% safe access, while access steadily worsens for lower income levels, but steadily improves over time.
debruine.bsky.social
Awesome, I didn't know that!

I'm finding tons of data sources, and it's really emphasising the need for good data skills. So many ways to label countries! Most provide data in such a non-tidy format, like with text notes in cells with numbers and unmarked note rows before or after tabular data.
debruine.bsky.social
I'm putting together some datasets relevant to the UN Sustainable Development Goals (for teaching purposes) and wondered if anyone has suggestions for interesting datasets on these themes. You can see what I'm aiming at in the first chapter.

psyteachr.github.io/sdg-data/
debruine.bsky.social
I am more and more convinced in my stance that AI is currently only acceptable as a classification assistant (e.g., does this paragraph describe a power analysis, if so, does it include an effect size?) and never as an evaluation tool (e.g., is this power analysis appropriate?)
debruine.bsky.social
Ooh, do you want to be added to my 30-second planks group chat? We do 7 different planks for 30s each (with the goal of 60s each someday). You can only text "done" and get encouraging emoji responses.

1. dish
2. side plank
3. elbow plank
4. other side
5. reverse plank
6. superman
7. plank
debruine.bsky.social
Am I being dumb, or is the only way to retrieve info about an entity like osf.io/4i578 using the OSF API to iteratively check if it is a node, file, preprint, registration, user, etc. until I find one that doesn't return a 404?

If this is the actual case, please someone at @cos.io help 🙏
debruine.bsky.social
To be clear, anyone can view the contents of the VO link as a webpage without being logged in to the OSF, but the API restricts access to *all* info for VO links.

So this requires a whole separate workflow in papercheck for VO links, which are more common in published papers than you'd hope.
debruine.bsky.social
Does anyone from @cos.io know how to access info on the API about nodes you don't own with an active view-only link?

My test link is:
osf.io/ybm3c/?view_...

But following the API docs at developer.osf.io#operation/no...

I can't access info using api.osf.io/v2/nodes/ybm... unless logged in