GithubHelp home page GithubHelp logo

Comments (2)

bbest avatar bbest commented on September 25, 2024

We can use code like the following to check date stamp on the server:

library(curl)
library(stringr)

con <- curl("ftp://ftp.epchc.org/EPC_ERM_FTP/WQM_Reports/")
dat <- readLines(con)
close(con)
dat

returns the following so still need to parse line 7 to check current file with file.info():

 [1] "06-08-17  08:38AM                58625 2017StationListParametersSampled.xlsx"                   
 [2] "02-04-19  12:15PM       <DIR>          2018"                                                    
 [3] "06-11-19  01:15PM       <DIR>          2019"                                                    
 [4] "06-11-19  07:55AM              8475361 Backup of PlanktonDataList_ThroughCurrentReportMonth.xlk"
 [5] "01-31-19  12:15PM       <DIR>          Maps"                                                    
 [6] "06-11-19  07:59AM              8475416 PlanktonDataList_ThroughCurrentReportMonth.xlsx"         
 [7] "06-11-19  12:44PM             24401100 RWMDataSpreadsheet_ThroughCurrentReportMonth.xlsx"       
 [8] "01-08-19  09:30AM                51776 RWMPreliminaryData-Nov-Dec2018.xlsx"                     
 [9] "02-05-19  09:15AM       <DIR>          StationListsWithDescriptions"                            
[10] "08-10-16  10:52AM             39800639 Surface Water Quality 2001-2010_Final.pdf"               
[11] "08-27-07  09:48AM             51211894 Surface Water Quality HC 98-00.pdf"                      
[12] "01-09-18  02:41PM               102400 Thumbs.db"                        

from tbeptools.

fawda123 avatar fawda123 commented on September 25, 2024

854ca79 Added a separate read_chkdate() function, used internally within get_epchc_wq()

from tbeptools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.