# install the development version
# install.packages("pak")
# pak::pak("r-arcgis/arcgislayers")
library(pillar)
# for authorizing to your portal
library(arcgisutils)
#>
#> Attaching package: 'arcgisutils'
This file contains 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
[package] | |
name = "testthat-cli" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
argh = "0.1.12" |
This file contains 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
#' @export | |
new_schedule_builder <- function() { | |
builder <- list( | |
sec = "0", | |
min = "0", | |
hour = "0", | |
dom = "*", | |
month = "*", | |
dow = "*", | |
year = "*" |
This file contains 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(dplyr) | |
library(tidyr) | |
library(ggplot2) | |
url <- "https://projects.fivethirtyeight.com/polls/president-general/2024/national/polls.json" | |
# read in the raw json path | |
polls_raw <- RcppSimdJson::fload(url) | |
# filter to the IDs that contain Harris |
This file contains 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
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "shift+cmd+b", | |
"command": "workbench.action.tasks.runTask", | |
"args": "Build R package", | |
"when": "isRPackage" | |
}, | |
{ | |
"key": "shift+cmd+enter", |
This file contains 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
#!/usr/bin/env Rscript | |
# we need to vendor the dependencies and then store the checksum | |
rextendr::vendor_pkgs() | |
# make the checksum | |
# writeLines( | |
# tools::md5sum("src/rust/vendor.tar.xz"), | |
# "./tools/vendor.md5" | |
# ) |
This file contains 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
[package] | |
name = "json-parser" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
serde = { version = "1.0.199", features = ["derive"] } | |
serde_json = "1.0.116" |
This file contains 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
FROM python:3.9-bookworm | |
ENV R_VERSION=4.3.3 | |
# Install from Posit binaries | |
# https://docs.posit.co/resources/install-r/#verify-r-installation | |
RUN apt-get update && \ | |
apt-get install -y gdebi-core curl && \ | |
curl -O https://cdn.rstudio.com/r/debian-12/pkgs/r-${R_VERSION}_1_amd64.deb && \ | |
gdebi -n r-${R_VERSION}_1_amd64.deb && \ |
This file contains 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
# Current limitation is that the images that are used are relative to the | |
# package lib.loc / help so what might be idea lis to extract the image | |
# and base64 encode them using {b64} | |
pkg_to_quarto_doc <- function(pkg, out_path = paste0(pkg, ".qmd"), ...) { | |
tmp <- tempfile() | |
base_doc <- tools::pkg2HTML(pkg, out = tmp, ...) | |
# read in html | |
og <- rvest::read_html(tmp) |
This file contains 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
[package] | |
name = 'tst2' | |
publish = false | |
version = '0.1.0' | |
edition = '2021' | |
[lib] | |
crate-type = [ 'staticlib' ] | |
name = 'tst2' |
NewerOlder