Skip to content

Commit 7f1bd95

Browse files
committed
rebrand all the things to posit
1 parent d678590 commit 7f1bd95

25 files changed

+199
-144
lines changed

.github/CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ representative at an online or offline event.
5959
## Enforcement
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at codeofconduct@rstudio.com.
62+
reported to the community leaders responsible for enforcement at codeofconduct@posit.co.
6363
All complaints will be reviewed and investigated promptly and fairly.
6464

6565
All community leaders are obligated to respect the privacy and security of the

.github/CONTRIBUTING.md

+10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ This outlines how to propose a change to connectapi.
44
For more detailed info about contributing to this, and other tidyverse packages, please see the
55
[**development contributing guide**](https://rstd.io/tidy-contrib).
66

7+
## Testing
8+
9+
- Most tests can be run using `testthat`
10+
- If you are using an x86 Mac or another system with `docker` and `docker-compose` installed, then
11+
you can also use our inbuilt integration testing locally:
12+
```
13+
connectapi:::build_test_env()
14+
```
15+
- Then the integration test suite should run with `devtools::test()`
16+
717
## Fixing typos
818

919
You can fix typos, spelling mistakes, or grammatical errors in the documentation directly using the GitHub web interface, as long as the changes are made in the _source_ file.

.github/ISSUE_TEMPLATE/issue_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Bug report or feature request
33
about: Describe a bug you've seen or make a case for a new feature
44
---
55

6-
Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on <https://stackoverflow.com/> or <https://community.rstudio.com/>.
6+
Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on <https://stackoverflow.com/> or <https://community.posit.co/>.
77

88
Please include a minimal reproducible example (AKA a reprex). If you've never heard of a [reprex](http://reprex.tidyverse.org/) before, start by reading <https://www.tidyverse.org/help/#reprex>.
99

.github/SUPPORT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For additional reprex pointers, check out the [Get help!](https://www.tidyverse.
1414

1515
Armed with your reprex, the next step is to figure out [where to ask](https://www.tidyverse.org/help/#where-to-ask).
1616

17-
* If it's a question: start with [community.rstudio.com](https://community.rstudio.com/), and/or StackOverflow. There are more people there to answer questions.
17+
* If it's a question: start with [community.posit.co](https://community.posit.co/), and/or StackOverflow. There are more people there to answer questions.
1818

1919
* If it's a bug: you're in the right place, [file an issue](https://github.com/rstudio/connectapi/issues/new).
2020

.github/local/run_tests.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
options(
22
"repos" = c(
3-
RSPM = "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"
3+
RSPM = "https://packagemanager.posit.co/cran/__linux__/bionic/latest"
44
)
55
)
66
install.packages("devtools")

DESCRIPTION

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Type: Package
22
Package: connectapi
3-
Title: Utilities for Interacting with the 'RStudio Connect' Server API
3+
Title: Utilities for Interacting with the 'Posit Connect' Server API
44
Version: 0.1.2.9000
55
Authors@R:
66
c(person(given = "Sean",
@@ -9,14 +9,14 @@ Authors@R:
99
person(given = "Cole",
1010
family = "Arendt",
1111
role = c("aut", "cre"),
12-
email = "cole@rstudio.com"),
13-
person(given = "Posit Software, PBC",
12+
email = "cole@posit.co"),
13+
person(given = "Posit, PBC",
1414
role = c("cph", "fnd")))
1515
Description: Provides a helpful 'R6' class and methods for interacting with
16-
the 'RStudio Connect' Server API along with some meaningful utility functions
17-
for regular tasks. API documentation varies by 'RStudio Connect' installation
16+
the 'Posit Connect' Server API along with some meaningful utility functions
17+
for regular tasks. API documentation varies by 'Posit Connect' installation
1818
and version, but the latest documentation is also hosted publicly at
19-
<https://docs.rstudio.com/connect/api/>.
19+
<https://docs.posit.co/connect/api/>.
2020
License: MIT + file LICENSE
2121
URL: https://github.com/rstudio/connectapi
2222
Imports:

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
YEAR: 2022
2-
COPYRIGHT HOLDER: RStudio PBC
2+
COPYRIGHT HOLDER: Posit Software, PBC

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2022 RStudio PBC
3+
Copyright (c) 2022 Posit Software, PBC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

R/connect.R

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Class representing a Connect API client
22
#'
3-
#' @name RStudioConnect
3+
#' @name PositConnect
44
#'
55
#' @section Usage:
66
#' \preformatted{
@@ -51,9 +51,9 @@ Connect <- R6::R6Class(
5151
# helpers ----------------------------------------------------------
5252

5353
print = function(...) {
54-
cat("RStudio Connect API Client: \n")
55-
cat(" RStudio Connect Server: ", self$server, "\n", sep = "")
56-
cat(" RStudio Connect API Key: ", paste0(strrep("*", 11), substr(self$api_key, nchar(self$api_key) - 3, nchar(self$api_key))), "\n", sep = "")
54+
cat("Posit Connect API Client: \n")
55+
cat(" Posit Connect Server: ", self$server, "\n", sep = "")
56+
cat(" Posit Connect API Key: ", paste0(strrep("*", 11), substr(self$api_key, nchar(self$api_key) - 3, nchar(self$api_key))), "\n", sep = "")
5757
# TODO: something about API key... role... ?
5858
# TODO: point to docs on methods... how to see methods?
5959
cat("\n")
@@ -742,22 +742,22 @@ Connect <- R6::R6Class(
742742
)
743743
)
744744

745-
#' Create a connection to RStudio Connect
745+
#' Create a connection to Posit Connect
746746
#'
747-
#' Creates a connection to RStudio Connect using the server URL and an api key.
747+
#' Creates a connection to Posit Connect using the server URL and an api key.
748748
#' Validates the connection and checks that the version of the server is
749749
#' compatible with the current version of the package.
750750
#'
751-
#' @param server The URL for accessing RStudio Connect. Defaults to environment
751+
#' @param server The URL for accessing Posit Connect. Defaults to environment
752752
#' variable CONNECT_SERVER
753-
#' @param api_key The API Key to authenticate to RStudio Connect with. Defaults
753+
#' @param api_key The API Key to authenticate to Posit Connect with. Defaults
754754
#' to environment variable CONNECT_API_KEY
755755
#' @param prefix The prefix used to determine environment variables
756756
#' @param ... Additional arguments. Not used at present
757757
#' @param .check_is_fatal Whether to fail if "check" requests fail. Useful in
758758
#' rare cases where more http request customization is needed for requests to
759759
#' succeed.
760-
#' @return An RStudio Connect R6 object that can be passed along to methods
760+
#' @return A Posit Connect R6 object that can be passed along to methods
761761
#'
762762
#' @rdname connect
763763
#'

R/content.R

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Content <- R6::R6Class(
99
public = list(
1010
#' @field connect An R6 Connect object
1111
connect = NULL,
12-
#' @field content The content details from RStudio Connect
12+
#' @field content The content details from Posit Connect
1313
content = NULL,
1414

1515
initialize = function(connect, content) {
@@ -224,7 +224,7 @@ Content <- R6::R6Class(
224224
)
225225
},
226226
print = function(...) {
227-
cat("RStudio Connect Content: \n")
227+
cat("Posit Connect Content: \n")
228228
cat(" Content GUID: ", self$get_content()$guid, "\n", sep = "")
229229
cat(" Content URL: ", dashboard_url_chr(self$get_connect()$server, self$get_content()$guid), "\n", sep = "")
230230
cat(" Content Title: ", self$get_content()$title, "\n", sep = "")
@@ -491,7 +491,7 @@ content_ensure <- function(connect, name = uuid::UUIDgenerate(), title = name, g
491491
#' Get Jobs
492492
#'
493493
#' \lifecycle{experimental} Retrieve details about jobs associated with a `content_item`.
494-
#' "Jobs" in RStudio Connect are content executions
494+
#' "Jobs" in Posit Connect are content executions
495495
#'
496496
#' @param content A Content object, as returned by `content_item()`
497497
#' @param key The key for a job
@@ -533,7 +533,7 @@ get_job <- function(content, key) {
533533
#' - PAM is the authentication method
534534
#' - `Applications.RunAsCurrentUser` is enabled on the server
535535
#'
536-
#' Also worth noting that the `run_as` user must exist on the RStudio Connect
536+
#' Also worth noting that the `run_as` user must exist on the Posit Connect
537537
#' server (as a linux user) and have appropriate group memberships, or you will
538538
#' get a `400: Bad Request`. Set to `NULL` to use the default RunAs user / unset
539539
#' any current configuration.
@@ -597,7 +597,7 @@ content_delete <- function(content, force=FALSE) {
597597
#'
598598
#' Update settings for a content item. For a list of all settings, see the
599599
#' [latest
600-
#' documentation](https://docs.rstudio.com/connect/api/#patch-/v1/content/{guid})
600+
#' documentation](https://docs.posit.co/connect/api/#patch-/v1/content/{guid})
601601
#' or the documentation for your server via `connectapi::browse_api_docs()`.
602602
#'
603603
#' Popular selections are `content_update(access_type="all")`,
@@ -609,7 +609,7 @@ content_delete <- function(content, force=FALSE) {
609609
#' - `content_update_owner()` is a helper to make it easier to change owner
610610
#'
611611
#' @param content An R6 content item
612-
#' @param ... Settings up update that are passed along to RStudio Connect
612+
#' @param ... Settings up update that are passed along to Posit Connect
613613
#' @param access_type One of "all", "logged_in", or "acl"
614614
#' @param owner_guid The GUID of a user who is a publisher, so that they can
615615
#' become the new owner of the content
@@ -646,7 +646,7 @@ content_update_owner <- function(content, owner_guid) {
646646

647647
#' Verify Content Name
648648
#'
649-
#' Ensures that a content name fits the specifications / requirements of RStudio
649+
#' Ensures that a content name fits the specifications / requirements of Posit
650650
#' Connect. Throws an error if content name is invalid. Content names (as of the
651651
#' time of writing) must be between 3 and 64 alphanumeric characters, dashes,
652652
#' and underscores

R/deploy.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Bundle <- R6::R6Class(
2222
},
2323

2424
print = function(...) {
25-
cat("RStudio Connect Bundle: \n")
25+
cat("Posit Connect Bundle: \n")
2626
cat(" Path: ", self$path, "\n", sep = "")
2727
cat(" Size: ", capture.output(self$size), "\n", sep = "")
2828
cat("\n")
@@ -69,7 +69,7 @@ Task <- R6::R6Class(
6969
self$data
7070
},
7171
print = function(...) {
72-
cat("RStudio Connect Task: \n")
72+
cat("Posit Connect Task: \n")
7373
cat(" Task ID: ", self$get_task()$task_id, "\n", sep = "")
7474
cat("\n")
7575
invisible(self)
@@ -109,7 +109,7 @@ ContentTask <- R6::R6Class(
109109
self$data
110110
},
111111
print = function(...) {
112-
cat("RStudio Connect Content Task: \n")
112+
cat("Posit Connect Content Task: \n")
113113
cat(" Content GUID: ", self$get_content()$guid, "\n", sep = "")
114114
cat(" URL: ", dashboard_url_chr(self$get_connect()$server, self$get_content()$guid), "\n", sep = "")
115115
cat(" Task ID: ", self$get_task()$task_id, "\n", sep = "")
@@ -143,7 +143,7 @@ Vanity <- R6::R6Class(
143143
},
144144

145145
print = function(...) {
146-
cat("RStudio Connect Content Vanity URL: \n")
146+
cat("Posit Connect Content Vanity URL: \n")
147147
cat(" Content GUID: ", self$get_content()$guid, "\n", sep = "")
148148
cat(" Vanity URL: ", self$get_vanity()$path, "\n", sep = "")
149149
cat("\n")
@@ -291,7 +291,7 @@ download_bundle <- function(content, filename = fs::file_temp(pattern = "bundle"
291291

292292
#' Deploy a bundle
293293
#'
294-
#' Deploys a bundle (tarball) to an RStudio Connect server. If not provided,
294+
#' Deploys a bundle (tarball) to an Posit Connect server. If not provided,
295295
#' `name` (a unique identifier) will be an auto-generated alphabetic string. If
296296
#' deploying to an existing endpoint, you can set `name` or `guid` to the
297297
#' desired content.

0 commit comments

Comments
 (0)