Skip to content

Instantly share code, notes, and snippets.

library(ipeadatar)
library(tidyverse)
library(readxl)
series_disponiveis<-
ipeadatar::available_series()
codigos<-
((series_disponiveis %>%
@ruvnet
ruvnet / agentic_reports.ipynb
Last active June 22, 2024 08:36
agentic_reports.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rasmusab
rasmusab / chat-gtp-api-call.R
Last active May 8, 2025 08:17
How to call the ChatGTP API from R (in 2023-03-01)
# How to call the new (as of 2023-03-01) ChatGTP API from R
# Get your API key over here: https://platform.openai.com/
api_key <- "sk-5-your-actual-api-key-Fvau6" # Don't share this! 😅
library(httr)
library(stringr)
# Calls the ChatGTP API with the given promps and returns the answer
ask_chatgtp <- function(prompt) {
response <- POST(