This function initiates a server for ggfigdone, which can be accessed through a web browser. The web application enables users to manage and modify ggplot figures with ease. Users have the ability to:
Update the ggplot code by adding new components.
Adjust the figure size.
Download the figure as a PDF.
Download the data used to create the figure.
fd_server(dir, host = "0.0.0.0", port = 8080, auto_open = TRUE)No return value, the function is called for its side effects.
The directory of the ggfigdone database.
The host on which the server will run; the default is '0.0.0.0'.
The port on which the server will run; the default is 8080.
A logical value indicating whether the server should be opened in a web browser; the default is TRUE.
By default the function will open a web browser to access the server.
You can configure the web browser by setting the options:
options(browser = "firefox") # Set Firefox as the default