Package: gofigR 2.0.2

Maciej Pacula

gofigR: Client for 'GoFigr.io'

Integrates with your 'RMarkdown' documents to automatically publish figures to the <https://GoFigr.io> service. Supports both 'knitr' and interactive execution within 'RStudio'.

Authors:Maciej Pacula [cre, aut], Flagstaff Solutions, LLC [cph]

gofigR_2.0.2.tar.gz
gofigR_2.0.2.zip(r-4.7)gofigR_2.0.2.zip(r-4.6)gofigR_2.0.2.zip(r-4.5)
gofigR_2.0.2.tgz(r-4.6-any)gofigR_2.0.2.tgz(r-4.5-any)
gofigR_2.0.2.tar.gz(r-4.7-any)gofigR_2.0.2.tar.gz(r-4.6-any)
gofigR_2.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
gofigR/json (API)
NEWS

# Install 'gofigR' in R:
install.packages('gofigR', repos = c('https://gofigr.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gofigr/gofigr/issues

On CRAN:

Conda:

4.23 score 4 stars 17 scripts 143 downloads 94 exports 80 dependencies

Last updated from:92852eaa32. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE133
source / vignettesOK230
linux-release-x86_64NOTE151
macos-release-arm64NOTE190
macos-oldrel-arm64NOTE183
windows-develNOTE87
windows-releaseNOTE114
windows-oldrelNOTE96
wasm-releaseOK162

Exports:asset_linked_to_figurecat.gofigr_revisioncheck_configuredcheckboxCONFIG_PATHcreate_analysiscreate_api_keycreate_assetcreate_asset_revisioncreate_figurecreate_revisioncreate_revision_auto_assigncreate_workspaceDATA_TYPESdefault_if_nulldelete_analysisdropdownenableencode_raw_datafind_analysisfind_asset_by_namefind_asset_revision_by_hashfind_configfind_figurefind_workspaceget_analysisget_api_idget_app_short_urlget_app_urlget_assetget_asset_revisionget_clientget_dataget_execution_contextget_figureget_optionsget_qr_pngget_revisionget_revision_urlget_titleget_workspacegf_plotgf_printgfconfiggfPlotgfPlotServerggwatermarkgofigr_clientgofigr_DELETEgofigr_GETgofigr_make_handlergofigr_PATCHgofigr_POSTgofigr_PUTinfer_workspaceinterceptis_intercept_onLINK_WATERMARKlist_analyseslist_sessionslist_workspacesmake_code_datamake_file_datamake_image_datamake_raw_datamake_table_datamake_text_dataNO_WATERMARKpublishpublish_baseQR_WATERMARKread_configread_csvread_csv2read_delimread_tsvread.csvread.csv2read.xlsxreproduciblereserve_short_id_prefixserver_infoset_optionssliderstaticsuppresssync_filesync_workspace_assettext_inputtry_base2grobupdate_revision_datauser_infowatermark_generatorwith_isolated_devices

Dependencies:askpassassertthatbase64encbitbit64bslibcachemclicliprcommonmarkcowplotcpp11crayoncurldigestevaluatefarverfastmapfontawesomefsggplot2ggplotifygit2rgluegridGraphicsgtablehighrhmshtmltoolshttpuvhttrisobandjquerylibjsonliteknitrlabelinglaterlifecyclemagickmagrittrmemoisemimeopensslotelpillarpkgconfigprettyunitsprogresspromisespurrrqrcodeR6rappdirsRColorBrewerRcppreadrrlangrstudioapirsvgS7sassscalesscriptNameshinyshinyjssourcetoolssystibbletidyselecttzdbutf8uuidvctrsviridisLitevroomwithrxfunxtableyamlyulab.utils

Readme and manuals

Help Manual

Help pageTopics
Creates an object representing a relationship between a figure and an asset.asset_linked_to_figure
Performs JWT authentication with username and password. Saves tokens in the GoFigr client.authenticate_jwt
Calculates a checksum for a filecalc_checksum
Default cat method for GoFigr revisions.cat.gofigr_revision
Check total DataFrame size against MAX_CLEAN_ROOM_BYTES. Returns a list with $ok (logical) and $total_bytes.check_clean_room_size
Checks whether GoFigr has been correctly configured.check_configured
Creates a checkbox parameter for use in 'reproducible' functions.checkbox
Default path to the config fileCONFIG_PATH
Create a new analysis within a workspace.create_analysis
Creates a new API key. This function will only succeed if using password authentication.create_api_key
Creates a new assetcreate_asset
Creates a new asset revisioncreate_asset_revision
Create a new figure under an analysis.create_figure
Creates a list of arguments for ggplot2::ggsave() with optional dimension and DPI parameters.create_ggsave_args
Creates a new revisioncreate_revision
Creates a new revision via the auto-assign endpoint.create_revision_auto_assign
Create a new workspace.create_workspace
List of data types supported by GoFigrDATA_TYPES
Returns a default value if argument is null or emptydefault_if_null
Delete an analysis by API ID.delete_analysis
Creates a dropdown parameter for use in 'reproducible' functions.dropdown
Enables GoFigr in the current R/Rmd file.enable
Converts a GoFigr data object into R primitives that can be converted to JSON, performing base64 encoding of binary data.encode_raw_data
Find an analysis by name, optionally creating it.find_analysis
Finds an asset by namefind_asset_by_name
Finds all asset revisions with a matching hash digestfind_asset_revision_by_hash
Finds the .gofigr config file in current directory or any of the parent directories. If the file cannot be found, will also check CONFIG_PATH.find_config
Find a figure by name within an analysis.find_figure
Find a workspace by name, optionally creating it.find_workspace
Fetch an analysis by API ID.get_analysis
Returns obj$api_id if argument is an object, or identity if it's a string.get_api_id
Resolves the short-redirect URL used for watermark/QR code links. Returns the bare "gofigr.io" domain (without app. prefix) so the resulting URLs and QR codes are as compact as possible.get_app_short_url
Resolves the app (frontend) URL from a GoFigr client's API base URL. Used for full app links (asset URLs, "View on GoFigr" links, etc). For watermark/QR code URLs, use 'get_app_short_url' instead.get_app_url
Fetches an asset given an API ID.get_asset
Gets an asset revision given an API IDget_asset_revision
Fetches Auth0 configuration from the server's /info endpoint.get_auth0_config
Gets the currently configured GoFigr clientget_client
Retrieves a data object. Use in conjunction with get_revision or get_asset_revision, to retrieve the full data for a data object.get_data
Gets the execution context: input path, chunk code, and other metadata.get_execution_context
Fetch a single figure by API ID.get_figure
Gets configured GoFigr options.get_options
Generates a QR code and converts it into an img element.get_qr_png
Fetches a revision given an API ID.get_revision
Gets the full URL for a revisionget_revision_url
Gets a title from a plotget_title
Retrieve workspace details.get_workspace
Plots and publishes an object (if supported)gf_plot
Prints and publishes an object (if supported)gf_print
Interactive configuration helper for the GoFigr R client.gfconfig
Generates a div container for the GoFigr widget.gfContainer
Defines a GoFigr plot area.gfPlot
Creates a Shiny component to handle plotting and publishing. Has to be paired with a gfPlot element in the UI.gfPlotServer
Applies a watermark to a plot object/function.ggwatermark
Equivalent to cat but only outputs if GoFigr client is verbose.gofigr_cat
Creates and configures a GoFigr client. You can login either using a username & password or an API key. See examples.gofigr_client
Wrapper for httr::DELETE that automatically handles authentication.gofigr_DELETE
Wrapper for httr::GET that automatically handles authentication.gofigr_GET
Wraps an HTTR method e.g. GET to provide relative URL resolution and authenticationgofigr_make_handler
Wrapper for httr::PATCH that automatically handles authentication.gofigr_PATCH
Wrapper for httr::POST that automatically handles authentication.gofigr_POST
Wrapper for httr::PUT that automatically handles authentication.gofigr_PUT
Resolve the workspace argument, falling back to the client's default.infer_workspace
Wraps a plotting function (e.g. plot) so that its output is intercepted by GoFigr.intercept
Returns True if the response indicates an expired JWT tokenis_expired_token
Checks whether GoFigr intercept is onis_intercept_on
Check whether a value is serializable for clean room storage.is_serializable
Draws a watermark with just a GoFigr linkLINK_WATERMARK
List analyses within a workspace.list_analyses
Lists all active GoFigr sessions.list_sessions
List all workspaces available to the authenticated user.list_workspaces
Prompts the user for an API key or interactively creates a new one.login_with_api_key
Authenticates via Auth0 Device Authorization Flow.login_with_device_flow
Creates a GoFigr data object storing source codemake_code_data
Creates a GoFigr data object storing file datamake_file_data
Creates a GoFigr data object storing image datamake_image_data
Creates a GoFigr data object which can be attached to revisions.make_raw_data
Creates a GoFigr data object storing data.frame/tabular datamake_table_data
Creates a GoFigr data object to store textmake_text_data
Creates a new asset revision from file.new_asset_revision_from_file
Does not draw any watermarks.NO_WATERMARK
Build a Shiny input widget from a gf_param descriptor.param_to_shiny_input
Default print method for a GoFigr client.print.gofigr
Default print method for GoFigr revisions.print.gofigr_revision
Publishes a figure to the GoFigr service.publish
Captures output from grid graphics (ggplot2, lattice, ComplexHeatmap, etc.) and publishes it to GoFigr.publish_base
Draws a watermark with a GoFigr link and a QR codeQR_WATERMARK
Reads the GoFigr configuration, prioritizing environment variables over the config file:read_config
Syncs a file with the GoFigr service and stores a reference. The file will be associated with all figures published after this call.read_csv
Syncs a file with the GoFigr service and stores a reference. The file will be associated with all figures published after this call.read_csv2
Syncs a file with the GoFigr service and stores a reference. The file will be associated with all figures published after this call.read_delim
Reads a line from stdin with optional validation and retry logic.read_prompt
Syncs a file with the GoFigr service and stores a reference. The file will be associated with all figures published after this call.read_tsv
Syncs a file with the GoFigr service and stores a reference. The file will be associated with all figures published after this call.read.csv
Syncs a file with the GoFigr service and stores a reference. The file will be associated with all figures published after this call.read.csv2
Syncs a file with the GoFigr service and stores a reference. The file will be associated with all figures published after this call.read.xlsx
Refreshes the JWT access token. Attempts re-authentication if refresh fails.refresh_jwt
Execute a function in a clean room environment and publish with full reproducibility metadata.reproducible
Reserve a short ID prefix from the GoFigr server.reserve_short_id_prefix
Convenience function for parsing JSON from httr responsesresponse_to_JSON
Round-trip parameters through serialization to ensure what the function sees matches what will be stored. DataFrames go through Parquet; other values go through JSON.round_trip_params
Run the Shiny gadget for interactive clean room exploration.run_reproducible_gadget
Returns cached server info from the /info/ endpoint.server_info
Sets GoFigr options.set_options
Creates a slider parameter for use in 'reproducible' functions.slider
Stacks images horizontally, centering them vertically.stack_horizontally
Stacks images vertically, centering them horizontally.stack_vertically
Creates a static (read-only) parameter for use in 'reproducible' functions.static
Suppresses any automatic GoFigr publication hooks.suppress
Syncs a file with the GoFigr service and stores a reference. The file will be associated with all figures published after this call.sync_file
Syncs a file with the GoFigr servicesync_workspace_asset
Creates a text input parameter for use in 'reproducible' functions.text_input
Tries to convert expression to a grob, returning it unchanged if it fails.try_base2grob
Updates data associated with a figureupdate_revision_data
Fetches user details for the currently logged in user.user_info
Validate that all parameters are serializable for clean room storage. Returns a list with $valid (logical) and $errors (character vector of messages).validate_params
Makes a watermark generator. You can use the result with enable(watermark=...).watermark_generator
Executes an expression while isolating any new graphics devices it creates.with_isolated_devices