title: Download MODIS hdf using the MODIS package
body: <p>I am trying to download MODIS data from the LAADS and LPDAAC server using the MODIS-package. I am quite inexperienced with these kind of functions, so any help is appreciated!</p>
  
  <p>My code looks like this at the moment:</p>
  
  <pre><code>    library(MODIS)
      MODISoptions()
      getProduct("MOD11C3")
      getCollection("MOD11C3")
       b1 &lt;- getHdf(product = "MOD11C3", begin = "2007.07.01", end="2007.12.31") 
  </code></pre>
  
  <p>As soon as I am trying to get the hdf files from the server with the getHdf function, I get the following error: </p>
  
  <pre><code>    Updating collections from LPDAAC for platform: Terra 
      Error in if (FtpDayDirs[1] == FALSE) { : 
      missing value where TRUE/FALSE needed
  </code></pre>