title: writeOGR error: creation of output file failed
body: <p>I'm an R rookie and attempting to create home ranges from fish telemetry data using  kernel density estimates within the adehabitatHR package </p>
  
  <pre><code>    kud &lt;- kernelUD(muskydetectdata.P[,6], h="href", extent = 5)
      class(kud)
  
      image(kud)
      kud[[1]]@h
  
      muskykud.P95 &lt;- getverticeshr(kud, percent = 95)
      muskykud.P95 
  
      muskykud.P50 &lt;- getverticeshr(kud, percent = 50)
      muskykud.P50 
  </code></pre>
  
  <p>when exporting to a shapefile</p>
  
  <pre><code>    writeOGR(muskydetectdata.sp,"musky_kde1", "gps", 
      driver="ESRI Shapefile",                                        
      dataset_options= "FieldName= id")
  </code></pre>
  
  <p>an error message is displayed</p>
  
  <pre><code>    ##creation of output file failed
  </code></pre>
  
  <p>I have also attempted to use <code>writeSpatialShape</code> with similar results</p>
  
  <p>I'm using R version 3.3.2 on windows 64 bit</p>