-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from UNSW-CEEM/upgrade-installation
Upgrade installation. Use the latest versions of dependencies instead of relying upon outdated versions. This should solve the issues with installation currently where outdated versions dependencies are unable to be found and installed. By updating to the latest versions of packages, there are some minor breakages due to changes in dependencies. Update the code to work with the latest versions of dependencies. All updates to the code should also be backwards compatible. Tested with R versions 3.5.2, 4.2.2 and the latest version 4.3.1.
- Loading branch information
Showing
16 changed files
with
99 additions
and
83 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,41 @@ | ||
install.packages("versions") | ||
library("versions") | ||
install_type <- 'binary' | ||
install.versions(c('shiny'), c('1.4.0.2'), type=install_type) | ||
install.versions(c('shinyalert'), c('2.0.0'), type=install_type) | ||
install.versions(c('shinyTime'), c('1.0.1'), type=install_type) | ||
install.versions(c('shinyWidgets'), c('0.5.4'), type=install_type) | ||
install.versions(c('plotly'), c('4.9.2.1'), type=install_type) | ||
install.versions(c('lubridate'), c('1.7.8'), type=install_type) | ||
install.versions(c('dplyr'), c('0.8.5'), type=install_type) | ||
install.versions(c('tidyr'), c('1.0.2'), type=install_type) | ||
install.versions(c('data.table'), c('1.12.8'), type=install_type) | ||
install.versions(c('shinycssloaders'), c('1.0.0'), type=install_type) | ||
install.versions(c('shinyFiles'), c('0.8.0'), type=install_type) | ||
install.versions(c('shinyjs'), c('2.0.0'), type=install_type) | ||
install.versions(c('fasttime'), c('1.0-2'), type=install_type) | ||
install.versions(c('DT'), c('0.16'), type=install_type) | ||
install.versions(c('suncalc'), c('0.5.0'), type=install_type) | ||
install.versions(c('ggmap'), c('3.0.0'), type=install_type) | ||
install.versions(c('measurements'), c('1.4.0'), type=install_type) | ||
install.versions(c('assertthat'), c('0.2.1'), type=install_type) | ||
install.versions(c('geosphere'), c('1.5-10'), type=install_type) | ||
install.versions(c('swfscMisc'), c('1.3'), type=install_type) | ||
install.versions(c('padr'), c('0.5.1'), type=install_type) | ||
install.versions(c('sqldf'), c('0.4-11'), type=install_type) | ||
install.versions(c('gridExtra'), c('2.3'), type=install_type) | ||
install.versions(c('rjson'), c('0.2.20'), type=install_type) | ||
install.versions(c('R6'), c('2.5.0'), type=install_type) | ||
install.versions(c('git2r'), c('0.29.0'), type=install_type) | ||
install.versions(c('logging'), c('0.10-108'), type=install_type) | ||
install.versions(c('testthat'), c('2.3.2'), type=install_type) | ||
#' Load libraries | ||
#' | ||
#' using tries to load all libraries passed to it, and if a library is not | ||
#' found, using will install it and then load it. | ||
#' @param ... The libraries / dependencies / packages to load. | ||
using <- function(...) { | ||
libs <- unlist(list(...)) | ||
req <- unlist(lapply(libs, require, character.only = TRUE)) | ||
need <- libs[req == FALSE] | ||
if (length(need) > 0) { | ||
install.packages(need) | ||
lapply(need, require, character.only = TRUE) | ||
} | ||
} | ||
|
||
using( | ||
"plotly", | ||
"lubridate", | ||
"dplyr", | ||
"tidyr", | ||
"data.table", | ||
"shinyFiles", | ||
"shinyjs", | ||
"fasttime", | ||
"DT", | ||
"suncalc", | ||
"assertthat", | ||
"geosphere", | ||
"swfscMisc", | ||
"padr", | ||
"sqldf", | ||
"rjson", | ||
"R6", | ||
"git2r", | ||
"logging", | ||
"testthat", | ||
"shiny", | ||
"shinyTime", | ||
"shinyWidgets", | ||
"shinyalert" | ||
) |
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
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
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
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
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
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
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
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
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
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
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
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