[?style=flat&logo=github&label=Commits%20since%20last%20theme%20submodule%20pull)](https://github.com/adityatelange/hugo-PaperMod/compare/`r readLines(".git/modules/themes/PaperMod/refs/heads/master")`...master)
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
| name: Weekly Data Fetch | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 0" # runs every Sunday at midnight UTC | |
| workflow_dispatch: # allows manual trigger | |
| permissions: | |
| contents: write # grants permission to push changes |
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
| import json | |
| from pathlib import Path | |
| import pandas as pd | |
| from dotenv import load_dotenv | |
| from openai import OpenAI | |
| from tqdm import tqdm | |
| # .env | |
| # OPENAI_API_KEY=<API-Key> |
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(tidyverse) | |
| library(sf) | |
| # Data -------------------------------------------------------------------- | |
| raw_survey <- read_csv(here::here("data", "input", "Survey", "Crisis+Data+Ecosystem+Survey_RAW.csv")) | |
| # Wrangle ----------------------------------------------------------------- | |
| # remove the variable descriptions row, only useful for new colnames |
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
| snippet pak | |
| pak::pak("${1}") |
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
| template.Rproj | |
| template.html | |
| *_files/ | |
| *_cache/ |
-
RMarkdown & Quarto
-
.Rprofile
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
| if (interactive()) { | |
| suppressMessages(require(usethis)) | |
| } | |
| if (interactive()) { | |
| suppressMessages(require(devtools)) | |
| } | |
| if (interactive()) { | |
| suppressMessages(require(cput)) |
expand
stuffNewerOlder