Skip to content

Commit 23daa07

Browse files
authored
Merge pull request #648 from ThinkR-open/dev
2 parents f90ae42 + c498b70 commit 23daa07

File tree

4 files changed

+12
-49
lines changed

4 files changed

+12
-49
lines changed

R/disable_autoload.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
#' Disabling Shiny Autoload of R Scripts
22
#'
3-
#' @inherit add_module
3+
#' @inheritParams add_module
44
#'
55
#' @export
66
#'
77
#' @examples
88
#' if (interactive()){
99
#' disable_autoload()
1010
#' }
11+
#'
12+
#' @return The path to the file, invisibly.
1113
disable_autoload <- function(
1214
pkg = get_golem_wd()
1315
){

cran-comments.md

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,12 @@
11
## Test environments
2-
* local OS X install, R 3.6.0
3-
* ubuntu 14.04 (on travis-ci), R 3.6.0
4-
* win-builder (devel and release)
2+
* local R installation, R 4.0.5
3+
* ubuntu 16.04 (on travis-ci), R 4.0.5
4+
* win-builder (devel)
55

66
## R CMD check results
77

8-
0 errors | 0 warnings | 1 note
8+
0 errors | 0 warnings | 0 notes
99

10-
* This is a resubmission.
10+
## Comments
1111

12-
Feedbacks from previous submission:
13-
14-
```
15-
please replace \dontrun{} by \donttest{} or if(interactive()){}
16-
(for interactive examples) in your Rd-files if this is feasible.
17-
```
18-
19-
-> We replaced them
20-
21-
```
22-
Please ensure that your functions do not write by default or in your
23-
examples/vignettes/tests in the user's home filespace.(...).
24-
Please only write/save files if the user has specified
25-
a directory.
26-
```
27-
28-
-> One of the goal of {golem} is to write files to disk, in the spirit of {usethis}. But nothing is written without the user knowing it:
29-
30-
+ when first using a project created by golem, the user has to set a series of options, one being the current "golem working directory".
31-
+ All writing functions then have a parameter to specify the path, which default to a path returned by `get_golem_wd`.
32-
+ The `set_golem_wd` allows to change globally this path, and the user is informed of that through a message to the console whenever this path is set.
33-
34-
```
35-
Please ensure that you do not install packages in your functions without
36-
the user's knowledge or without the possibility to change the target
37-
library.
38-
```
39-
40-
-> There is no function in {golem} installing packages: the only "install.packages"to be found is the one which is written inside the Dockerfile generated by `add_dockerfile`, so nothing is installed in the user library.
41-
42-
```
43-
You are using installed.packages(): do not use
44-
it to find out if a named package is installed (...)
45-
nor to find out if a package is usable
46-
```
47-
48-
-> We used the install.packages function to check which packages are of priority 'basic'. We switched to an hardcoded vector containing these packages.
12+
* Maintainer has changed.

man/disable_autoload.Rd

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-use_recomended.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
test_that("test use_recommended_deps",{
2+
testthat::skip_on_cran()
23
with_dir(pkg,{
34
packages <- c('shiny', 'DT', 'attempt', 'glue', 'golem', 'htmltools')
45
to_add <- c()

0 commit comments

Comments
 (0)