cqc_reports | R Documentation |
Return CQC inspection reports, either as a plain text character vector, or by saving a PDF to the chosen directory.
cqc_reports(
inspection_report_link_id,
related_document_type = NULL,
plain_text = TRUE,
attempt_pdf = FALSE,
directory = NULL,
file_name = NULL,
verbose = TRUE
)
inspection_report_link_id |
The ID of the report to return. |
related_document_type |
An optional qualifier to retrieve a document related to the main report. This parameter is the Related Document Type found from the relatedDocuments response object. e.g. "Use%20of%20Resources". When this parameter is absent, the main report for the inspection is returned. |
plain_text |
If |
attempt_pdf |
Set behaviour when attempting to retrieve plain text
of reports. If |
directory |
The directory to save PDF files in. Defaults to current working directory. |
file_name |
A custom file name given to a PDF file being saved locally.
If |
verbose |
If |
Either a PDF of the inspection report saved to the working directory, or a character vector with the plain text of the inspection report, depending on parameters used.
report2 <- cqc_reports("41d035b1-43e7-4857-be33-cf1b57cf4311")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.