ajdamico / lodown

locally download and prepare publicly-available microdata
GNU General Public License v3.0
97 stars 47 forks source link

Lodown datasus problem #123

Closed marceloprudente closed 7 years ago

marceloprudente commented 7 years ago

Hi,

Im trying to download datasus files with lodown, but the program gives me this error message:

"building catalog for datasus Error in value[3L] : while creating directory C:\ftp:\ftp.datasus.gov.br\para o diretório de nível superior< cannot create dir 'C:\ftp:\ftp.datasus.gov.br', reason 'Invalid argument'"

There is any solution? Thanks in advance

guilhermejacob commented 7 years ago

Can you provide the code and full output? Also, what OS are you using?

marceloprudente commented 7 years ago

I'm using Windows 10. This is the code and the full output: `lodown("datasus", output_dir = "C:/DATASUS/") building catalog for datasus

Error in value[3L] : while creating directory C:\ftp:\ftp.datasus.gov.br\para o diretório de nível superior< cannot create dir 'C:\ftp:\ftp.datasus.gov.br', reason 'Invalid argument`

If I traceback return this:

traceback() 6: stop("while creating directory ", this_dir, "\n", conditionMessage(w)) 5: value[[3L]](cond) 4: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 3: tryCatchList(expr, classes, parentenv, handlers) 2: tryCatch({ dir.create(this_dir, recursive = TRUE, showWarnings = TRUE) }, warning = function(w) stop("while creating directory ", this_dir, "\n", conditionMessage(w))) 1: lodown("datasus", output_dir = file.path(path.expand("~"), "DATASUS"))

ajdamico commented 7 years ago

sorry the website datasus.gov.br is not accessible outside of brazil so i'm not supporting it. thanks

guilhermejacob commented 7 years ago

@ajdamico , I guess you should drop https://github.com/ajdamico/lodown/blob/master/R/mtps.R for the same reason.

rmaranhao commented 7 years ago

Is there anything I can do to help? Brazilian data is very hard to come by in friendly formats and your package has been a huge help.

Um grande abraço, Roberto.

-- Roberto Maranhão - Maranhão Consultoria r.maranhao@gmail.com (5531) 8482 4456

2017-11-21 20:01 GMT-02:00 Anthony Damico notifications@github.com:

sorry the website datasus.gov.br is not accessible outside of brazil so i'm not supporting it. thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ajdamico/lodown/issues/123#issuecomment-346175411, or mute the thread https://github.com/notifications/unsubscribe-auth/ABt1F29gBlRv6V7PPKUnEpOw_m_bYUlQks5s40glgaJpZM4QmGOw .

guilhermejacob commented 7 years ago

I'd say try sending Datasus people a message, requesting access for foreign connections. I tried a few months ago, but to no avail.