Move Shiny files to project root

Can't reference legderr files unless they are within the Shiny app folder. This project gets weirder and weirder, will probably need to be split eventually.
This commit is contained in:
Matt
2016-04-14 16:16:07 -05:00
parent 91369b69be
commit ee69659584
4 changed files with 13 additions and 5 deletions

View File

@ -2,6 +2,6 @@ name: ledgerr-shiny
account: mattbk account: mattbk
server: shinyapps.io server: shinyapps.io
appId: 94541 appId: 94541
bundleId: 420068 bundleId: 420069
url: https://mattbk.shinyapps.io/ledgerr-shiny/ url: https://mattbk.shinyapps.io/ledgerr-shiny/
when: 1460668046.58897 when: 1460668285.29384

View File

@ -17,9 +17,6 @@ library(gsheet)
library(R.utils) #for sourceDirectory() library(R.utils) #for sourceDirectory()
sourceDirectory("ledgerr/R") sourceDirectory("ledgerr/R")
# For Shiny
library(rsconnect)
# Pull Google sheet locations from another file (journal1, journal2, etc.) # Pull Google sheet locations from another file (journal1, journal2, etc.)
source("config.R") source("config.R")
@ -65,4 +62,15 @@ a$Net<-rowSums(a[,2:3],na.rm=T)
colSums(a[-1]) colSums(a[-1])
```
```{r deploy}
# See Shiny documentation for authorizing computer to deploy to shiny.io.
# For Shiny
library(rsconnect)
# Deploy
deployApp()
``` ```