write_page: write_page

Description Usage Arguments Details Value Author(s)

View source: R/data.R

Description

write a webpage

Usage

1
2
3
4
5
6
7
8
9
write_page(
  data,
  path = tempdir(),
  ftp = NULL,
  template = "CWD/map.html",
  owntemplate = NULL,
  overwrite = FALSE,
  browse = TRUE
)

Arguments

data

path to data

path

path to new webpage does not end in a "/"

ftp

NULL if you want to you a path to a directory, otherwise specify the ftp server with credentials like: "ftp://User:Password@servername/Destination". This is the directory on the ftp server that the files will be placed. It must end in a '/' and will be expanded when called by curl_upload in the curl library.

template

the name of the map template. This is a .html file in the inst directory of svamap

owntemplate

path to you own template. This would include everything your map needs but the data including the assets, like .css, .js and .png files

overwrite

Do you want to overwrite files in the destination directory?

browse

Pop the browser and view the page?

Details

Copy the files to a direcetory

Value

The path to the map or NULL if ftp

Author(s)

Thomas Rosendal


SVA-SE/svamap documentation built on Sept. 25, 2020, 3:53 p.m.