Running examples in 'repijson-Ex.R' failed
The error most likely occurred in:

> ### Name: as.ejObject.data.frame
> ### Title: Convert a dataframe to an ejObject
> ### Aliases: as.ejObject.data.frame
> 
> ### ** Examples
> 
> #Here we use the toyll (toy line-list) data provided inside the package
> data(toyll)
> toyll
  id  name        dob gender date.of.onset date.of.admission date.of.discharge
1  A   Tom 1981-01-12   male    2014-12-28              <NA>              <NA>
2  B  Andy 1980-11-11   male    2014-12-29        2015-01-05              <NA>
3 3D Ellie 1982-02-10 female    2015-01-03        2015-01-12        2015-01-17
4 4d   Ana 1981-12-09 female    2015-01-08              <NA>              <NA>
5  5  Tibo 1983-03-08   male    2015-01-04        2015-01-14        2015-01-17
     hospital fever sleepy contact1.id contact1.date contact2.id contact2.date
1        <NA>   yes     no           B    2014-12-26          3D    2014-12-25
2    St Marys   yes    yes           A    2014-12-26          3D    2014-12-26
3 Whittington    no    yes           5    2014-12-28           5    2015-01-14
4        <NA>    no     no        <NA>          <NA>        <NA>          <NA>
5 Whittington   yes    yes          3D    2014-12-28           A    2014-12-25
  contact3.id contact3.date
1           B    2015-01-08
2        <NA>          <NA>
3        <NA>          <NA>
4        <NA>          <NA>
5        <NA>          <NA>
> #Here we some data clean-up (make the date columns POSIX objects)
> #Date-time conversion could be made automatic but introduces
> #a big risk of mis-conversion so we leave this to the user
> #to ensure that we don't silently corrupt their data
> 
> toyll$date.of.onset <- as.POSIXct(toyll$date.of.onset)
> toyll$date.of.admission <- as.POSIXct(toyll$date.of.admission)
> toyll$date.of.discharge <- as.POSIXct(toyll$date.of.discharge)
> toyll$contact1.date <- as.POSIXct(toyll$contact1.date)
> toyll$contact2.date <- as.POSIXct(toyll$contact2.date)
> toyll$contact3.date <- as.POSIXct(toyll$contact3.date)
> 
> ind.fields <- c(names(toyll)[1:5], "hospital", "fever", "sleepy")
> x <- as.ejObject(toyll,
+                  recordAttributes=ind.fields,
+                  eventDefinitions=list(
+                  define_ejEvent(name="admission", date="date.of.admission"),
+                  define_ejEvent(name="discharge", date="date.of.discharge"),
+                  define_ejEvent(name="contact1", date="contact1.date", attributes="contact1.id"),
+                  define_ejEvent(name="contact2", date="contact2.date", attributes="contact2.id"),
+                  define_ejEvent(name="contact3", date="contact3.date", attributes="contact3.id")
+                  ))
> print(x)
Error in FUN(X[[i]], ...) : 
  no such symbol R_windows_build in package D:/temp/RtmpaQ6Z9t/RLIBS_2112c1fdf41a/curl/libs/x64/curl.dll
Calls: print ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted