The hRU is an R package currently under development. It includes many helpful utilities for complex data management and analysis, with a particular focus on network data.
The hRU will be available on CRAN in Fall 2025. In the meantime, please feel free to use the provisional versions linked below. The hRU may be installed manually as a package (use the *.tar.gz file), or you can load the hRU workspace directly into R (use the *.RData file). Using the hRU as a workspace is slightly less elegant but it is a simpler method. I have been getting reports of problems with installing the package on MacOS. If this applies to you, please use the workspace instead.
Download
hRU Installation Package Instructions
To load the hRU as a package from RStudio:
- Go to Tools -> Install Packages…
- -> Set Install from to “Package Archive Files (.zip; tar.gz)”
- -> Select the hRU.tar.gz file under “Package archive”
- -> Choose your library ->
- -> Install
Now, within R you may load the package using command “library(hru)”
hRU Workspace Instructions
To load the hRU as a workspace, type the following command within R:
- load(“hRU_v2024_05_14.RData”)
Be sure that the file exists in your working directory!