-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
* dev: Rename addins Bug fix in progress bar Create RStudio addins #72 Add function to retrieve status of all VMs #72 Fix merge errors Update tests #70 Export read.AzureSMR.config() and enable reading settings file in createAzureContext() #70 Remove spurious reference to storageAccountK Add resourceGroup argument when polling for script actions #58 Fix example_azureCreateHDI.R - Remove DEBUG flag, set legal password test-6-ARM.R - Changed Deploy 2 to a quicker VNET build.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# this is a template to view a DT object | ||
# @param data.frame | ||
# @param title Text to display in pane title | ||
|
||
#' @importFrom miniUI miniPage gadgetTitleBar miniContentPanel | ||
#' @importFrom DT dataTableOutput renderDataTable | ||
#' @importFrom shiny observeEvent paneViewer runGadget | ||
dataTableViewer <- function(x, title = "") { | ||
|
||
ui <- miniPage( | ||
gadgetTitleBar(title), | ||
miniContentPanel( | ||
DT::dataTableOutput("dt", height = "100%") | ||
) | ||
) | ||
|
||
server <- function(input, output, session) { | ||
output$dt <- DT::renderDataTable(x) | ||
|
||
observeEvent(input$done, stopApp()) | ||
} | ||
|
||
viewer <- paneViewer() | ||
runGadget(ui, server, viewer = viewer) | ||
|
||
} | ||
|
||
|
||
addinListAllResources <- function() { | ||
settingsfile <- getOption("AzureSMR.config") | ||
assert_that(file.exists(settingsfile)) | ||
az <- createAzureContext(configFile = settingsfile) | ||
z <- azureListAllResources(az) | ||
z$id <- NULL | ||
dataTableViewer(z, title = "All resources") | ||
} | ||
|
||
addinGetAllVMstatus <- function() { | ||
settingsfile <- getOption("AzureSMR.config") | ||
assert_that(file.exists(settingsfile)) | ||
az <- createAzureContext(configFile = settingsfile) | ||
z <- azureGetAllVMstatus(az) | ||
z$id <- NULL | ||
dataTableViewer(z, title = "All virtual machines") | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
AzureSMR.config.default <- "~/.azureml/settings.json" | ||
AzureSMR.config.default <- "~/.azuresmr/config.json" | ||
|
||
.onAttach <- function(libname, pkgname){ | ||
.onAttach <- function(libname, pkgname) { | ||
if (is.null(getOption("AzureSMR.config"))) | ||
options(AzureSMR.config = AzureSMR.config.default) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
\dontrun{ | ||
library(AzureSMR) | ||
|
||
azureCreateHDI(context, | ||
resourceGroup = RG, | ||
azureCreateHDI(context, | ||
resourceGroup = RG, | ||
clustername = "smrhdi", # only low case letters, digit, and dash. | ||
storageAccount = "smrhdisa", | ||
adminUser = "hdiadmin", | ||
adminUser = "hdiadmin", | ||
adminPassword = "AzureSMR_password123", | ||
sshUser = "hdisshuser", | ||
sshUser = "hdisshuser", | ||
sshPassword = "AzureSMR_password123", # need at least digits. | ||
kind = "rserver", | ||
debug = FALSE | ||
kind = "rserver" | ||
) | ||
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Name: Azure-resources | ||
Description: List all Azure resources. | ||
Binding: addinListAllResources | ||
Interactive: true | ||
|
||
Name: Azure-VM status | ||
Description: List the status of all virtual machines. | ||
Binding: addinGetAllVMstatus | ||
Interactive: true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.