BiologicalRecordsCentre / sparta

Species Presence/Absence R Trends Analyses
http://biologicalrecordscentre.github.io/sparta/index.html
MIT License
21 stars 24 forks source link

Print error for example code in occDetFunc & occDetModel #196

Closed drnickisaac closed 3 years ago

drnickisaac commented 4 years ago

The code reads:

first <- as.Date(strptime("2010/01/01", "%Y/%m/%d")) 
last <- as.Date(strptime(paste(2010+(nyr-1),"/12/31", sep=''), "%Y/%m/%d")) 

The help code in R reads:

first <- as.Date(strptime("2010/01/01", "
last <- as.Date(strptime(paste(2010+(nyr-1),"/12/31", sep=''), "

which throws an error. Does anyone else see the help text this way? Could it be a Markdown error, or some problem with the % sign

drnickisaac commented 3 years ago

Fixed now on my local version. I added format = and now the full set of code appears in the documentation.