Skip to content

Commit aaf88a3

Browse files
committed
2 parents 3822780 + 634f610 commit aaf88a3

File tree

7 files changed

+90
-25
lines changed

7 files changed

+90
-25
lines changed

.Rbuildignore

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
^codecov\.yml$
2-
^\./app\.R$
3-
^reference$
4-
^docs$
5-
^_pkgdown\.yml$
6-
^\.travis\.yml$
7-
^Dockerfile$
8-
^data-raw$
9-
^.*\.Rproj$
10-
^\.Rproj\.user$
11-
^devtools_history\.R$
12-
^README\.Rmd$
13-
^readme_figures$
14-
^LICENSE\.md$
15-
^CODE_OF_CONDUCT\.md$
16-
^app\.R$
17-
^cran-comments\.md$
18-
^CRAN-RELEASE$
1+
^codecov\.yml$
2+
^\./app\.R$
3+
^reference$
4+
^docs$
5+
^_pkgdown\.yml$
6+
^\.travis\.yml$
7+
^Dockerfile$
8+
^data-raw$
9+
^.*\.Rproj$
10+
^\.Rproj\.user$
11+
^devtools_history\.R$
12+
^README\.Rmd$
13+
^readme_figures$
14+
^LICENSE\.md$
15+
^CODE_OF_CONDUCT\.md$
16+
^app\.R$
17+
^cran-comments\.md$
18+
^CRAN-RELEASE$
19+
^appveyor\.yml$

README.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ knitr::opts_chunk$set(
1717

1818
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
1919
[![Travis build status](https://travis-ci.org/ThinkR-open/golem.svg?branch=master)](https://travis-ci.org/ThinkR-open/golem)
20+
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/ThinkR-open/golem?branch=master&svg=true)](https://ci.appveyor.com/project/ThinkR-open/golem)
2021
[![Coverage status](https://codecov.io/gh/ThinkR-open/golem/branch/master/graph/badge.svg)](https://codecov.io/github/ThinkR-open/golem?branch=master)
2122

2223
<img src="https://raw.githubusercontent.com/ThinkR-open/golem/master/inst/rstudio/templates/project/golem.png" width=250px>
@@ -54,6 +55,7 @@ _Building Big Shiny Apps_
5455
### Video
5556

5657
- [{golem} and Effective Shiny Development Methods](https://www.youtube.com/watch?v=OU1-CkSVdTI)
58+
- [Hands-on demonstration of {golem}](https://shinydevseries.com/post/golem-demo/)
5759

5860
## Installation
5961

@@ -95,4 +97,4 @@ Read [Deploying Apps with {golem}](https://thinkr-open.github.io/golem/articles/
9597
## CoC
9698

9799
Please note that this project is released with a [Contributor Code of Conduct](https://www.contributor-covenant.org/version/1/0/0/code-of-conduct.html).
98-
By participating in this project you agree to abide by its terms.
100+
By participating in this project you agree to abide by its terms.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
55
[![Travis build
66
status](https://travis-ci.org/ThinkR-open/golem.svg?branch=master)](https://travis-ci.org/ThinkR-open/golem)
7+
[![AppVeyor build
8+
status](https://ci.appveyor.com/api/projects/status/github/ThinkR-open/golem?branch=master&svg=true)](https://ci.appveyor.com/project/ThinkR-open/golem)
79
[![Coverage
810
status](https://codecov.io/gh/ThinkR-open/golem/branch/master/graph/badge.svg)](https://codecov.io/github/ThinkR-open/golem?branch=master)
911

@@ -47,6 +49,8 @@ This package is part of a series of tools for Shiny, which includes:
4749

4850
- [{golem} and Effective Shiny Development
4951
Methods](https://www.youtube.com/watch?v=OU1-CkSVdTI)
52+
- [Hands-on demonstration of
53+
{golem}](https://shinydevseries.com/post/golem-demo/)
5054

5155
## Installation
5256

appveyor.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# DO NOT CHANGE the "init" and "install" sections below
2+
3+
# Download script file from GitHub
4+
init:
5+
ps: |
6+
$ErrorActionPreference = "Stop"
7+
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
8+
Import-Module '..\appveyor-tool.ps1'
9+
10+
install:
11+
ps: Bootstrap
12+
13+
cache:
14+
- C:\RLibrary
15+
16+
environment:
17+
NOT_CRAN: true
18+
# env vars that may need to be set, at least temporarily, from time to time
19+
# see https://github.com/krlmlr/r-appveyor#readme for details
20+
# USE_RTOOLS: true
21+
# R_REMOTES_STANDALONE: true
22+
23+
# Adapt as necessary starting from here
24+
25+
build_script:
26+
- travis-tool.sh install_deps
27+
28+
test_script:
29+
- travis-tool.sh run_tests
30+
31+
on_failure:
32+
- 7z a failure.zip *.Rcheck\*
33+
- appveyor PushArtifact failure.zip
34+
35+
artifacts:
36+
- path: '*.Rcheck\**\*.log'
37+
name: Logs
38+
39+
- path: '*.Rcheck\**\*.out'
40+
name: Logs
41+
42+
- path: '*.Rcheck\**\*.fail'
43+
name: Logs
44+
45+
- path: '*.Rcheck\**\*.Rout'
46+
name: Logs
47+
48+
- path: '\*_*.tar.gz'
49+
name: Bits
50+
51+
- path: '\*_*.zip'
52+
name: Bits

inst/shinyexample/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: shinyexample
22
Title: An Amazing Shiny App
33
Version: 0.0.0.9000
4-
Authors@R: person("Vincent", "Guyader", email = "vincent@thinkr.fr", role = c("aut", "cre"))
4+
Authors@R: person("firstname", "lastname", email = "your@email.com", role = c("aut", "cre"))
55
Description: What the package does (one paragraph).
66
License: What license is it under?
77
Encoding: UTF-8

inst/shinyexample/NAMESPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
export(run_app)
44
import(shiny)
5-
importFrom(shiny,addResourcePath)
6-
importFrom(shiny,runApp)
5+
importFrom(golem,with_golem_options)
6+
importFrom(shiny,shinyApp)

tests/testthat/test-zreload.R

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
context("tests reload")
22

3-
3+
## fake package
4+
fakename <- paste0(sample(letters, 10, TRUE), collapse = "")
5+
tpdir <- tempdir()
6+
if(!dir.exists(file.path(tpdir,fakename))){
7+
create_golem(file.path(tpdir, fakename), open = FALSE)
8+
}
9+
pkg_reload <- file.path(tpdir, fakename)
410

511
test_that("test document_and_reload",{
6-
with_dir(pkg,{
12+
with_dir(pkg_reload,{
713
file.create("R/sum.R")
814
cat(
915
"#' @export
@@ -14,7 +20,7 @@ test_that("test document_and_reload",{
1420
})
1521

1622
test_that("test detach_all_attached",{
17-
with_dir(pkg,{
23+
with_dir(pkg_reload,{
1824
test <- detach_all_attached()
1925
ok <- all(purrr::map_lgl(test,~ is.null(.x)))
2026
testthat::expect_true(ok)

0 commit comments

Comments
 (0)