Learn R Programming

Achilles (version 1.0)

exportDashboardToJson: exportDashboardToJson

Description

exportDashboardToJson Exports Achilles Dashboard report into a JSON form for reports.

Usage

exportDashboardToJson(connectionDetails, cdmDatabaseSchema,
  resultsDatabaseSchema, outputPath = getwd(), cdmVersion = "4")

Arguments

connectionDetails

An R object of type ConnectionDetail (details for the function that contains server info, database type, optionally username/ password, port)

cdmDatabaseSchema

Name of the database schema that contains the vocabulary files

resultsDatabaseSchema

Name of the database schema that contains the Achilles analysis files. Default is cdmDatabaseSchema

outputPath

A folder location to save the JSON files. Default is current working folder

Value

none

Details

Creates individual files for Dashboard report found in Achilles.Web. NOTE: This function reads the results from the other exports and aggregates them into a single file. If other reports are not genreated, this function will fail.

Examples

Run this code
# NOT RUN {
  connectionDetails <- createConnectionDetails(dbms="sql server", server="yourserver")
  exportDashboardToJson(connectionDetails, cdmDatabaseSchema="cdm4_sim", outputPath="your/output/path")
# }

Run the code above in your browser using DataLab