Skip to content

Commit

Permalink
ready for resubmission 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cb4ds committed Mar 5, 2019
1 parent dccfe80 commit ef7f31e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion R/generate_template.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
#' create_new_application(name = 'mytestapp', location = tempdir())
#'
#' @export
create_new_application <- function(name, location = ".", sampleapp = FALSE) {
create_new_application <- function(name, location, sampleapp = FALSE) {
usersep <- .Platform$file.sep
newloc <- paste(location, name, sep = usersep)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ These are included to get you started. You can either start with an empty applic

```r
library(periscope)
create_new_application('emptyapp')
create_new_application('emptyapp', location = tempdir())
runApp('emptyapp')
```

Expand All @@ -48,7 +48,7 @@ runApp('emptyapp')

```r
library(periscope)
create_new_application("sampleapp", sampleapp = TRUE)
create_new_application("sampleapp", location = tempdir(), sampleapp = TRUE)
runApp('sampleapp')

```
Expand Down
5 changes: 3 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

This is the initial release for this package to CRAN, and due to this there is a package build NOTE on rhub and win-builder builds about this being a new package release.

Update the package per initial crann comments:
Update the package per initial CRAN submission comments:

* single-quoted proper names in Title & Description
* added executables to the man (Rd) documentation
* updated tests vignettes and examples to use tempdir() when creating new applications and running tests
* updated package to NOT have a default filesystem location when creating a new templated application
* updated tests vignettes & examples to use tempdir()

---

Expand Down
2 changes: 1 addition & 1 deletion man/create_new_application.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test_create_new_application.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test_that("create_new_application sample", {
})

test_that("create_new_application invalid location", {
expect_warning(create_new_application(name = "SOinvalid", location = tempfile(), sampleapp = FALSE),
expect_warning(create_new_application(name = "Invalid", location = tempfile(), sampleapp = FALSE),
"Framework creation could not proceed, location=.* does not exist!")
})

Expand Down
6 changes: 0 additions & 6 deletions vignettes/new-application.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ create_new_application(name = 'mytestapp', location = app_dir, sampleapp = TRUE)
This generates a default sample application in a subdirectory named *mytestapp*
at the specified location. The location must exist when calling this function.

The location parameter defaults to '.', which means if you leave off this parameter
the application will be created in the current R directory.

*Note*: If the *mytestapp* directory in this location already exists it will not
be overwritten - the function will give a warning and exit without modifying the
user's system.
Expand Down Expand Up @@ -208,9 +205,6 @@ create_new_application(name = 'mytestapp', location = app_dir)
This generates a default blank application in a subdirectory named *mytestapp*
at the specified location. The location must exist when calling this function.

The location parameter defaults to '.', which means if you leave off this parameter
the application will be created in the current R directory.

*Note*: If the *mytestapp* directory in this location already exists it will not
be overwritten - the function will give a warning and exit without modifying the
user's system.
Expand Down

0 comments on commit ef7f31e

Please sign in to comment.