Skip to content

Commit

Permalink
Defunct DigitalOcean functions (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke authored Aug 20, 2020
1 parent fdcd33e commit 9a7b6eb
Show file tree
Hide file tree
Showing 27 changed files with 107 additions and 902 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Suggests:
base64enc,
htmlwidgets,
visNetwork,
analogsea (>= 0.7.0),
later,
readr,
yaml,
Expand Down Expand Up @@ -83,6 +82,7 @@ Collate:
'ui.R'
'utf8.R'
'utils-pipe.R'
'utils.R'
'validate_api_spec.R'
'zzz.R'
RdMacros: lifecycle
8 changes: 5 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ plumber 1.0.0

* `addSerializer()` has been deprecated in favor of `register_serializer()` (#584)

* `getCharacterSet()` has been deprecated in favor of `get_character_set()`.
* `randomCookieKey()` has been deprecated in favor of `random_cookie_key()`.
* `sessionCookie()` has been deprecated in favor of `session_cookie()`.
* DigitalOcean helper functions are now defunct (`do_*()`). The funtionality and documentation on how to deploy to DigitalOcean has been moved to [`plumberDeploy`](https://github.com/meztez/plumberDeploy) (by @meztez) (#649)

* `getCharacterSet()` has been deprecated in favor of `get_character_set()` (#651)
* `randomCookieKey()` has been deprecated in favor of `random_cookie_key()` (#651)
* `sessionCookie()` has been deprecated in favor of `session_cookie()` (#651)

### New features

Expand Down
485 changes: 41 additions & 444 deletions R/digital-ocean.R

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

is_available <- function (package, version = NULL) {
installed <- nzchar(system.file(package = package))
if (is.null(version)) {
return(installed)
}
installed && isTRUE(utils::packageVersion(package) >= version)
}
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# plumber <a href='https://rstudio.github.io/plumber'><img src='man/figures/logo.svg' align="right" height="138.5" style="margin:10px;" /></a>
# `plumber` <a href='https://rstudio.github.io/plumber'><img src='man/figures/logo.svg' align="right" height="138.5" style="margin:10px;" /></a>

<!-- badges: start -->
[![R build status](https://github.com/rstudio/plumber/workflows/R-CMD-check/badge.svg)](https://github.com/rstudio/plumber/actions)
Expand Down Expand Up @@ -38,7 +38,7 @@ function(a, b) {
}
```

These comments allow plumber to make your R functions available as API
These comments allow `plumber` to make your R functions available as API
endpoints. You can use either `#*` as the prefix or `#'`, but we recommend the
former since `#'` will collide with Roxygen.

Expand Down Expand Up @@ -97,10 +97,10 @@ library(plumber)
## Hosting

If you're just getting started with hosting cloud servers, the
[DigitalOcean](https://www.digitalocean.com) integration included in plumber
[DigitalOcean](https://www.digitalocean.com) integration included in `plumber`
will be the best way to get started. You'll be able to get a server hosting your
custom API in just two R commands. Full documentation is available at
https://www.rplumber.io/articles/hosting.html#digitalocean-1.
custom API in just two R commands. To deploy to DigitalOcean, check out the
`plumber` companion package [`plumberDeploy`](https://github.com/meztez/plumberDeploy).

[RStudio Connect](https://www.rstudio.com/products/connect/) is a commercial
publishing platform that enables R developers to easily publish a variety of R
Expand All @@ -111,7 +111,6 @@ A couple of other approaches to hosting plumber are also made available:

- PM2 - https://www.rplumber.io/articles/hosting.html#pm2-1
- Docker - https://www.rplumber.io/articles/hosting.html#docker-basic-

## Related Projects

- [OpenCPU](https://www.opencpu.org/) - A server designed for hosting R APIs
Expand Down
1 change: 0 additions & 1 deletion inst/.gitignore

This file was deleted.

27 changes: 0 additions & 27 deletions inst/hosted-new.R

This file was deleted.

49 changes: 0 additions & 49 deletions inst/hosted/analogsea-provision.R

This file was deleted.

42 changes: 0 additions & 42 deletions inst/hosted/docker-compose.yml

This file was deleted.

57 changes: 0 additions & 57 deletions inst/hosted/nginx.conf

This file was deleted.

3 changes: 0 additions & 3 deletions inst/server/forward.conf

This file was deleted.

21 changes: 0 additions & 21 deletions inst/server/nginx-ssl.conf

This file was deleted.

14 changes: 0 additions & 14 deletions inst/server/nginx.conf

This file was deleted.

4 changes: 0 additions & 4 deletions inst/server/plumber-api.conf

This file was deleted.

10 changes: 0 additions & 10 deletions inst/server/plumber.service

This file was deleted.

File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions man/digitalocean.Rd

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

53 changes: 0 additions & 53 deletions man/do_configure_https.Rd

This file was deleted.

Loading

0 comments on commit 9a7b6eb

Please sign in to comment.