mirror of
https://github.com/dwinkler1/fran.git
synced 2026-02-19 14:40:58 -05:00
added package testing
This commit is contained in:
parent
7e67033d91
commit
15ee67a52e
2 changed files with 15 additions and 1 deletions
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
|
|
@ -28,4 +28,4 @@ jobs:
|
|||
extraPullNames: rstats-on-nix, nix-community
|
||||
- run: nix build .
|
||||
- run: nix flake check . --all-systems
|
||||
- run: nix develop -c "R -e 'library(httpgd)'"
|
||||
- run: nix develop -c Rscript test/test.R
|
||||
|
|
|
|||
14
test/test.R
Normal file
14
test/test.R
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
library(httpgd)
|
||||
hgd()
|
||||
|
||||
library(musicMetadata)
|
||||
print(classify_labels('Interscope'))
|
||||
|
||||
library(nvimcom)
|
||||
|
||||
library(synthdid)
|
||||
data('california_prop99')
|
||||
setup = panel.matrices(california_prop99)
|
||||
tau.hat = synthdid_estimate(setup$Y, setup$N0, setup$T0)
|
||||
se = sqrt(vcov(tau.hat, method='placebo'))
|
||||
sprintf('95%% CI (%1.2f, %1.2f)', tau.hat - 1.96 * se, tau.hat + 1.96 * se)
|
||||
Loading…
Add table
Add a link
Reference in a new issue