create_logo: Generate package's logo

View source: R/create_logo.R

create_logoR Documentation

Generate package's logo

Description

create_logo will create and generate the package's logo.

Usage

create_logo(
  save = TRUE,
  format = "html",
  file = "tableHTML_logo.html",
  complete_html = FALSE,
  ...
)

Arguments

save

A boolean when set to TRUE the logo will be saved in the specified format.

format

A character string to specify the format of the output, it accepts 'html', 'png', or 'jpeg'. Default is 'html'.

file

A character string to specify the name and path to the new file. Should end with '.html', '.png', or '.jpeg', depending on the selected format.

complete_html

Either TRUE or FALSE. Defaults to FALSE. If TRUE then the <html> and <body> tags are also added in the file.

...

Further parameters to pass to webshot.

Details

create_logo will create and generate the package's logo.

Value

The logo of the tableHTML package as a tableHTML object. The output will be shown in the Viewer pane, and can be saved either as an image or as an HTML.

Examples

## Not run: 
create_logo(save = FALSE)

create_logo(format = 'png', file = '~/exported_logo.png')

## End(Not run)


LyzandeR/tableHTML documentation built on April 17, 2023, 3:57 p.m.