diff --git a/404.html b/404.html index fb34546..74ecd9e 100644 --- a/404.html +++ b/404.html @@ -29,7 +29,7 @@ objr - 0.0.0.9004 + 0.0.0.9005 + + + + + +
+
+
+ +
+

Get data frame of assets in workspace

+
+ +
+

Usage

+
assets(
+  workspace_uuid,
+  type = list("document", "folder", "link"),
+  page = NULL,
+  size = NULL,
+  use_proxy = FALSE
+)
+
+ +
+

Arguments

+ + +
workspace_uuid
+

UUID of workspace

+ + +
type
+

List of asset types to return. Defaults to all types; +document, folder and link.

+ + +
page
+

Page number of responses to return (0..N).

+ + +
size
+

Number of results to be returned per page.

+ + +
use_proxy
+

Logical to indicate whether to use proxy

+ +
+
+

Value

+

Data frame

+
+ +
+ + +
+ + + + + + + diff --git a/reference/comments.html b/reference/comments.html index 24ab0b8..76b537d 100644 --- a/reference/comments.html +++ b/reference/comments.html @@ -7,7 +7,7 @@ objr - 0.0.0.9004 + 0.0.0.9005
+ + + + + +
+
+
+ +
+

Read a data file into R

+
+ +
+

Usage

+
read_data(document_uuid, ..., use_proxy = FALSE)
+
+ +
+

Arguments

+ + +
document_uuid
+

UUID of existing document

+ + +
...
+

Additional arguments to pass to read function. See details.

+ + +
use_proxy
+

Logical to indicate whether to use proxy

+ +
+
+

Value

+

For csv and xlsx files, a data frame. For rds files, an R object.

+
+
+

Details

+

This function can be used to read the following data file types: +csv, rds, xlsx.

+

The function works by downloading the file from Objective Connect to a +temporary file and reading it into R. The following functions are used to +read the data and any additional arguments (...) will be passed to these.

File TypeFunction
csvreadr::read_csv()
rdsreadr::read_rds()
xlsxreadxl::read_xlsx()

To check what file type your document is (and thus what function additional +arguments will be passed to), use asset_info().

+

If there are other data file types you would like to download using this +function, please open an issue on the GitHub repository.

+
+ +
+ + +
+ + + + + + + diff --git a/reference/upload_file.html b/reference/upload_file.html index e33e72b..76eb3c3 100644 --- a/reference/upload_file.html +++ b/reference/upload_file.html @@ -7,7 +7,7 @@ objr - 0.0.0.9004 + 0.0.0.9005 + + + + + +
+
+
+ +
+

Upload a file to create a new document version

+
+ +
+

Usage

+
upload_file_version(file, document_uuid, use_proxy = FALSE)
+
+ +
+

Arguments

+ + +
file
+

File path of document to upload

+ + +
document_uuid
+

UUID of existing document

+ + +
use_proxy
+

Logical to indicate whether to use proxy

+ +
+ +
+ + +
+ + + + + + + diff --git a/reference/workspaces.html b/reference/workspaces.html new file mode 100644 index 0000000..c308db9 --- /dev/null +++ b/reference/workspaces.html @@ -0,0 +1,95 @@ + +Get workspaces the current user is a member of — workspaces • objr + Skip to contents + + +
+
+
+ +
+

Get workspaces the current user is a member of

+
+ +
+

Usage

+
workspaces(workgroup_uuid = NULL, page = NULL, size = NULL, use_proxy = FALSE)
+
+ +
+

Arguments

+ + +
workgroup_uuid
+

UUID of workgroup to filter by

+ + +
page
+

Page number of responses to return (0..N).

+ + +
size
+

Number of results to be returned per page.

+ + +
use_proxy
+

Logical to indicate whether to use proxy

+ +
+
+

Value

+

Data frame

+
+ +
+ + +
+ + + + + + + diff --git a/reference/write_data.html b/reference/write_data.html new file mode 100644 index 0000000..497ef81 --- /dev/null +++ b/reference/write_data.html @@ -0,0 +1,132 @@ + +Write a data file from R to create a new document — write_data • objr + Skip to contents + + +
+
+
+ +
+

Write a data file from R to create a new document

+
+ +
+

Usage

+
write_data(
+  x,
+  file_name,
+  file_type,
+  workspace_uuid,
+  ...,
+  description = NULL,
+  parent_uuid = NULL,
+  use_proxy = FALSE
+)
+
+ +
+

Arguments

+ + +
x
+

R object to write to file.

+ + +
file_name
+

Name to give file.

+ + +
file_type
+

Either "csv", "rds" or "xlsx".

+ + +
workspace_uuid
+

UUID of the workspace to create the new document in

+ + +
...
+

Additional arguments to pass to write function. See details.

+ + +
description
+

Optional description of document.

+ + +
parent_uuid
+

UUID of folder in the workspace to create the new +document within. If not supplied, the document will be created in the +top-level of the workspace.

+ + +
use_proxy
+

Logical to indicate whether to use proxy

+ +
+
+

Value

+

An httr2 httr2::response() (invisibly)

+
+
+

Details

+

This function can be used to write the following data file types: +csv, rds, xlsx. Use the file_type argument to control which file type +to create.

+

The function works by writing the R object to a temporary file and uploading +the file to Objective Connect. The following functions are used to +write the data and any additional arguments (...) will be passed to these.

File TypeFunction
csvreadr::write_csv()
rdsreadr::write_rds()
xlsxwritexl::write_xlsx()

If there are other data file types you would like to upload using this +function, please open an issue on the GitHub repository.

+
+ +
+ + +
+ + + + + + + diff --git a/reference/write_data_version.html b/reference/write_data_version.html new file mode 100644 index 0000000..dd96711 --- /dev/null +++ b/reference/write_data_version.html @@ -0,0 +1,105 @@ + +Write a data file from R to create a new document version — write_data_version • objr + Skip to contents + + +
+
+
+ +
+

Write a data file from R to create a new document version

+
+ +
+

Usage

+
write_data_version(x, document_uuid, ..., use_proxy = FALSE)
+
+ +
+

Arguments

+ + +
x
+

R object to write to file.

+ + +
document_uuid
+

UUID of existing document

+ + +
...
+

Additional arguments to pass to write function. See details.

+ + +
use_proxy
+

Logical to indicate whether to use proxy

+ +
+
+

Value

+

An httr2 httr2::response() (invisibly)

+
+
+

Details

+

This function can be used to write the following data file types: +csv, rds, xlsx. The file type used is determined by the file type of the +existing document.

+

The function works by writing the R object to a temporary file and uploading +the file to Objective Connect. The following functions are used to +write the data and any additional arguments (...) will be passed to these.

File TypeFunction
csvreadr::write_csv()
rdsreadr::write_rds()
xlsxwritexl::write_xlsx()

