Description Usage Arguments Examples
View source: R/create_sunset_cal.R
This function creates a .CSV of sunset appointments–with a user-specified location–that can be imported into Google Calendar.
1 2 3  | create_sunset_cal(date = "2014/01/01", lat = 40.7127, long = -74.0059,
  timezone = "America/New_York", num.days = 365, file = "sunset.csv",
  location = "Brooklyn Heights Promenade, Brooklyn, NY 11201")
 | 
date | 
 Date at which you want the calendar to start, in yyyy/mm/dd format.  | 
lat | 
 Latitude of location (for sunset time calculation)  | 
long | 
 Longitude of location (for sunset time calculation, will be negative for continental US)  | 
timezone | 
 Timezone of location (for sunset time calculation).  | 
num.days | 
 Number of days you want sunset appointments for.  | 
file | 
 Filename for outputted .CSV file (to be uploaded to Google Calendar).  | 
location | 
 Location of sunset appointment. Will be input into Google Calendar event as the event location.  | 
1 2 3 4  | ## Not run: 
create_sunset_cal(location = "40.7127, -74.0059")
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.