From aeabadf75a6c43010a374860b35a52c499ee72a8 Mon Sep 17 00:00:00 2001 From: Steve Jackson Date: Tue, 8 Aug 2023 16:58:48 -0400 Subject: [PATCH] more fixes and improvements --- .Rbuildignore | 2 + .gitignore | 9 +- docs/articles/Save_local.html | 10 +- docs/authors.html | 4 +- docs/index.html | 151 ++++++++--------------------- docs/pkgdown.yml | 2 +- docs/reference/compare_counts.html | 4 +- docs/reference/counts.html | 8 +- docs/reference/get_fars.html | 8 +- docs/reference/get_gescrss.html | 8 +- docs/search.json | 2 +- 11 files changed, 70 insertions(+), 138 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index c95b62c..14e6a97 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -33,3 +33,5 @@ vignettes/in_development$ vignettes/in_development ^\.github ^update_process\.txt$ +in_development +in_development/ diff --git a/.gitignore b/.gitignore index a8f39c4..e31fad2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,14 +6,17 @@ inst/doc ^sticker\.pptx$ ^update_process\.txt$ ^old$ -<<<<<<< HEAD +in_development +in_development/ FARS data GESCRSS data +FARS data/ +GESCRSS data/ .RData .RDataTmp .Rhistory myFARS.rds myGESCRSS.rds old -======= ->>>>>>> 9d53c2c4adb645e269f60cc5be2df4a50ab66200 +[.]xlsx$ +[.]png$ diff --git a/docs/articles/Save_local.html b/docs/articles/Save_local.html index bec812d..7e34505 100644 --- a/docs/articles/Save_local.html +++ b/docs/articles/Save_local.html @@ -115,20 +115,20 @@ saved_data <- readRDS("mydata.rds")

This can save a considerable amount of time:

-benchmark(
+rbenchmark::benchmark(
   "download new" = rfars::get_fars(years=2021, states = "VA", proceed = T),
   "use saved"    = readRDS("mydata.rds"),
   replications = 1,
   columns = c("test", "replications", "elapsed", "relative", "user.self", "sys.self"))
 #> Warning in dir.create(paste0(dest_raw_y, "/format-32")):
-#> 'C:\Users\s87ja\AppData\Local\Temp\Rtmp69qBxJ\FARS data\raw\2021\format-32'
+#> 'C:\Users\s87ja\AppData\Local\Temp\RtmpmcZyCA\FARS data\raw\2021\format-32'
 #> already exists
 #> Warning in dir.create(paste0(dest_raw_y, "/format-64")):
-#> 'C:\Users\s87ja\AppData\Local\Temp\Rtmp69qBxJ\FARS data\raw\2021\format-64'
+#> 'C:\Users\s87ja\AppData\Local\Temp\RtmpmcZyCA\FARS data\raw\2021\format-64'
 #> already exists
 #>           test replications elapsed relative user.self sys.self
-#> 1 download new            1  120.33    668.5     73.50     2.64
-#> 2    use saved            1    0.18      1.0      0.15     0.01
+#> 1 download new 1 123.44 561.091 65.71 2.28 +#> 2 use saved 1 0.22 1.000 0.15 0.00

Below we export each piece of the FARS data object to a separate tab on an Excel spreadsheet:

diff --git a/docs/authors.html b/docs/authors.html
index 81ec007..e9d0578 100644
--- a/docs/authors.html
+++ b/docs/authors.html
@@ -65,11 +65,11 @@ 

Citation

Source: DESCRIPTION

Jackson S (2023). -rfars: Download and Analyze Fatal Crash Data. +rfars: Download and Analyze Crash Data. R package version 0.3.0, https://github.com/s87jackson/rfars.

@Manual{,
-  title = {rfars: Download and Analyze Fatal Crash Data},
+  title = {rfars: Download and Analyze Crash Data},
   author = {Steve Jackson},
   year = {2023},
   note = {R package version 0.3.0},
diff --git a/docs/index.html b/docs/index.html
index a044b94..1a80997 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -5,8 +5,8 @@
 
 
 
-
-Download and Analyze Fatal Crash Data • rfars
+
+Download and Analyze Crash Data • rfars
 
 
 
@@ -17,8 +17,8 @@
 
 
 
-
-
+
+