Skip to content

Commit

Permalink
Add back Meta vignette index, standardize vignette names, and update …
Browse files Browse the repository at this point in the history
…revdep folder
  • Loading branch information
StevenMMortimer committed Jul 21, 2020
1 parent b187cca commit 65f182c
Show file tree
Hide file tree
Showing 78 changed files with 178 additions and 4,648 deletions.
3 changes: 2 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ which contains the following vignettes:

* [Getting Started](https://StevenMMortimer.github.io/salesforcer/articles/getting-started.html)
* [Supported Queries](https://StevenMMortimer.github.io/salesforcer/articles/supported-queries.html)
* [Working with the Bulk APIs](https://StevenMMortimer.github.io/salesforcer/articles/working-with-the-bulk-apis.html)
* [Working with Bulk APIs](https://StevenMMortimer.github.io/salesforcer/articles/working-with-bulk-apis.html)
* [Working with Reports](https://StevenMMortimer.github.io/salesforcer/articles/working-with-reports.html)
* [Working with Attachments](https://StevenMMortimer.github.io/salesforcer/articles/working-with-attachments.html)
* [Working with Metadata](https://StevenMMortimer.github.io/salesforcer/articles/working-with-metadata.html)
* [Passing Control Args](https://StevenMMortimer.github.io/salesforcer/articles/passing-control-args.html)
Expand Down
42 changes: 22 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ following vignettes:
Started](https://StevenMMortimer.github.io/salesforcer/articles/getting-started.html)
- [Supported
Queries](https://StevenMMortimer.github.io/salesforcer/articles/supported-queries.html)
- [Working with the Bulk
APIs](https://StevenMMortimer.github.io/salesforcer/articles/working-with-the-bulk-apis.html)
- [Working with Bulk
APIs](https://StevenMMortimer.github.io/salesforcer/articles/working-with-bulk-apis.html)
- [Working with
Reports](https://StevenMMortimer.github.io/salesforcer/articles/working-with-reports.html)
- [Working with
Attachments](https://StevenMMortimer.github.io/salesforcer/articles/working-with-attachments.html)
- [Working with
Expand Down Expand Up @@ -166,8 +168,8 @@ created_records
#> # A tibble: 2 x 2
#> id success
#> <chr> <lgl>
#> 1 0033s000013Y6h7AAC TRUE
#> 2 0033s000013Y6h8AAC TRUE
#> 1 0033s000013Y9dsAAC TRUE
#> 2 0033s000013Y9dtAAC TRUE
```

### Query
Expand All @@ -192,8 +194,8 @@ queried_records
#> # A tibble: 2 x 3
#> Id FirstName LastName
#> <chr> <chr> <chr>
#> 1 0033s000013Y6h7AAC Test Contact-Create-1
#> 2 0033s000013Y6h8AAC Test Contact-Create-2
#> 1 0033s000013Y9dsAAC Test Contact-Create-1
#> 2 0033s000013Y9dtAAC Test Contact-Create-2
```

You’ll notice that the `"Account.Name"` column does not appear in the
Expand Down Expand Up @@ -226,8 +228,8 @@ updated_records
#> # A tibble: 2 x 2
#> id success
#> <chr> <lgl>
#> 1 0033s000013Y6h7AAC TRUE
#> 2 0033s000013Y6h8AAC TRUE
#> 1 0033s000013Y9dsAAC TRUE
#> 2 0033s000013Y9dtAAC TRUE
```

### Bulk Operations
Expand Down Expand Up @@ -264,8 +266,8 @@ created_records
#> # A tibble: 2 x 4
#> Id Success Created Error
#> <chr> <lgl> <lgl> <lgl>
#> 1 0033s000013Y6hCAAS TRUE TRUE NA
#> 2 0033s000013Y6hDAAS TRUE TRUE NA
#> 1 0033s000013Y9dwAAC TRUE TRUE NA
#> 2 0033s000013Y9dxAAC TRUE TRUE NA

# query large recordsets using the Bulk API
my_soql <- sprintf("SELECT Id,
Expand All @@ -280,17 +282,17 @@ queried_records
#> # A tibble: 2 x 3
#> Id FirstName LastName
#> <chr> <chr> <chr>
#> 1 0033s000013Y6hCAAS Test Contact-Create-1
#> 2 0033s000013Y6hDAAS Test Contact-Create-2
#> 1 0033s000013Y9dwAAC Test Contact-Create-1
#> 2 0033s000013Y9dxAAC Test Contact-Create-2

# delete these records using the Bulk 2.0 API
deleted_records <- sf_delete(queried_records$Id, "Contact", api_type = "Bulk 2.0")
deleted_records
#> # A tibble: 2 x 4
#> Id sf__Id sf__Created sf__Error
#> <chr> <chr> <lgl> <lgl>
#> 1 0033s000013Y6hCAAS 0033s000013Y6hCAAS FALSE NA
#> 2 0033s000013Y6hDAAS 0033s000013Y6hDAAS FALSE NA
#> 1 0033s000013Y9dwAAC 0033s000013Y9dwAAC FALSE NA
#> 2 0033s000013Y9dxAAC 0033s000013Y9dxAAC FALSE NA
```

### Using the Metadata API
Expand Down Expand Up @@ -373,12 +375,12 @@ acct_fields %>%
#> [[1]]
#> # A tibble: 7 x 4
#> active defaultValue label value
#> <lgl> <lgl> <chr> <chr>
#> 1 TRUE FALSE Prospect Prospect
#> 2 TRUE FALSE Customer - Direct Customer - Direct
#> 3 TRUE FALSE Customer - Channel Customer - Channel
#> 4 TRUE FALSE Channel Partner / Reseller Channel Partner / Reseller
#> 5 TRUE FALSE Installation Partner Installation Partner
#> <chr> <chr> <chr> <chr>
#> 1 true false Prospect Prospect
#> 2 true false Customer - Direct Customer - Direct
#> 3 true false Customer - Channel Customer - Channel
#> 4 true false Channel Partner / Reseller Channel Partner / Reseller
#> 5 true false Installation Partner Installation Partner
#> # … with 2 more rows
```

Expand Down
4 changes: 2 additions & 2 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ navbar:
href: articles/getting-started.html
- text: Supported Queries
href: articles/supported-queries.html
- text: Working with the Bulk APIs
href: articles/working-with-the-bulk-apis.html
- text: Working with Bulk APIs
href: articles/working-with-bulk-apis.html
- text: Working with Reports
href: articles/working-with-reports.html
- text: Working with Attachments
Expand Down
20 changes: 16 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# Release summary

## Test environments

* Local OSX install, R 4.0.0
* Ubuntu 16.04 (xenial on Travis-CI) - R-release 4.0.0, R-oldrel (3.6.3), R-devel (eventually 4.1.0).
* Windows (on Appveyor) - R 4.0.2
* Win-builder - R-release 4.0.0
* local mac OS install, R 4.0.2
* ubuntu 16.04 (on github actions), R-release, R 4.0.2
* mac OS 10.15.5 (on github actions) R-release, R 4.0.2
* Microsoft Windows Server 2019 10.0.17763 (on github actions) R-release, R 4.0.2
* win-builder (devel)

## R CMD check results

0 ERRORs | 0 WARNINGs | 0 NOTEs

----

## revdepcheck results

We checked 0 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages
3 changes: 2 additions & 1 deletion index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ which contains the following vignettes:

* [Getting Started](https://StevenMMortimer.github.io/salesforcer/articles/getting-started.html)
* [Supported Queries](https://StevenMMortimer.github.io/salesforcer/articles/supported-queries.html)
* [Working with the Bulk APIs](https://StevenMMortimer.github.io/salesforcer/articles/working-with-the-bulk-apis.html)
* [Working with Bulk APIs](https://StevenMMortimer.github.io/salesforcer/articles/working-with-bulk-apis.html)
* [Working with Reports](https://StevenMMortimer.github.io/salesforcer/articles/working-with-reports.html)
* [Working with Attachments](https://StevenMMortimer.github.io/salesforcer/articles/working-with-attachments.html)
* [Working with Metadata](https://StevenMMortimer.github.io/salesforcer/articles/working-with-metadata.html)
* [Passing Control Args](https://StevenMMortimer.github.io/salesforcer/articles/passing-control-args.html)
Expand Down
42 changes: 22 additions & 20 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ following vignettes:
Started](https://StevenMMortimer.github.io/salesforcer/articles/getting-started.html)
- [Supported
Queries](https://StevenMMortimer.github.io/salesforcer/articles/supported-queries.html)
- [Working with the Bulk
APIs](https://StevenMMortimer.github.io/salesforcer/articles/working-with-the-bulk-apis.html)
- [Working with Bulk
APIs](https://StevenMMortimer.github.io/salesforcer/articles/working-with-bulk-apis.html)
- [Working with
Reports](https://StevenMMortimer.github.io/salesforcer/articles/working-with-reports.html)
- [Working with
Attachments](https://StevenMMortimer.github.io/salesforcer/articles/working-with-attachments.html)
- [Working with
Expand Down Expand Up @@ -167,8 +169,8 @@ created_records
#> # A tibble: 2 x 2
#> id success
#> <chr> <lgl>
#> 1 0033s000013Y6f7AAC TRUE
#> 2 0033s000013Y6f8AAC TRUE
#> 1 0033s000013Y9dcAAC TRUE
#> 2 0033s000013Y9ddAAC TRUE
```

### Query
Expand All @@ -193,8 +195,8 @@ queried_records
#> # A tibble: 2 x 3
#> Id FirstName LastName
#> <chr> <chr> <chr>
#> 1 0033s000013Y6f7AAC Test Contact-Create-1
#> 2 0033s000013Y6f8AAC Test Contact-Create-2
#> 1 0033s000013Y9dcAAC Test Contact-Create-1
#> 2 0033s000013Y9ddAAC Test Contact-Create-2
```

You’ll notice that the `"Account.Name"` column does not appear in the
Expand Down Expand Up @@ -227,8 +229,8 @@ updated_records
#> # A tibble: 2 x 2
#> id success
#> <chr> <lgl>
#> 1 0033s000013Y6f7AAC TRUE
#> 2 0033s000013Y6f8AAC TRUE
#> 1 0033s000013Y9dcAAC TRUE
#> 2 0033s000013Y9ddAAC TRUE
```

### Bulk Operations
Expand Down Expand Up @@ -265,8 +267,8 @@ created_records
#> # A tibble: 2 x 4
#> Id Success Created Error
#> <chr> <lgl> <lgl> <lgl>
#> 1 0033s000013Y6h2AAC TRUE TRUE NA
#> 2 0033s000013Y6h3AAC TRUE TRUE NA
#> 1 0033s000013Y9dhAAC TRUE TRUE NA
#> 2 0033s000013Y9diAAC TRUE TRUE NA

# query large recordsets using the Bulk API
my_soql <- sprintf("SELECT Id,
Expand All @@ -281,17 +283,17 @@ queried_records
#> # A tibble: 2 x 3
#> Id FirstName LastName
#> <chr> <chr> <chr>
#> 1 0033s000013Y6h2AAC Test Contact-Create-1
#> 2 0033s000013Y6h3AAC Test Contact-Create-2
#> 1 0033s000013Y9dhAAC Test Contact-Create-1
#> 2 0033s000013Y9diAAC Test Contact-Create-2

# delete these records using the Bulk 2.0 API
deleted_records <- sf_delete(queried_records$Id, "Contact", api_type = "Bulk 2.0")
deleted_records
#> # A tibble: 2 x 4
#> Id sf__Id sf__Created sf__Error
#> <chr> <chr> <lgl> <lgl>
#> 1 0033s000013Y6h2AAC 0033s000013Y6h2AAC FALSE NA
#> 2 0033s000013Y6h3AAC 0033s000013Y6h3AAC FALSE NA
#> 1 0033s000013Y9dhAAC 0033s000013Y9dhAAC FALSE NA
#> 2 0033s000013Y9diAAC 0033s000013Y9diAAC FALSE NA
```

### Using the Metadata API
Expand Down Expand Up @@ -377,12 +379,12 @@ acct_fields %>%
#> [[1]]
#> # A tibble: 7 x 4
#> active defaultValue label value
#> <lgl> <lgl> <chr> <chr>
#> 1 TRUE FALSE Prospect Prospect
#> 2 TRUE FALSE Customer - Direct Customer - Direct
#> 3 TRUE FALSE Customer - Channel Customer - Channel
#> 4 TRUE FALSE Channel Partner / Reseller Channel Partner / Reseller
#> 5 TRUE FALSE Installation Partner Installation Partner
#> <chr> <chr> <chr> <chr>
#> 1 true false Prospect Prospect
#> 2 true false Customer - Direct Customer - Direct
#> 3 true false Customer - Channel Customer - Channel
#> 4 true false Channel Partner / Reseller Channel Partner / Reseller
#> 5 true false Installation Partner Installation Partner
#> # … with 2 more rows
```

Expand Down
9 changes: 9 additions & 0 deletions revdep/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
checks
library
checks.noindex
library.noindex
data.sqlite
*.html
download
lib
cloud.noindex
84 changes: 84 additions & 0 deletions revdep/check.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
if (Sys.getenv("DISPLAY") == "") stop("Run with xvfb-run")

free <- system(paste0("df --output=avail ", tempdir(), " | tail -n 1"), intern = TRUE)
if (as.numeric(free) < 1e8) stop("Set TMPDIR to a location with at least 100 GB free space")

package <- basename(getwd())

library(revdepcheck)

dir_setup(getwd())
if (!revdepcheck:::db_exists(getwd())) {
revdepcheck:::db_setup(getwd())
}


if (length(revdep_todo()) == 0) {
import_revdeps <- revdepcheck:::cran_revdeps(package = package, dependencies = c("Depends", "Imports"), bioc = TRUE)
import_revdeps <- setdiff(import_revdeps, package)
todo_import_revdeps <- import_revdeps

while (FALSE && length(todo_import_revdeps) > 0) {
print(length(todo_import_revdeps))
print(todo_import_revdeps)
print(Sys.time())
new_import_revdeps <- unlist(purrr::map(todo_import_revdeps, revdepcheck:::cran_revdeps, dependencies = c("Depends", "Imports"), bioc = TRUE))
todo_import_revdeps <- setdiff(new_import_revdeps, import_revdeps)
import_revdeps <- union(import_revdeps, new_import_revdeps)
print(new_import_revdeps)

break # only one level for now
}

weak_revdeps <- revdepcheck:::cran_revdeps(package = package, dependencies = c("Suggests", "Enhances", "LinkingTo"), bioc = TRUE)
print(weak_revdeps)

revdep_add(".", c(import_revdeps, weak_revdeps))
}

options(repos = revdepcheck:::get_repos(bioc = TRUE))

todo <- revdep_todo()
withr::with_temp_libpaths(action = "replace", {
crancache::install_packages(c(
todo,
"pillar"
))

remotes::install_local(".")
})

repos <- paste0(
"file://",
file.path(crancache::get_cache_dir(), c("cran-bin", "bioc-bin", "other-bin"))
)

names(repos) <- c("CRAN", "Bioc", "other")

options(repos = repos)

N <- 100
for (i in seq_len(N)) {
try(
revdepcheck::revdep_check(
bioc = TRUE,
dependencies = character(),
quiet = FALSE,
num_workers = 24,
timeout = as.difftime(60, units = "mins")
)
)

if (length(revdep_todo()) == 0) break
}

options(repos = revdepcheck:::get_repos(bioc = TRUE))

withr::with_output_sink(
"revdep/cran.md",
revdep_report_cran()
)

system("git add revdep/*.md")
system("git commit -m 'update revdep results'")
system("git push -u origin HEAD")
2 changes: 0 additions & 2 deletions revdep/checks.noindex/libraries.csv

This file was deleted.

7 changes: 7 additions & 0 deletions revdep/cran.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## revdepcheck results

We checked 0 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages

Binary file removed revdep/data.sqlite
Binary file not shown.
Loading

0 comments on commit 65f182c

Please sign in to comment.