If there are other data file types you would like to upload using this +function, please open an issue on the GitHub repository.

+
+ +
+ + +
+ + + + + + + diff --git a/search.json b/search.json index c20de97..d491ef7 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://scotgovanalysis.github.io/objr/LICENCE.html","id":null,"dir":"","previous_headings":"","what":"MIT Licence","title":"MIT Licence","text":"Copyright (c) 2023 Crown Copyright (Scottish Government) Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"how-authentication-works","dir":"Articles","previous_headings":"","what":"How authentication works","title":"API Authentication","text":"first time send request, API requires Objective Connect user email address password authenticate. successful response API includes token. token can used authenticate subsequent requests session, negating need repeatedly supply email address password. rest article details manage authentication using objr package.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"first-request","dir":"Articles","previous_headings":"","what":"First request","title":"API Authentication","text":"need Objective Connect user email address password make first request API. can provided two ways.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"r-environment-variables","dir":"Articles","previous_headings":"First request","what":"R Environment variables","title":"API Authentication","text":"Add two variables .Renviron file define email address password. Open .Renviron file edit: Add two variables follows (replacing XXX credentials): Save close .Renviron file. check worked expected, first restart R session run: credentials printed console. Note: important save R session workspace close console may contain Objective Connect credentials. benefit method can leave information .Renviron file objr automatically find time use package.","code":"usethis::edit_r_environ() OBJR_USR = \"XXX\" OBJR_PWD = \"XXX\" Sys.getenv(\"OBJR_USR\") Sys.getenv(\"OBJR_PWD\")"},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"supply-credentials-when-prompted","dir":"Articles","previous_headings":"First request","what":"Supply credentials when prompted","title":"API Authentication","text":"don’t variables defined .Renviron file, objr prompt supply ’re working interactive session.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"subsequent-requests","dir":"Articles","previous_headings":"","what":"Subsequent requests","title":"API Authentication","text":"successful API response includes token can used subsequent requests. objr functions automatically parse token API response store R session’s global environment. object exists, objr automatically use authenticate subsequent requests. object doesn’t exist, objr resort using username password, first request.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/faqs.html","id":"what-is-the-difference-between-users-and-participants","dir":"Articles","previous_headings":"","what":"What is the difference between users and participants?","title":"Frequently Asked Questions","text":"user individual using Objective Connect. participant user particular workspace. example, person using Objective Connect User UUID associated , also Participant UUID individual workspace member . user can get User UUID running my_user_id(). user can find participant UUID particular workspace using participants().","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"universally-unique-identifiers","dir":"Articles","previous_headings":"","what":"Universally Unique Identifiers","title":"Introduction to objr","text":"useful aware everything Objective Connect associated Universally Unique Identifier (UUID). includes users, workgroups, workspaces, participants workspace assets workspace. Objective Connect UUIDs take form string eight chunks four lower case letters numbers, separated dashes. example: Use API objr package depends UUIDs. UUIDs mostly findable using functions objr (demonstrated article), however can often also find relevant UUIDs webpage URLs. example, example URL viewing workspace: UUID workspace 2vo2-dd3s-1nn9-y20r-b906-u4s2-7134-b352 UUID workgroup 2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44.","code":"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f https://secure.objectiveconnect.co.uk/share/2vo2-dd3s-1nn9-y20r-b906-u4s2- 7134-b352?workgroupUuid=2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"test-your-authentication","dir":"Articles","previous_headings":"","what":"Test your authentication","title":"Introduction to objr","text":"interact Objective Connect API, must provide valid authentication. explained detail vignette(\"authentication\"). might good idea test authentication, especially ’s first time using package. specific function , following simple function get user ID requires input easy way test can get successful response API.","code":"me <- my_user_id()"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"workspaces","dir":"Articles","previous_headings":"","what":"Workspaces","title":"Introduction to objr","text":"see workspaces member : returns data frame row workspace member . Among things, column containing workspace name another containing workspace UUID. example:","code":"workspaces <- my_workspaces() ## workspace_name workspace_uuid ## 1 Project 1 84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f ## 2 Project 2 2vo2-dd3s-1nn9-y20r-b906-u4s2-7134-b352"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"assets","dir":"Articles","previous_headings":"","what":"Assets","title":"Introduction to objr","text":"Maybe like download file one workspaces. Objective Connect, files also known ‘assets’. download asset, ’ll need UUID. Note: workspaces two-factor authentication (2FA) enabled, participants use API workspace level actions unless given permission bypass 2FA. See vignette(\"two-factor\") information. Use workspace UUID workspaces get data frame assets workspace: returns data frame row asset workspace. Among things, column containing asset name another containing asset UUID.","code":"assets <- workspace_assets(\"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f\") ## asset_name asset_uuid ## 1 asset1 2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44 ## 2 asset2 l588-e8wp-d6y8-3d01-blby-wag1-ks1s-gmo9"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"download-file","dir":"Articles","previous_headings":"","what":"Download file","title":"Introduction to objr","text":"download document, use UUID file path folder ’d like downloaded file saved : function doesn’t return anything display message R console indicate download success confirm location file:","code":"download_file(document_uuid = \"2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44\", folder = here::here(\"data\")) ## ✔ File downloaded: project-1/data/file1.csv."},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"upload-file","dir":"Articles","previous_headings":"","what":"Upload file","title":"Introduction to objr","text":"upload file workspace, use UUID workspace file path file upload: function doesn’t return anything display message R console indicate upload success confirm name file. Now, rerun previous step get data frame workspace assets, see additional row file ’ve just uploaded.","code":"upload_file(here::here(\"data\", \"file2.csv\"), workspace_uuid = \"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f\") ## ✔ New document created: file2.csv. assets <- workspace_assets(\"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f\") ## asset_name asset_uuid ## 1 Asset 1 2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44 ## 2 Asset 2 l588-e8wp-d6y8-3d01-blby-wag1-ks1s-gmo9 ## 3 file2 9tp8-3vme-d381-7o89-4qns-qw99-310b-3d06"},{"path":"https://scotgovanalysis.github.io/objr/articles/two-factor.html","id":"allowing-the-workspace-owner-to-bypass-2fa","dir":"Articles","previous_headings":"","what":"Allowing the workspace owner to bypass 2FA","title":"Two-Factor Authentication","text":"give (workspace owner) permission bypass 2FA, need help workgroup admin. work Scottish Government, please contact package maintainers arrange . Allow 2FA bypassing workgroup. setting can controlled via API, Objective Connect browser interface. can done workgroup admin. Option 1: Use allow_bypass_2fa(), providing relevant workgroup UUID. Option 2: workgroup admin isn’t R user, can use API interactive documentation. Use ‘Authorise’ button setup authentication. Execute /workgroups/{uuid}/bypassTwoStepAllowed endpoint, providing workgroup UUID. Temporarily disable 2FA workspace. 2FA enforced workgroup level, workgroup admin need disable setting first. Summary section workspace page, select three dots icon (…) top right-hand corner, Two-step verification. prompted confirm, select Disable. Give (workspace owner) permission bypass 2FA using participant_bypass_2fa(). need participant UUID, can found using participants(). Check worked using participants(). bypass_2fa column returned data frame contain TRUE name. Reinstate 2FA workspace workgroup way disabled step 2.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/two-factor.html","id":"allowing-other-participants-to-bypass-2fa","dir":"Articles","previous_headings":"","what":"Allowing other participants to bypass 2FA","title":"Two-Factor Authentication","text":"(workspace owner) can now bypass 2FA, can now provide bypassing permissions workspace members. can done way ; using participant_bypass_2fa() providing relevant members’ participant UUID. Scottish Government Objective Connect workspaces, permissions limited Scottish Government staff external participants. wish revoke permissions bypass 2FA, use participant_bypass_2fa() set allow_bypass = FALSE. Remember, check status 2FA bypassing participants workspace, use participants().","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/two-factor.html","id":"getting-more-help","dir":"Articles","previous_headings":"","what":"Getting more help","title":"Two-Factor Authentication","text":"process can quite fiddly. unsure issues , please contact package maintainers.","code":""},{"path":"https://scotgovanalysis.github.io/objr/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Scottish Government  Email Scottish Government>  Scottish Government GitHub profile>. Copyright holder. Alice Hannah  Email Alice Hannah>  Alice Hannah GitHub profile>. Author, maintainer.","code":""},{"path":"https://scotgovanalysis.github.io/objr/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Hannah (2024). objr: Wrapper Objective APIs. R package version 0.0.0.9004, https://ScotGovAnalysis.github.io/objr/, https://github.com/ScotGovAnalysis/objr.","code":"@Manual{, title = {objr: Wrapper for Objective APIs}, author = {Alice Hannah}, year = {2024}, note = {R package version 0.0.0.9004, https://ScotGovAnalysis.github.io/objr/}, url = {https://github.com/ScotGovAnalysis/objr}, }"},{"path":"https://scotgovanalysis.github.io/objr/index.html","id":"objr","dir":"","previous_headings":"","what":"Wrapper for Objective APIs","title":"Wrapper for Objective APIs","text":"objr aims provide convenient method interacting Objective Connect using R, making use Objective Connect API.","code":""},{"path":"https://scotgovanalysis.github.io/objr/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Wrapper for Objective APIs","text":"package can installed directly GitHub. Note method requires remotes package may work within Scottish Government network. Finally, package can also installed downloading zip repository running following code, replacing section marked <> (including arrows ) location downloaded zip:","code":"remotes::install_github( \"ScotGovAnalysis/objr\", upgrade = \"never\", build_vignettes = TRUE ) remotes::install_local( \"/objr-main.zip\", upgrade = \"never\", build_vignettes = TRUE )"},{"path":"https://scotgovanalysis.github.io/objr/index.html","id":"licence","dir":"","previous_headings":"","what":"Licence","title":"Wrapper for Objective APIs","text":"Unless stated otherwise, codebase released MIT Licence. covers codebase sample code documentation. documentation © Crown copyright available terms Open Government 3.0 licence.","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/allow_bypass_2fa.html","id":null,"dir":"Reference","previous_headings":"","what":"Allow/disallow bypassing of two-factor authentication for workgroup — allow_bypass_2fa","title":"Allow/disallow bypassing of two-factor authentication for workgroup — allow_bypass_2fa","text":"information two-factor authentication can found vignette(\"two-factor\").","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/allow_bypass_2fa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Allow/disallow bypassing of two-factor authentication for workgroup — allow_bypass_2fa","text":"","code":"allow_bypass_2fa(workgroup_uuid, allow_bypass = TRUE, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/allow_bypass_2fa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Allow/disallow bypassing of two-factor authentication for workgroup — allow_bypass_2fa","text":"workgroup_uuid Workgroup UUID allow_bypass Logical indicate whether workgroup allow selected participants bypass two-factor authentication verification. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/asset_info.html","id":null,"dir":"Reference","previous_headings":"","what":"Get asset information — asset_info","title":"Get asset information — asset_info","text":"Get asset information","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/asset_info.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get asset information — asset_info","text":"","code":"asset_info(asset_uuid, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/asset_info.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get asset information — asset_info","text":"asset_uuid UUID asset use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/asset_info.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get asset information — asset_info","text":"Named list containing: uuid, name, type, extension, description.","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":null,"dir":"Reference","previous_headings":"","what":"Get comments for workspaces of current user — comments","title":"Get comments for workspaces of current user — comments","text":"Get comments workspaces current user","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get comments for workspaces of current user — comments","text":"","code":"comments( created_after = NULL, thread_uuid = NULL, mention_uuid = NULL, workgroup_uuid = NULL, page = NULL, size = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get comments for workspaces of current user — comments","text":"created_after Date (optionally time) filter comments created since date/time. time supplied, comments made day included. thread_uuid UUID thread filter mention_uuid UUID user filter comments mentioned workgroup_uuid UUID workgroup filter page Page number responses return (0..N). size Number results returned per page. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get comments for workspaces of current user — comments","text":"Data frame","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get comments for workspaces of current user — comments","text":"","code":"if (FALSE) { # \\dontrun{ comments() } # }"},{"path":"https://scotgovanalysis.github.io/objr/reference/create_folder.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a new folder — create_folder","title":"Create a new folder — create_folder","text":"Create new folder","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/create_folder.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a new folder — create_folder","text":"","code":"create_folder( folder_name, workspace_uuid, description = NULL, parent_uuid = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/create_folder.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a new folder — create_folder","text":"folder_name Name give new folder workspace_uuid UUID workspace create new folder description Optional description folder parent_uuid UUID another folder workspace create new folder within. supplied, folder created top-level workspace. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/delete_asset.html","id":null,"dir":"Reference","previous_headings":"","what":"Delete an asset — delete_asset","title":"Delete an asset — delete_asset","text":"Delete asset","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/delete_asset.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Delete an asset — delete_asset","text":"","code":"delete_asset(asset_uuid, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/delete_asset.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Delete an asset — delete_asset","text":"asset_uuid UUID asset use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/download_file.html","id":null,"dir":"Reference","previous_headings":"","what":"Download a file — download_file","title":"Download a file — download_file","text":"Download file","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/download_file.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Download a file — download_file","text":"","code":"download_file(document_uuid, folder, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/download_file.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Download a file — download_file","text":"document_uuid UUID existing document folder Folder save downloaded file use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":null,"dir":"Reference","previous_headings":"","what":"Get user ID for current authenticated user — my_user_id","title":"Get user ID for current authenticated user — my_user_id","text":"Get user ID current authenticated user","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get user ID for current authenticated user — my_user_id","text":"","code":"my_user_id(use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get user ID for current authenticated user — my_user_id","text":"use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get user ID for current authenticated user — my_user_id","text":"character value authenticated user's ID","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get user ID for current authenticated user — my_user_id","text":"","code":"if (FALSE) { # \\dontrun{ my_user_id() } # }"},{"path":"https://scotgovanalysis.github.io/objr/reference/my_workspaces.html","id":null,"dir":"Reference","previous_headings":"","what":"Get workspaces the current user is a member of — my_workspaces","title":"Get workspaces the current user is a member of — my_workspaces","text":"Get workspaces current user member ","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_workspaces.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get workspaces the current user is a member of — my_workspaces","text":"","code":"my_workspaces( workgroup_uuid = NULL, page = NULL, size = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/my_workspaces.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get workspaces the current user is a member of — my_workspaces","text":"workgroup_uuid UUID workgroup filter page Page number responses return (0..N). size Number results returned per page. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_workspaces.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get workspaces the current user is a member of — my_workspaces","text":"Data frame","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_reply.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a new reply to a thread — new_reply","title":"Create a new reply to a thread — new_reply","text":"Create new reply thread","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_reply.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a new reply to a thread — new_reply","text":"","code":"new_reply( thread_uuid, text, mentioned_assets = NULL, mentioned_users = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/new_reply.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a new reply to a thread — new_reply","text":"thread_uuid UUID thread reply text Character string include body thread mentioned_assets UUID(s) asset(s) mention mentioned_users UUID(s) user(s) mention use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_reply.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a new reply to a thread — new_reply","text":"API response (invisibly)","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_thread.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a new thread — new_thread","title":"Create a new thread — new_thread","text":"Create new thread","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_thread.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a new thread — new_thread","text":"","code":"new_thread( workspace_uuid, text, mentioned_assets = NULL, mentioned_users = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/new_thread.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a new thread — new_thread","text":"workspace_uuid UUID workspace text Character string include body thread mentioned_assets UUID(s) asset(s) mention mentioned_users UUID(s) user(s) mention use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_thread.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a new thread — new_thread","text":"API response (invisibly)","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_version.html","id":null,"dir":"Reference","previous_headings":"","what":"Upload a file to create a new document version — new_version","title":"Upload a file to create a new document version — new_version","text":"Upload file create new document version","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_version.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Upload a file to create a new document version — new_version","text":"","code":"new_version(file, document_uuid, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/new_version.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Upload a file to create a new document version — new_version","text":"file File path document upload document_uuid UUID existing document use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/objr.html","id":null,"dir":"Reference","previous_headings":"","what":"Core request function — objr","title":"Core request function — objr","text":"Core request function","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/objr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Core request function — objr","text":"","code":"objr( endpoint, url_path = NULL, url_query = NULL, method = \"GET\", body = NULL, path = NULL, accept = \"application/json\", content_type = \"application/json\", use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/objr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Core request function — objr","text":"endpoint endpoint append API server address url_path list values added request URL path. Values separated /. url_query list named values define query parameters method HTTP method use; e.g. GET, POST, PUT. Defaults GET. body list named values passed request body path Optional file path save body request (mainly used downloading files) accept Accept header. Defaults 'application/json'. content_type Content-Type header. Defaults 'application/json'. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/objr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Core request function — objr","text":"httr2 httr2::response()","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participant_bypass_2fa.html","id":null,"dir":"Reference","previous_headings":"","what":"Allow/disallow bypassing of two-factor authentication for workspace participant — participant_bypass_2fa","title":"Allow/disallow bypassing of two-factor authentication for workspace participant — participant_bypass_2fa","text":"Note setting can updated workspace owner. information two-factor authentication can found vignette(\"two-factor\").","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participant_bypass_2fa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Allow/disallow bypassing of two-factor authentication for workspace participant — participant_bypass_2fa","text":"","code":"participant_bypass_2fa( participant_uuid, allow_bypass = TRUE, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/participant_bypass_2fa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Allow/disallow bypassing of two-factor authentication for workspace participant — participant_bypass_2fa","text":"participant_uuid Participant UUID (note different user UUID) allow_bypass Logical indicate whether participant able bypass two-factor authentication workspace. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participants.html","id":null,"dir":"Reference","previous_headings":"","what":"Get data frame of workspace participants — participants","title":"Get data frame of workspace participants — participants","text":"Get data frame workspace participants","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participants.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get data frame of workspace participants — participants","text":"","code":"participants(workspace_uuid, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/participants.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get data frame of workspace participants — participants","text":"workspace_uuid UUID workspace use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participants.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get data frame of workspace participants — participants","text":"Data frame","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file.html","id":null,"dir":"Reference","previous_headings":"","what":"Upload a file to create a new document — upload_file","title":"Upload a file to create a new document — upload_file","text":"Upload file create new document","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Upload a file to create a new document — upload_file","text":"","code":"upload_file( file, workspace_uuid, name = NULL, description = NULL, parent_uuid = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Upload a file to create a new document — upload_file","text":"file File path document upload workspace_uuid UUID workspace create new document name Name give document. provided, name file used. description Optional description document parent_uuid UUID folder workspace create new document within. supplied, document created top-level workspace. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/workspace_assets.html","id":null,"dir":"Reference","previous_headings":"","what":"Get data frame of assets in workspace — workspace_assets","title":"Get data frame of assets in workspace — workspace_assets","text":"Get data frame assets workspace","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/workspace_assets.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get data frame of assets in workspace — workspace_assets","text":"","code":"workspace_assets( workspace_uuid, type = list(\"document\", \"folder\", \"link\"), page = NULL, size = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/workspace_assets.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get data frame of assets in workspace — workspace_assets","text":"workspace_uuid UUID workspace type List asset types return. Defaults types; document, folder link. page Page number responses return (0..N). size Number results returned per page. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/workspace_assets.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get data frame of assets in workspace — workspace_assets","text":"Data frame","code":""},{"path":"https://scotgovanalysis.github.io/objr/news/index.html","id":"objr-development-version","dir":"Changelog","previous_headings":"","what":"objr (development version)","title":"objr (development version)","text":"First package release Add pkgdown site (https://ScotGovAnalysis.github.io/objr)","code":""}] +[{"path":"https://scotgovanalysis.github.io/objr/LICENCE.html","id":null,"dir":"","previous_headings":"","what":"MIT Licence","title":"MIT Licence","text":"Copyright (c) 2023 Crown Copyright (Scottish Government) Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"how-authentication-works","dir":"Articles","previous_headings":"","what":"How authentication works","title":"API Authentication","text":"first time send request, API requires Objective Connect user email address password authenticate. successful response API includes token. token can used authenticate subsequent requests session, negating need repeatedly supply email address password. rest article details manage authentication using objr package.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"first-request","dir":"Articles","previous_headings":"","what":"First request","title":"API Authentication","text":"need Objective Connect user email address password make first request API. can provided two ways.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"r-environment-variables","dir":"Articles","previous_headings":"First request","what":"R Environment variables","title":"API Authentication","text":"Add two variables .Renviron file define email address password. Open .Renviron file edit: Add two variables follows (replacing XXX credentials): Save close .Renviron file. check worked expected, first restart R session run: credentials printed console. Note: important save R session workspace close console may contain Objective Connect credentials. benefit method can leave information .Renviron file objr automatically find time use package.","code":"usethis::edit_r_environ() OBJR_USR = \"XXX\" OBJR_PWD = \"XXX\" Sys.getenv(\"OBJR_USR\") Sys.getenv(\"OBJR_PWD\")"},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"supply-credentials-when-prompted","dir":"Articles","previous_headings":"First request","what":"Supply credentials when prompted","title":"API Authentication","text":"don’t variables defined .Renviron file, objr prompt supply ’re working interactive session.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/authentication.html","id":"subsequent-requests","dir":"Articles","previous_headings":"","what":"Subsequent requests","title":"API Authentication","text":"successful API response includes token can used subsequent requests. objr functions automatically parse token API response store R session’s global environment. object exists, objr automatically use authenticate subsequent requests. object doesn’t exist, objr resort using username password, first request.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/faqs.html","id":"what-is-the-difference-between-users-and-participants","dir":"Articles","previous_headings":"","what":"What is the difference between users and participants?","title":"Frequently Asked Questions","text":"user individual using Objective Connect. participant user particular workspace. example, person using Objective Connect User UUID associated , also Participant UUID individual workspace member . user can get User UUID running my_user_id(). user can find participant UUID particular workspace using participants().","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"universally-unique-identifiers","dir":"Articles","previous_headings":"","what":"Universally Unique Identifiers","title":"Introduction to objr","text":"useful aware everything Objective Connect associated Universally Unique Identifier (UUID). includes users, workgroups, workspaces, participants workspace assets workspace. Objective Connect UUIDs take form string eight chunks four lower case letters numbers, separated dashes. example: Use API objr package depends UUIDs. UUIDs mostly findable using functions objr (demonstrated article), however can often also find relevant UUIDs webpage URLs. example, example URL viewing workspace: UUID workspace 2vo2-dd3s-1nn9-y20r-b906-u4s2-7134-b352 UUID workgroup 2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44.","code":"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f https://secure.objectiveconnect.co.uk/share/2vo2-dd3s-1nn9-y20r-b906-u4s2- 7134-b352?workgroupUuid=2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"test-your-authentication","dir":"Articles","previous_headings":"","what":"Test your authentication","title":"Introduction to objr","text":"interact Objective Connect API, must provide valid authentication. explained detail vignette(\"authentication\"). might good idea test authentication, especially ’s first time using package. specific function , following simple function get user ID requires input easy way test can get successful response API.","code":"me <- my_user_id()"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"workspaces","dir":"Articles","previous_headings":"","what":"Workspaces","title":"Introduction to objr","text":"see workspaces member : returns data frame row workspace member . Among things, column containing workspace name another containing workspace UUID. example:","code":"workspaces <- workspaces() ## workspace_name workspace_uuid ## 1 Project 1 84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f ## 2 Project 2 2vo2-dd3s-1nn9-y20r-b906-u4s2-7134-b352"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"assets","dir":"Articles","previous_headings":"","what":"Assets","title":"Introduction to objr","text":"Maybe like download file one workspaces. Objective Connect, files also known ‘assets’. download asset, ’ll need UUID. Note: workspaces two-factor authentication (2FA) enabled, participants use API workspace level actions unless given permission bypass 2FA. See vignette(\"two-factor\") information. Use workspace UUID workspaces get data frame assets workspace: returns data frame row asset workspace. Among things, column containing asset name another containing asset UUID.","code":"assets <- assets(\"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f\") ## asset_name asset_ext asset_uuid ## 1 file1 docx 2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44 ## 2 file2 csv l588-e8wp-d6y8-3d01-blby-wag1-ks1s-gmo9"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"download-file","dir":"Articles","previous_headings":"","what":"Download file","title":"Introduction to objr","text":"download document, use UUID file path folder ’d like downloaded file saved : function doesn’t return anything display message R console indicate download success confirm location file:","code":"download_file(document_uuid = \"2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44\", folder = here::here(\"data\")) ## ✔ File downloaded: project-1/data/file1.docx."},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"read-data","dir":"Articles","previous_headings":"","what":"Read data","title":"Introduction to objr","text":"Alternatively, can read data file directly R environment: Accepted data file formats csv, rds xlsx.","code":"x <- read_data(document_uuid = \"l588-e8wp-d6y8-3d01-blby-wag1-ks1s-gmo9\")"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"upload-file","dir":"Articles","previous_headings":"","what":"Upload file","title":"Introduction to objr","text":"upload file workspace, use UUID workspace file path file upload: function doesn’t return anything display message R console indicate upload success confirm name file. Now, rerun previous step get data frame workspace assets, see additional row file ’ve just uploaded.","code":"upload_file(here::here(\"data\", \"file3.csv\"), workspace_uuid = \"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f\") ## ✔ New document created: file3.csv. assets <- assets(\"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f\") ## asset_name asset_ext asset_uuid ## 1 file1 docx 2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44 ## 2 file2 csv l588-e8wp-d6y8-3d01-blby-wag1-ks1s-gmo9 ## 3 file3 csv 9tp8-3vme-d381-7o89-4qns-qw99-310b-3d06"},{"path":"https://scotgovanalysis.github.io/objr/articles/objr.html","id":"write-data","dir":"Articles","previous_headings":"","what":"Write data","title":"Introduction to objr","text":"Alternatively, can write data directly R:","code":"write_data(mtcars, file_name = \"mtcars\", file_type = \"rds\", workspace_uuid = \"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f\") assets <- assets(\"84op-9qdu-c692-t4z1-wa4z-h9k3-8454-i71f\") ## asset_name asset_ext asset_uuid ## 1 file1 docx 2j47-ff38-lcgg-mnis-3vq8-9536-9jfp-oy44 ## 2 file2 csv l588-e8wp-d6y8-3d01-blby-wag1-ks1s-gmo9 ## 3 file3 csv 9tp8-3vme-d381-7o89-4qns-qw99-310b-3d06 ## 4 mtcars rds fh84-jbdy-g6kp-68z8-gt3v-ds39-x74p-80m3"},{"path":"https://scotgovanalysis.github.io/objr/articles/two-factor.html","id":"bypassing-2fa","dir":"Articles","previous_headings":"","what":"Bypassing 2FA","title":"Two-Factor Authentication","text":"workspaces two-factor authentication (2FA) enabled, participants won’t able use API unless given permission bypass 2FA. check participants permission bypass 2FA, run participants() using workspace UUID, inspect bypass_2fa column returned data frame. set 2FA bypassing workspace, ’ll need help workgroup administrator workspace owner. three main steps complete process: Give permission change 2FA bypass settings workgroup Give permission workspace owner Give permission workspace participants steps need carried can use objr (API general) first time. start, ’ll need name UUID workgroup workspace. information find UUIDs can found Getting Started page.","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/two-factor.html","id":"a-note-for-non-r-users","dir":"Articles","previous_headings":"Bypassing 2FA","what":"A note for non R users","title":"Two-Factor Authentication","text":"required changes can made via API (Objective Connect browser interface). user required make changes R user, can use API via ’s interactive documentation instead using objr. using interactivity, set API authentication clicking ‘Authorise’ button entering Objective Connect username password. Links relevant sections interactive documentation provided step .","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/two-factor.html","id":"workgroup","dir":"Articles","previous_headings":"","what":"Permission to change 2FA settings in the workgroup","title":"Two-Factor Authentication","text":"steps must completed workgroup admin. work Scottish Government, please contact package maintainers arrange step. 1. Navigate summary page workgroup Objective Connect. Select ‘Workgroup Options’, un-check option ‘Enforce Two-step verification’, click blue ‘Update’ button. (setting reinstated later.) R, allow 2FA bypassing workgroup using allow_bypass_2fa(), providing relevant workgroup UUID. example: Non R users can use interactive documentation allow 2FA bypassing workgroup.","code":"allow_bypass_2fa(\"v09y-g5vk-5348-k68t-s462-c2vs-7kl8-7440\") ## ✔ Bypass 2FA setting successfully updated for workgroup."},{"path":"https://scotgovanalysis.github.io/objr/articles/two-factor.html","id":"workspace-owner","dir":"Articles","previous_headings":"","what":"Permission for the workspace owner","title":"Two-Factor Authentication","text":"steps must completed workspace owner. 1. Navigate summary page workspace Objective Connect. Select three dots icon (…) top right-hand corner, Two-step verification. prompted confirm, select Disable. R, give (workspace owner) permission bypass 2FA using participant_bypass_2fa(). need participant UUID, can found using participants(). example, Non R users can use interactive documentation find relevant participant UUID allow participant 2FA bypassing. Check worked using participants(). bypass_2fa column returned data frame contain TRUE name. Non R users can use interactive documentation view participant settings. Reinstate 2FA workspace using method step 1. workgroup admin can now reinstate 2FA enforcing workgroup.","code":"allow_bypass_2fa(\"z98a-9sy0-b3gv-285m-39k6-20d5-dg6k-3gue\") ## ✔ Bypass 2FA setting successfully updated for participant."},{"path":"https://scotgovanalysis.github.io/objr/articles/two-factor.html","id":"participants","dir":"Articles","previous_headings":"","what":"Permssion for other participants","title":"Two-Factor Authentication","text":"steps must completed workspace owner. R, give participants permission bypass 2FA using participant_bypass_2fa(). need relevant members’ participant UUID, can found using participants(). Non R users can use interactive documentation find relevant participant UUID allow participant 2FA bypassing. Scottish Government Objective Connect workspaces, bypassing permissions limited Scottish Government staff given external workspace participants. wish revoke permissions bypass 2FA, use participant_bypass_2fa() set allow_bypass = FALSE. Remember, check status 2FA bypassing participants workspace, use participants().","code":""},{"path":"https://scotgovanalysis.github.io/objr/articles/two-factor.html","id":"getting-more-help","dir":"Articles","previous_headings":"","what":"Getting more help","title":"Two-Factor Authentication","text":"process can quite fiddly. unsure issues , please contact package maintainers.","code":""},{"path":"https://scotgovanalysis.github.io/objr/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Scottish Government  Email Scottish Government>  Scottish Government GitHub profile>. Copyright holder. Alice Hannah  Email Alice Hannah>  Alice Hannah GitHub profile>. Author, maintainer.","code":""},{"path":"https://scotgovanalysis.github.io/objr/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Hannah (2024). objr: Wrapper Objective APIs. R package version 0.0.0.9005, https://ScotGovAnalysis.github.io/objr/, https://github.com/ScotGovAnalysis/objr.","code":"@Manual{, title = {objr: Wrapper for Objective APIs}, author = {Alice Hannah}, year = {2024}, note = {R package version 0.0.0.9005, https://ScotGovAnalysis.github.io/objr/}, url = {https://github.com/ScotGovAnalysis/objr}, }"},{"path":"https://scotgovanalysis.github.io/objr/index.html","id":"objr","dir":"","previous_headings":"","what":"Wrapper for Objective APIs","title":"Wrapper for Objective APIs","text":"objr aims provide convenient method interacting Objective Connect using R, making use Objective Connect API.","code":""},{"path":"https://scotgovanalysis.github.io/objr/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Wrapper for Objective APIs","text":"package can installed directly GitHub. Note method requires remotes package may work within Scottish Government network. Finally, package can also installed downloading zip repository running following code, replacing section marked <> (including arrows ) location downloaded zip:","code":"remotes::install_github( \"ScotGovAnalysis/objr\", upgrade = \"never\", build_vignettes = TRUE ) remotes::install_local( \"/objr-main.zip\", upgrade = \"never\", build_vignettes = TRUE )"},{"path":"https://scotgovanalysis.github.io/objr/index.html","id":"licence","dir":"","previous_headings":"","what":"Licence","title":"Wrapper for Objective APIs","text":"Unless stated otherwise, codebase released MIT Licence. covers codebase sample code documentation. documentation © Crown copyright available terms Open Government 3.0 licence.","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/allow_bypass_2fa.html","id":null,"dir":"Reference","previous_headings":"","what":"Allow/disallow bypassing of two-factor authentication for workgroup — allow_bypass_2fa","title":"Allow/disallow bypassing of two-factor authentication for workgroup — allow_bypass_2fa","text":"information two-factor authentication can found vignette(\"two-factor\").","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/allow_bypass_2fa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Allow/disallow bypassing of two-factor authentication for workgroup — allow_bypass_2fa","text":"","code":"allow_bypass_2fa(workgroup_uuid, allow_bypass = TRUE, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/allow_bypass_2fa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Allow/disallow bypassing of two-factor authentication for workgroup — allow_bypass_2fa","text":"workgroup_uuid Workgroup UUID allow_bypass Logical indicate whether workgroup allow selected participants bypass two-factor authentication verification. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/asset_info.html","id":null,"dir":"Reference","previous_headings":"","what":"Get asset information — asset_info","title":"Get asset information — asset_info","text":"Get asset information","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/asset_info.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get asset information — asset_info","text":"","code":"asset_info(asset_uuid, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/asset_info.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get asset information — asset_info","text":"asset_uuid UUID asset use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/asset_info.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get asset information — asset_info","text":"Named list containing: uuid, name, type, extension, description.","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/assets.html","id":null,"dir":"Reference","previous_headings":"","what":"Get data frame of assets in workspace — assets","title":"Get data frame of assets in workspace — assets","text":"Get data frame assets workspace","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/assets.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get data frame of assets in workspace — assets","text":"","code":"assets( workspace_uuid, type = list(\"document\", \"folder\", \"link\"), page = NULL, size = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/assets.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get data frame of assets in workspace — assets","text":"workspace_uuid UUID workspace type List asset types return. Defaults types; document, folder link. page Page number responses return (0..N). size Number results returned per page. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/assets.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get data frame of assets in workspace — assets","text":"Data frame","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":null,"dir":"Reference","previous_headings":"","what":"Get comments for workspaces of current user — comments","title":"Get comments for workspaces of current user — comments","text":"Get comments workspaces current user","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get comments for workspaces of current user — comments","text":"","code":"comments( created_after = NULL, thread_uuid = NULL, mention_uuid = NULL, workgroup_uuid = NULL, page = NULL, size = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get comments for workspaces of current user — comments","text":"created_after Date (optionally time) filter comments created since date/time. time supplied, comments made day included. thread_uuid UUID thread filter mention_uuid UUID user filter comments mentioned workgroup_uuid UUID workgroup filter page Page number responses return (0..N). size Number results returned per page. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get comments for workspaces of current user — comments","text":"Data frame","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/comments.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get comments for workspaces of current user — comments","text":"","code":"if (FALSE) { # \\dontrun{ comments() } # }"},{"path":"https://scotgovanalysis.github.io/objr/reference/create_folder.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a new folder — create_folder","title":"Create a new folder — create_folder","text":"Create new folder","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/create_folder.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a new folder — create_folder","text":"","code":"create_folder( folder_name, workspace_uuid, description = NULL, parent_uuid = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/create_folder.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a new folder — create_folder","text":"folder_name Name give new folder workspace_uuid UUID workspace create new folder description Optional description folder parent_uuid UUID another folder workspace create new folder within. supplied, folder created top-level workspace. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/delete_asset.html","id":null,"dir":"Reference","previous_headings":"","what":"Delete an asset — delete_asset","title":"Delete an asset — delete_asset","text":"Delete asset","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/delete_asset.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Delete an asset — delete_asset","text":"","code":"delete_asset(asset_uuid, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/delete_asset.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Delete an asset — delete_asset","text":"asset_uuid UUID asset use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/delete_asset.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Delete an asset — delete_asset","text":"Note: Note: functionality disabled Scottish Government workspaces.","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/download_file.html","id":null,"dir":"Reference","previous_headings":"","what":"Download a file and save to disk — download_file","title":"Download a file and save to disk — download_file","text":"Download file save disk","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/download_file.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Download a file and save to disk — download_file","text":"","code":"download_file(document_uuid, folder, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/download_file.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Download a file and save to disk — download_file","text":"document_uuid UUID existing document folder Folder save downloaded file use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/download_file.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Download a file and save to disk — download_file","text":"httr2 httr2::response() (invisibly)","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":null,"dir":"Reference","previous_headings":"","what":"Get user ID for current authenticated user — my_user_id","title":"Get user ID for current authenticated user — my_user_id","text":"Get user ID current authenticated user","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get user ID for current authenticated user — my_user_id","text":"","code":"my_user_id(use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get user ID for current authenticated user — my_user_id","text":"use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get user ID for current authenticated user — my_user_id","text":"character value authenticated user's ID","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/my_user_id.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get user ID for current authenticated user — my_user_id","text":"","code":"if (FALSE) { # \\dontrun{ my_user_id() } # }"},{"path":"https://scotgovanalysis.github.io/objr/reference/new_reply.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a new reply to a thread — new_reply","title":"Create a new reply to a thread — new_reply","text":"Create new reply thread","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_reply.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a new reply to a thread — new_reply","text":"","code":"new_reply( thread_uuid, text, mentioned_assets = NULL, mentioned_users = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/new_reply.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a new reply to a thread — new_reply","text":"thread_uuid UUID thread reply text Character string include body thread mentioned_assets UUID(s) asset(s) mention mentioned_users UUID(s) user(s) mention use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_reply.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a new reply to a thread — new_reply","text":"API response (invisibly)","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_thread.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a new thread — new_thread","title":"Create a new thread — new_thread","text":"Create new thread","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_thread.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a new thread — new_thread","text":"","code":"new_thread( workspace_uuid, text, mentioned_assets = NULL, mentioned_users = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/new_thread.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a new thread — new_thread","text":"workspace_uuid UUID workspace text Character string include body thread mentioned_assets UUID(s) asset(s) mention mentioned_users UUID(s) user(s) mention use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/new_thread.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a new thread — new_thread","text":"API response (invisibly)","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/objr.html","id":null,"dir":"Reference","previous_headings":"","what":"Core request function — objr","title":"Core request function — objr","text":"Core request function","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/objr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Core request function — objr","text":"","code":"objr( endpoint, url_path = NULL, url_query = NULL, method = \"GET\", body = NULL, path = NULL, accept = \"application/json\", content_type = \"application/json\", use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/objr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Core request function — objr","text":"endpoint endpoint append API server address url_path list values added request URL path. Values separated /. url_query list named values define query parameters method HTTP method use; e.g. GET, POST, PUT. Defaults GET. body list named values passed request body path Optional file path save body request (mainly used downloading files) accept Accept header. Defaults 'application/json'. content_type Content-Type header. Defaults 'application/json'. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/objr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Core request function — objr","text":"httr2 httr2::response()","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participant_bypass_2fa.html","id":null,"dir":"Reference","previous_headings":"","what":"Allow/disallow bypassing of two-factor authentication for workspace participant — participant_bypass_2fa","title":"Allow/disallow bypassing of two-factor authentication for workspace participant — participant_bypass_2fa","text":"Note setting can updated workspace owner. information two-factor authentication can found vignette(\"two-factor\").","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participant_bypass_2fa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Allow/disallow bypassing of two-factor authentication for workspace participant — participant_bypass_2fa","text":"","code":"participant_bypass_2fa( participant_uuid, allow_bypass = TRUE, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/participant_bypass_2fa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Allow/disallow bypassing of two-factor authentication for workspace participant — participant_bypass_2fa","text":"participant_uuid Participant UUID (note different user UUID) allow_bypass Logical indicate whether participant able bypass two-factor authentication workspace. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participants.html","id":null,"dir":"Reference","previous_headings":"","what":"Get data frame of workspace participants — participants","title":"Get data frame of workspace participants — participants","text":"Get data frame workspace participants","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participants.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get data frame of workspace participants — participants","text":"","code":"participants(workspace_uuid, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/participants.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get data frame of workspace participants — participants","text":"workspace_uuid UUID workspace use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/participants.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get data frame of workspace participants — participants","text":"Data frame","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/read_data.html","id":null,"dir":"Reference","previous_headings":"","what":"Read a data file into R — read_data","title":"Read a data file into R — read_data","text":"Read data file R","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/read_data.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Read a data file into R — read_data","text":"","code":"read_data(document_uuid, ..., use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/read_data.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Read a data file into R — read_data","text":"document_uuid UUID existing document ... Additional arguments pass read function. See details. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/read_data.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Read a data file into R — read_data","text":"csv xlsx files, data frame. rds files, R object.","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/read_data.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Read a data file into R — read_data","text":"function can used read following data file types: csv, rds, xlsx. function works downloading file Objective Connect temporary file reading R. following functions used read data additional arguments (...) passed . check file type document (thus function additional arguments passed ), use asset_info(). data file types like download using function, please open issue GitHub repository.","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file.html","id":null,"dir":"Reference","previous_headings":"","what":"Upload a file to create a new document — upload_file","title":"Upload a file to create a new document — upload_file","text":"Upload file create new document","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Upload a file to create a new document — upload_file","text":"","code":"upload_file( file, workspace_uuid, name = NULL, description = NULL, parent_uuid = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Upload a file to create a new document — upload_file","text":"file File path document upload workspace_uuid UUID workspace create new document name Name give document. provided, name file used. description Optional description document. parent_uuid UUID folder workspace create new document within. supplied, document created top-level workspace. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Upload a file to create a new document — upload_file","text":"httr2 httr2::response() (invisibly)","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file_version.html","id":null,"dir":"Reference","previous_headings":"","what":"Upload a file to create a new document version — upload_file_version","title":"Upload a file to create a new document version — upload_file_version","text":"Upload file create new document version","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file_version.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Upload a file to create a new document version — upload_file_version","text":"","code":"upload_file_version(file, document_uuid, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/upload_file_version.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Upload a file to create a new document version — upload_file_version","text":"file File path document upload document_uuid UUID existing document use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/workspaces.html","id":null,"dir":"Reference","previous_headings":"","what":"Get workspaces the current user is a member of — workspaces","title":"Get workspaces the current user is a member of — workspaces","text":"Get workspaces current user member ","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/workspaces.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get workspaces the current user is a member of — workspaces","text":"","code":"workspaces(workgroup_uuid = NULL, page = NULL, size = NULL, use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/workspaces.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get workspaces the current user is a member of — workspaces","text":"workgroup_uuid UUID workgroup filter page Page number responses return (0..N). size Number results returned per page. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/workspaces.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get workspaces the current user is a member of — workspaces","text":"Data frame","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data.html","id":null,"dir":"Reference","previous_headings":"","what":"Write a data file from R to create a new document — write_data","title":"Write a data file from R to create a new document — write_data","text":"Write data file R create new document","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Write a data file from R to create a new document — write_data","text":"","code":"write_data( x, file_name, file_type, workspace_uuid, ..., description = NULL, parent_uuid = NULL, use_proxy = FALSE )"},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Write a data file from R to create a new document — write_data","text":"x R object write file. file_name Name give file. file_type Either \"csv\", \"rds\" \"xlsx\". workspace_uuid UUID workspace create new document ... Additional arguments pass write function. See details. description Optional description document. parent_uuid UUID folder workspace create new document within. supplied, document created top-level workspace. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Write a data file from R to create a new document — write_data","text":"httr2 httr2::response() (invisibly)","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Write a data file from R to create a new document — write_data","text":"function can used write following data file types: csv, rds, xlsx. Use file_type argument control file type create. function works writing R object temporary file uploading file Objective Connect. following functions used write data additional arguments (...) passed . data file types like upload using function, please open issue GitHub repository.","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data_version.html","id":null,"dir":"Reference","previous_headings":"","what":"Write a data file from R to create a new document version — write_data_version","title":"Write a data file from R to create a new document version — write_data_version","text":"Write data file R create new document version","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data_version.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Write a data file from R to create a new document version — write_data_version","text":"","code":"write_data_version(x, document_uuid, ..., use_proxy = FALSE)"},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data_version.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Write a data file from R to create a new document version — write_data_version","text":"x R object write file. document_uuid UUID existing document ... Additional arguments pass write function. See details. use_proxy Logical indicate whether use proxy","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data_version.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Write a data file from R to create a new document version — write_data_version","text":"httr2 httr2::response() (invisibly)","code":""},{"path":"https://scotgovanalysis.github.io/objr/reference/write_data_version.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Write a data file from R to create a new document version — write_data_version","text":"function can used write following data file types: csv, rds, xlsx. file type used determined file type existing document. function works writing R object temporary file uploading file Objective Connect. following functions used write data additional arguments (...) passed . data file types like upload using function, please open issue GitHub repository.","code":""},{"path":"https://scotgovanalysis.github.io/objr/news/index.html","id":"objr-development-version","dir":"Changelog","previous_headings":"","what":"objr (development version)","title":"objr (development version)","text":"First package release Add pkgdown site (https://ScotGovAnalysis.github.io/objr)","code":""}] diff --git a/sitemap.xml b/sitemap.xml index 549faed..dacf1df 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -12,20 +12,23 @@ https://scotgovanalysis.github.io/objr/news/index.html https://scotgovanalysis.github.io/objr/reference/allow_bypass_2fa.html https://scotgovanalysis.github.io/objr/reference/asset_info.html +https://scotgovanalysis.github.io/objr/reference/assets.html https://scotgovanalysis.github.io/objr/reference/comments.html https://scotgovanalysis.github.io/objr/reference/create_folder.html https://scotgovanalysis.github.io/objr/reference/delete_asset.html https://scotgovanalysis.github.io/objr/reference/download_file.html https://scotgovanalysis.github.io/objr/reference/index.html https://scotgovanalysis.github.io/objr/reference/my_user_id.html -https://scotgovanalysis.github.io/objr/reference/my_workspaces.html https://scotgovanalysis.github.io/objr/reference/new_reply.html https://scotgovanalysis.github.io/objr/reference/new_thread.html -https://scotgovanalysis.github.io/objr/reference/new_version.html https://scotgovanalysis.github.io/objr/reference/objr.html https://scotgovanalysis.github.io/objr/reference/participant_bypass_2fa.html https://scotgovanalysis.github.io/objr/reference/participants.html +https://scotgovanalysis.github.io/objr/reference/read_data.html https://scotgovanalysis.github.io/objr/reference/upload_file.html -https://scotgovanalysis.github.io/objr/reference/workspace_assets.html +https://scotgovanalysis.github.io/objr/reference/upload_file_version.html +https://scotgovanalysis.github.io/objr/reference/workspaces.html +https://scotgovanalysis.github.io/objr/reference/write_data.html +https://scotgovanalysis.github.io/objr/reference/write_data_version.html