Skip to content

Commit

Permalink
Added missing data & author fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsing1 committed Nov 30, 2024
1 parent 0fead91 commit cbcbb0d
Show file tree
Hide file tree
Showing 8 changed files with 20,631 additions and 19,318 deletions.
4 changes: 2 additions & 2 deletions _freeze/posts/boxr/index/execute-results/html.json

Large diffs are not rendered by default.

36,394 changes: 18,490 additions & 17,904 deletions docs/index-r.xml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list
</tr>
</thead>
<tbody class="list">
<tr data-index="0" data-categories="UiUyQ2JveCUyQ1RJTA==" data-listing-file-modified-sort="1732990378606" data-listing-reading-time-sort="19" data-listing-word-count-sort="3684" data-listing-title-sort="Interacting with box cloud storage: the boxr R package" data-listing-filename-sort="index.qmd">
<tr data-index="0" data-categories="UiUyQ2JveCUyQ1RJTA==" data-listing-date-sort="1732953600000" data-listing-file-modified-sort="1732991725384" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="19" data-listing-word-count-sort="3684" data-listing-title-sort="Interacting with box cloud storage: the boxr R package" data-listing-filename-sort="index.qmd">
<td>
<span class="listing-date">&nbsp;</span>
<span class="listing-date">Nov 30, 2024</span>
</td>
<td>
<a href="./posts/boxr/index.html" class="title listing-title">Interacting with box cloud storage: the boxr R package</a>
</td>
<td>
<span class="listing-author">&nbsp;</span>
<span class="listing-author">Thomas Sandmann</span>
</td>
<td>
<span class="listing-reading-time">19 min</span>
Expand Down
1,973 changes: 1,336 additions & 637 deletions docs/index.xml

Large diffs are not rendered by default.

1,552 changes: 789 additions & 763 deletions docs/posts/boxr/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,6 @@
</url>
<url>
<loc>https://tomsing1.github.io/blog/posts/boxr/index.html</loc>
<lastmod>2024-11-30T18:12:58.606Z</lastmod>
<lastmod>2024-11-30T18:35:25.384Z</lastmod>
</url>
</urlset>
12 changes: 7 additions & 5 deletions posts/boxr/index.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: "Interacting with box cloud storage: the boxr R package"
author: "Thomas Sandmann"
date: "2024-11-30"
execute:
echo: true
warning: false
Expand Down Expand Up @@ -254,8 +256,8 @@ longer valid, so please replace them with your own to follow along.
::::

```{r}
Sys.setenv(BOX_CLIENT_ID="jpxpdi7wum1sc6jtdylt3c0zev088lx7")
Sys.setenv(BOX_CLIENT_SECRET="ayiKjtE8E2sDMyTjXWxvUM2kuSZK0fZ2")
Sys.setenv(BOX_CLIENT_ID="0o5h6s0mey2l5f6l89bkjrmk42vjv9g2")
Sys.setenv(BOX_CLIENT_SECRET="Zfv4UX5Fi2rQAK9Cskcf3RgtFlptrH2c")
```

Usually, I add the `BOX_CLIENT_ID` and `BOX_CLIENT_SECRET` to my `.Renviron`
Expand Down Expand Up @@ -680,7 +682,7 @@ To share the folder (e.g. to _create a collaboration_ in box' lingo), I need to
2. Provide the identifier of the folder I want to share
3. Provide `user_id` of the service account I want to share the folder with.
- This information was returned by the `box_auth_service()` call above.
In this example the `user_id` is `38300848207`.
In this example the `user_id` is `38323581037`.
4. Decide on the `role`, e.g. the set of permissions, I want to grant to the
service account.

Expand All @@ -695,7 +697,7 @@ folder_id <- objects |> # <3>
boxr::box_collab_get(folder_id) # <4>
boxr::box_collab_create( # <5>
dir_id = folder_id,
user_id = "38302244533",
user_id = "38323581037",
role = "co-owner") |>
as.data.frame()
```
Expand All @@ -706,7 +708,7 @@ boxr::box_collab_create( # <5>
4. Confirm that the folder currently doesn't have collaborators, e.g. is not
shared with any other box account (service or otherwise).
5. Share the `tutorial` folder with the service account, whose use_id is
`38302244533`.
`38323581037`.

Now that the service account has access to the `tutorial` folder, I
re-authenticate via `box_auth_service(). The `r_jwt` app can now list the
Expand Down

0 comments on commit cbcbb0d

Please sign in to comment.