Changelog
segtools 1.1.2
New vignette for
ggplot2SEG graph (not used in application)New vignette for hex sticker (using
patchwork,hexStickerandmagick)Updated README with reference
segtools 1.1.1
-
New tests for
import_flat_file()==> devtools::test() ℹ Testing segtools ✔ | F W S OK | Context ✔ | 3 | import_flat_file [0.2s] ✔ | 1 | seg_binom_table [0.5s] ✔ | 1 | seg_iso_range_tbl [0.6s] ✔ | 1 | seg_iso_vars [0.4s] ✔ | 1 | seg_pair_type_tbl [0.1s] ✔ | 1 | seg_risk_cat_tbl [0.4s] ✔ | 1 | seg_risk_cat_vars [0.2s] ✔ | 1 | seg_risk_cols [0.7s] ✔ | 1 | seg_risk_grade_tbl [0.4s] ══ Results ══════════════════════════════════════════════════════════════════ Duration: 3.7 s [ FAIL 0 | WARN 0 | SKIP 0 | PASS 11 ]
segtools 1.1.0
-
Updated functions to standardize names:
- functions and outputs with a
_colssuffix are intermediate/utility functions - functions and outputs with a
_varssuffix are create outputs for the primary_tbland_graphfunctions - input arguments align with function names (i.e.
seg_risk_vars()creates the output for functions with therisk_varsargument)
- functions and outputs with a
Re-written
risk-tablesvignette to be more organized.Added SEG Graph vignette
segtools 1.0.0
-
Updated package functions to match shiny application outputs
- See vignette
risk-tables
- See vignette
-
Unit tests for each function
==> devtools::test() ℹ Testing segtools ✔ | F W S OK | Context ✔ | 1 | seg_binom_tbl [0.5s] ✔ | 1 | seg_iso_range_tbl [0.4s] ✔ | 1 | seg_iso_cols [0.3s] ✔ | 1 | seg_pair_type_tbl ✔ | 1 | seg_risk_cat_tbl [0.3s] ✔ | 1 | seg_risk_cat_cols [0.3s] ✔ | 1 | seg_risk_vars [0.6s] ✔ | 1 | seg_risk_grade_tbl [0.3s] ══ Results ═══════════════════════════════════ Duration: 2.8 s [ FAIL 0 | WARN 0 | SKIP 0 | PASS 8 ] -
Data from previous build accessible with
get_seg_data()functionget_seg_data('VanderbiltComplete') # A tibble: 9,891 × 2 BGM REF <dbl> <dbl> 1 121 127 2 212 223 3 161 166 4 191 205 5 189 210 6 104 100 7 293 296 8 130 142 9 261 231 10 147 148 # … with 9,881 more rows # ℹ Use `print(n = ...)` to see more rows- Use
get_seg_data('names')for list of datasets
get_seg_data('names') [1] "VanderbiltComplete.csv" "AppRiskPairData.csv" "RiskPairData.csv" [4] "AppLookUpRiskCat.csv" "LookUpRiskCat.csv" "AppTestData.csv" [7] "AppTestDataSmall.csv" "AppTestDataMed.csv" "AppTestDataBig.csv" [10] "FullSampleData.csv" "ModBAData.csv" "No_Interference_Dogs.csv" [13] "SEGRiskTable.csv" "SampMeasData.csv" "SampleData.csv" [16] "lkpRiskGrade.csv" "lkpSEGRiskCat4.csv" - Use
segtools 0.0.1
- This package has been configured to use the
pak+renvby includingrenv.config.pak.enabled = TRUEin the.Rprofile
segtools 0.0.0.9000
pkgdown
Building the
pkgdownversion of the package has been a nightmare. The variouspkgdownbuilds/failures are listed below:pkgdown build #3 #2 and pkgdown build #5 #3 had the same error on
readxl
✖ Failed to build segtools 0.0.0.9000
Error:
! error in pak subprocess
Caused by error in `stop_task_build(state, worker)`:
! Failed to build source package 'segtools'
Full installation output:
* installing *source* package ‘segtools’ ...
staged installation is only possible with locking
** using non-staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘readxl’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package ‘segtools’
* removing ‘/tmp/RtmpHJLGW5/pkg-lib1352430479ed/segtools’
---
Backtrace:
1. pak::lockfile_install(".github/pkg.lock")
2. pak:::remote(function(...) { …
3. err$throw(res$error)
---
Subprocess backtrace:
1. base::withCallingHandlers(cli_message = function(msg) { …
2. get("lockfile_install_internal", asNamespace("pak"))(...)
3. plan$install()
4. pkgdepends::install_package_plan(plan, lib = private$library, num_workers = nw, …
5. base::withCallingHandlers({ …
6. pkgdepends:::handle_events(state, events)
7. pkgdepends:::handle_event(state, i)
8. pkgdepends:::stop_task(state, worker)
9. pkgdepends:::stop_task_build(state, worker)
10. base::throw(new_pkg_build_error("Failed to build source package {pkg}", …
11. | base::signalCondition(cond)
12. global (function (e) …
Execution halted
Error: Process completed with exit code 1.After removing the readxl from the package, the build worked (almost).
The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
This required changing the settings under Settings > Actions > General > change Workflow permissions to Read and write permissions
- Added a
NEWS.mdfile to track changes to the package.