This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # [PRD-EPICO-E.md](http://prd-epico-e.md/) | |
| ## Épico E — Lista de Compras | |
| --- | |
| ## 1. Visão Geral | |
| O Épico E introduz uma funcionalidade de **Lista de Compras**, cujo objetivo é orientar os usuários sobre **quais itens precisam ser comprados**, com base na comparação entre o **estoque atual físico** e o **estoque mínimo configurado** para cada item. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(ipeadatar) | |
| library(tidyverse) | |
| library(readxl) | |
| series_disponiveis<- | |
| ipeadatar::available_series() | |
| codigos<- | |
| ((series_disponiveis %>% |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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( |