posit-dev / posit-dev/connectapi
Create a data.frame representation from remote users.
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 54
- Forks
- 27
- Avg merge
- 1d 3m
- Merged PRs (30d)
- 1
Description
We need to do slightly more than simply making a data.frame from the results:
remote_users <- client$users_remote(user_prefix)
tibble(
username = map_chr(remote_users$results, ~.$username),
fist_name = map_chr(remote_users$results, ~.$first_name),
last_name = map_chr(remote_users$results, ~.$last_name),
guid = map_chr(remote_users$results, ~ifelse(is.null(.$guid), NA, .$guid)),
temp_ticket = map_chr(remote_users$results, ~.$temp_ticket)
)
https://github.com/posit-dev/connect-cookbook/pull/72/files#r1640289734
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the users_remote(user_prefix) entry point and the remote_users$results structure shown in the issue, then review the referenced Connect Cookbook pull request for context. Done means exposing remote users as a data.frame with username, first_name, last_name, guid, and temp_ticket columns, including missing guid values as NA.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100