Vinicius Oike

Vinicius Oike

@viniciusoike.bsky.social

Economist and Data Scientist | https://restateinsight.com/blog São Paulo, Brazil

77 Followers 54 Following 59 Posts Joined Apr 2025
1 day ago
 “There are only two kinds of languages: the ones people complain about and the ones nobody uses.”
― Bjarne Stroustrup, The C++ Programming Language

anon: R is a terrible language and an absolute disaster.

me: correct.

anon: so you agree?

me: completely.

anon: then why do you use it?

me: *shares attached screenshot*

anon: *furiously typing... deleting... typing...*

#rstats

44 8 3 0
2 days ago

👇🎯

<all together now>

42 9 0 0
2 weeks ago

This is one of the best reviews I've read on the film, very nice 🎬

0 0 0 0
2 weeks ago

I do find that, for some reason, LLMs and Claude specially runs crazy with pipes, sometimes printing 100+ lines of code in a single pipe. Some crazy code like: read_csv() |> mutate(...) |> ... |> ggplot() + ...

1 0 0 0
2 weeks ago

pipes are incredible, just keep it reasonable: chain 2-4 functions at a time. While in some cases they can make a code harder to debug, I rarely find that it makes it harder to read. Also, not even sure if some packages (like leaflet) can exist without pipes.

2 1 1 0
2 weeks ago

I'm late on both of the R quarrels.

tibbles are great, just set options(pillar.width = Inf) and be happy. Nested tibbles are underrated. Only thing that bothers once in a while is the rounding of numbers.

3 2 1 0
2 weeks ago
Post image

This is the correct way to calculate the MAD of a vector in R. #rstats

26 4 0 0
3 weeks ago
Preview
‘Don’t go to the US – not with Trump in charge’: the UK tourist with a valid visa detained by ICE for six weeks Karen Newton was in America on the trip of a lifetime when she was shackled, transported and held for weeks on end. With tourism to the US under increasing strain, she says, ‘If it can happen to me, i...

We Are Nothing Like the Gestapo.

63 23 3 2
1 month ago
Post image

something like this

1 0 0 0
1 month ago

Excel is home to some of the worst data practices. Just received a sheet that's supposed to be a "heatmap". Cells are colored manually, columns are days and rows are "regions". The actual information is stored as comments inside each individual cell.

1 0 1 0
1 month ago

just to be clear, .direction = 'right' doesn't exist

0 0 0 0
2 months ago

{ggview} can print plots to Viewer (Rstudio or Positron) with true scaling. Adjust plot settings and see the final proportions immediately.

Save the plot once 👌

e.g.:
ggplot(...) +
ggview::canvas(width = 220, height = 220*2/3, units = "mm", dpi = 300)

per @nrennie.bsky.social #datavis #rstats

122 33 3 3
4 months ago
Post image

When I say that Claude is very good at coding in R, there are caveats.

1 0 1 0
5 months ago
Post image

As G10 countries succumb to simplistic populism, reckless fiscal policy and fiscal dominance of their central banks, the line between the G10 and EM is getting blurred. Real long-term interest rates in the G10 have begun to rise towards EM levels...
robinjbrooks.substack.com/p/the-global...

14 2 0 0
1 year ago
Video thumbnail

Closeread Prize winners are here! 🏆

Want to create engaging, scroll-based stories with your data? See stunning scrollytelling examples made with Quarto: posit.co/blog/closere...

Learn more about Closeread and its power to create dynamic narratives. Congrats winners! #Quarto #RStats #Python

93 27 1 11
5 months ago
Post image

Claude can be savage at times

1 0 0 0
5 months ago

What happens when you get lazy and don't follow your own advice...

2 0 0 0
5 months ago

Happy to know I'm not the only one who creates a ggplot2 theme package for every company I work with #positconf.

Not only does it standardize communication, but it also makes a great impression. theme_quintoandar() took about a day to make and led to me reporting directly to the C-level.

0 0 0 0
5 months ago

One strategy I'm using is to ask ClaudeCode to write a small summary of what it's done + add context for future work when it's almost done with a task. I then use /clear, ask Claude to read the document, and give it instructions on the next task.

1 0 0 0
5 months ago

4. Avoid auto-compacting

The last point is directly tied to this one. ClaudeCode has a context limit (the UI warns when approaching this limit) and it auto-compacts by default. The quality of compacting can sometimes be unreliable and I found it best to just workaround it.

0 0 1 0
5 months ago

You can ask for ClaudeCode to take notes of useful information and store it in separate md files to help build this knowledge.

0 0 1 0
5 months ago
Preview
Claude R Tidyverse Expert Claude R Tidyverse Expert. GitHub Gist: instantly share code, notes, and snippets.

A great example of useful context to provide Claude with (from @sarahjohnson.io) gist.github.com/sj-io/3828d6...

1 0 1 0
5 months ago

3. Knowledge

Anthropic recommends that you create a CLAUDE.md file to store important context. Currently, I'm experimenting with an entire claude/ directory stashed with useful content. Before starting a new task I ask Claude to read the relevant content.

0 0 1 0
5 months ago

Ex: I asked ClaudeCode to download an Excel file, import it in R, and make it tidy. The download, however, failed due to network issues and Claude decided to invent a dataset with fake values instead of stopping and pointing this error.

0 0 1 0
5 months ago

2. Manually approve

While ClaudeCode seems magical when it "just works" it often doesn't. Auto-accept can lead to errors that hard to detect since Claude can sometimes omit them and say that everything worked according to plan.

0 0 1 1
5 months ago

1. Make plans

Always start a new task in plan mode and invest some time making sure that Claude has a solid plan. A neat tip from Anthropic is to use "think more...", "think hard about potential issues...", "think step by step ... ".

"think" < "think hard" < "think harder" < "ultrathink."

0 0 1 0
5 months ago

Been working with ClaudeCode for the past ~2 months (mainly R and Quarto). My main tips:

1. Plan a lot.
2. Manually approve (auto-accept only for very simple tasks).
3. Create knowledge that can be referenced.
4. Avoid /compact and auto-compacting.

1 0 1 0
5 months ago

I've been using Air since switching to Positron and have been loving it. My only criticism is the styling of tibbles (it just breaks them). Apparently that has been solved

# fmt: tabular

coming soon

#PositConf

8 2 0 0
6 months ago
Video thumbnail

The fastest way to start using & exploring the new 2024 1-year ACS data?

R with tidycensus + mapgl.

With just a few lines of code, you can pull down any of the thousands of variables available in the new data and explore on an interactive MapLibre map.

25 5 1 0
6 months ago
Preview
Bolsonaro Convicted of Attempting a Coup in Brazil, Sentenced to 27 Years in Prison Brazil’s Supreme Court convicted the former president of trying to cling to power after losing the 2022 election, including a plan to assassinate his opponent.

Jair Bolsonaro was sentenced to more than 27 years in a Brazil prison for attempting a coup after losing the 2022 election.

996 195 91 86