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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: leafletR-package
> ### Title: Interactive Web-Maps Based on the Leaflet JavaScript Library
> ### Aliases: leafletR-package leafletR
> ### Keywords: package
> 
> ### ** Examples
> 
> # load example data (Fiji Earthquakes)
> data(quakes)
> 
> # store data in GeoJSON file (just a subset here)
> q.dat <- toGeoJSON(data=quakes[1:99,], dest=tempdir(), name="quakes")
Columns 1 (lat) and 2 (long) detected as latitude and longitude
Error in is.na(data[, lat.lon[1]]) || is.na(data[, lat.lon[2]]) : 
  'length = 99' in coercion to 'logical(1)'
Calls: toGeoJSON -> dfToGeoJSON
Execution halted
Found the following problems:
leafletR-package.Rd:39:4: Warning: <img> attribute "width" has invalid value "350px"
Running examples in ‘leafletR-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: leafletR-package
> ### Title: Interactive Web-Maps Based on the Leaflet JavaScript Library
> ### Aliases: leafletR-package leafletR
> ### Keywords: package
> 
> ### ** Examples
> 
> # load example data (Fiji Earthquakes)
> data(quakes)
> 
> # store data in GeoJSON file (just a subset here)
> q.dat <- toGeoJSON(data=quakes[1:99,], dest=tempdir(), name="quakes")
Columns 1 (lat) and 2 (long) detected as latitude and longitude
Error in is.na(data[, lat.lon[1]]) || is.na(data[, lat.lon[2]]) : 
  'length = 99' in coercion to 'logical(1)'
Calls: toGeoJSON -> dfToGeoJSON
Execution halted
Found the following problems:
leafletR-package.Rd:39:4: Warning: <img> attribute "width" has invalid value "350px"
Running examples in ‘leafletR-Ex.R’ failed
The error most likely occurred in:

> ### Name: leafletR-package
> ### Title: Interactive Web-Maps Based on the Leaflet JavaScript Library
> ### Aliases: leafletR-package leafletR
> ### Keywords: package
> 
> ### ** Examples
> 
> # load example data (Fiji Earthquakes)
> data(quakes)
> 
> # store data in GeoJSON file (just a subset here)
> q.dat <- toGeoJSON(data=quakes[1:99,], dest=tempdir(), name="quakes")
Columns 1 (lat) and 2 (long) detected as latitude and longitude
Error in is.na(data[, lat.lon[1]]) || is.na(data[, lat.lon[2]]) : 
  'length = 99' in coercion to 'logical(1)'
Calls: toGeoJSON -> dfToGeoJSON
Execution halted
Running examples in ‘leafletR-Ex.R’ failed
The error most likely occurred in:

> ### Name: leafletR-package
> ### Title: Interactive Web-Maps Based on the Leaflet JavaScript Library
> ### Aliases: leafletR-package leafletR
> ### Keywords: package
> 
> ### ** Examples
> 
> # load example data (Fiji Earthquakes)
> data(quakes)
> 
> # store data in GeoJSON file (just a subset here)
> q.dat <- toGeoJSON(data=quakes[1:99,], dest=tempdir(), name="quakes")
Columns 1 (lat) and 2 (long) detected as latitude and longitude
Error in is.na(data[, lat.lon[1]]) || is.na(data[, lat.lon[2]]) : 
  'length = 99' in coercion to 'logical(1)'
Calls: toGeoJSON -> dfToGeoJSON
Execution halted
Running examples in 'leafletR-Ex.R' failed
The error most likely occurred in:

> ### Name: leafletR-package
> ### Title: Interactive Web-Maps Based on the Leaflet JavaScript Library
> ### Aliases: leafletR-package leafletR
> ### Keywords: package
> 
> ### ** Examples
> 
> # load example data (Fiji Earthquakes)
> data(quakes)
> 
> # store data in GeoJSON file (just a subset here)
> q.dat <- toGeoJSON(data=quakes[1:99,], dest=tempdir(), name="quakes")
Columns 1 (lat) and 2 (long) detected as latitude and longitude
Error in is.na(data[, lat.lon[1]]) || is.na(data[, lat.lon[2]]) : 
  'length = 99' in coercion to 'logical(1)'
Calls: toGeoJSON -> dfToGeoJSON
Execution halted