mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-21 13:00:23 +01:00
deploy_shiny() has moved to a different package
This commit is contained in:
parent
c54cea7be0
commit
a181a2816c
@ -3,7 +3,6 @@
|
||||
export(REDCap_split)
|
||||
export(clean_redcap_name)
|
||||
export(d2w)
|
||||
export(deploy_shiny)
|
||||
export(ds2dd)
|
||||
export(ds2dd_detailed)
|
||||
export(easy_redcap)
|
||||
|
4
NEWS.md
4
NEWS.md
@ -1,8 +1,8 @@
|
||||
# REDCapCAST 24.3.1
|
||||
# REDCapCAST 24.3.1 - in development
|
||||
|
||||
### Documentation and more
|
||||
|
||||
* Dependencies: In order to deploy `shiny_cast()` with `shinylive`, I need to remove `curl` as a dependency. To accomplish this, the `shiny_deploy()` helper functions has been moved to the package [`pacakge.aid`](https://github.com/agdamsbo/package.aid). This is for a rainy day: https://r-wasm.github.io/rwasm/.
|
||||
* Dependencies: In order to deploy `shiny_cast()` with `shinylive`, I need to remove `curl` as a dependency. To accomplish this, the `shiny_deploy()` helper functions has been moved to the package [`pacakge.aid`](https://github.com/agdamsbo/package.aid). This is for a rainy day: https://r-wasm.github.io/rwasm/. The whole shiny part may be migrated to its own project to try to separate things and be easy on dependencies. Time will tell.
|
||||
|
||||
|
||||
# REDCapCAST 24.2.1
|
||||
|
@ -34,34 +34,3 @@ shiny_cast <- function() {
|
||||
)
|
||||
}
|
||||
|
||||
#' Deploy the Shiny app with rsconnect to shinyapps.io
|
||||
#'
|
||||
#' @description
|
||||
#' This is really just a simple wrapper
|
||||
#'
|
||||
#' @param path app folder path
|
||||
#' @param name.app name of deployed app
|
||||
#' @param name.token stored name of token
|
||||
#' @param name.secret stored name of secret
|
||||
#'
|
||||
#' @return deploy
|
||||
#' @export
|
||||
#'
|
||||
#' @examples
|
||||
#' # deploy_shiny()
|
||||
#'
|
||||
deploy_shiny <- function(path = here::here("app/"),
|
||||
account.name,
|
||||
name.app = "shiny_cast",
|
||||
name.token,
|
||||
name.secret) {
|
||||
# Connecting
|
||||
rsconnect::setAccountInfo(
|
||||
name = account.name,
|
||||
token = keyring::key_get(service = name.token),
|
||||
secret = keyring::key_get(service = name.secret)
|
||||
)
|
||||
|
||||
# Deploying
|
||||
rsconnect::deployApp(appDir = path, lint = TRUE, appName = name.app, )
|
||||
}
|
||||
|
@ -1,33 +0,0 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/shiny_cast.R
|
||||
\name{deploy_shiny}
|
||||
\alias{deploy_shiny}
|
||||
\title{Deploy the Shiny app with rsconnect to shinyapps.io}
|
||||
\usage{
|
||||
deploy_shiny(
|
||||
path = here::here("app/"),
|
||||
account.name,
|
||||
name.app = "shiny_cast",
|
||||
name.token,
|
||||
name.secret
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{path}{app folder path}
|
||||
|
||||
\item{name.app}{name of deployed app}
|
||||
|
||||
\item{name.token}{stored name of token}
|
||||
|
||||
\item{name.secret}{stored name of secret}
|
||||
}
|
||||
\value{
|
||||
deploy
|
||||
}
|
||||
\description{
|
||||
This is really just a simple wrapper
|
||||
}
|
||||
\examples{
|
||||
# deploy_shiny()
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user