View source: R/ChannelAttribution.R
| install_pro | R Documentation |
Interactively installs the ChannelAttributionPro package by contacting the ChannelAttribution build service, which returns a platform-appropriate binary (or source) package URL for your current operating system, CPU architecture, and R version. At the prompt you can enter:
a token (recommended), or
a work/university email to request a token (the function sends the request and exits).
install_pro()
When called, the function asks you to enter your ChannelAttributionPro token. If you don't have one, you can enter your work/university email; the function will request a token for that address and return invisibly, so you can re-run it once the token arrives.
Processing steps:
Detect your platform (os, os_vers, arch) and R minor version.
Send a form-encoded request to the ChannelAttribution builder endpoint to obtain a package URL.
Install the returned package via install.packages with repos = NULL.
On exit, send a small status message to a monitoring endpoint with minimal text (no local files).
Dependencies: This function requires curl (for HTTPS) and jsonlite (for JSON parsing). If either is missing, the function aborts with a friendly message.
Networking and privacy: The function performs outbound HTTPS requests to https://app.channelattribution.io, sending only the minimal parameters needed to resolve the correct binary and (on exit) a small status string for diagnostics. No local files or datasets are uploaded.
Interactive prompt:
Input is collected via base R readline() (no masking). In some environments the input may be visible.
Invisibly returns NULL. Progress and outcome messages are printed.
Invalid or expired token (HTTP 401): You will see a message inviting you to contact info@channelattribution.io or request a new token.
Network/SSL issues: Reported as a concise network_or_ssl_error: ....
Unexpected builder response: The function prints diagnostic information (platform and R version) that you can forward to support.
ChannelAttribution Team
install.packages
## Not run:
## Typical interactive use:
install_pro()
## If you don't have a token at prompt:
## - enter your work/university email to request one
## - check your inbox (including spam)
## - re-run install_pro() with the token
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.