neocities_delete: Delete a file on your Neocities site.

Description Usage Arguments Examples

Description

Delete a file on your Neocities site.

Usage

1
2
neocities_delete(filename, ..., user = neocities_user(),
  pass = neocities_pass())

Arguments

filename

The name of the file as it appears on neocities.org.

...

Arguments that will be passed to the underlying httr POST request.

user

The username for your neocities account. See ?neocities_user for more details.

pass

The password for your neocities account. See ?neocities_pass for more details.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 

## Username and password have not been set as environmental variables, so
## the user will be prompted to enter their username and password if in
## interactive mode. The file will be deleted from
## http://username.neocities.org/report.html

neocities_delete("report.html")

## Setting username and password as environmental variables is wise when not
## in interactive mode, but be sure not to distribute them with your code.

Sys.setenv(NEOCITIES_USERNAME = "username")
Sys.setenv(NEOCITIES_PASSWORD = "password")
neocities_delete("report.html")

## You can also pass your username and password as function arguments.

neocities_delete("report.html", user="username", pass="password")


## End(Not run)

seankross/neocities documentation built on May 29, 2019, 4:55 p.m.