Code Monkey home page Code Monkey logo

Comments (10)

chris-prener avatar chris-prener commented on August 14, 2024

Nice! Progress looks great so far!

from censusxy.

bransonf avatar bransonf commented on August 14, 2024

@chris-prener Could you implement the continuous integration for me? I would rather not create travis/appveyor accounts and not sure of best practice implementation.

from censusxy.

chris-prener avatar chris-prener commented on August 14, 2024

yep - I'll do that now

from censusxy.

chris-prener avatar chris-prener commented on August 14, 2024

OK @bransonf - I cleaned up some code and some of the package infrastructure and added a bunch of items to the to-do list. Nothing major, I don't think! Nice work on getting these API calls sorted out.

A couple questions for cxy_geocode:

  • why is this named 'response'? is there a reason not to overwrite 'split'?
  • the left_join's performance could be improved if we used one variable instead of 4... can we use id?

A couple questions for cxy_geocoder:

  • what is the practical impact of using a warning in an internal function... I'm not sure about this
  • why call methods::as() instead of as.numeric()?

from censusxy.

chris-prener avatar chris-prener commented on August 14, 2024

Also, FWIW, appyveyor is failing because the new dplyr release's binaries aren't out yet and for some reason the source builds are failing. On the Travis side, it is failing on 3.3 and 3.4 because of the serialization issue I noted above.

from censusxy.

bransonf avatar bransonf commented on August 14, 2024

What do we do about the appveyor issue?

Reason to not overwrite split, as I understand (Could be wrong about this) is that initializing an empty vector pre-allocates memory for data to be put into. If the function re-wrote to the split object, it would put it in a new section of memory, and it would have to call the new object every iteration in the loop. (Causing an exponential slow down) Even if I'm wrong about that, the worst risk of using another object is using a bit more memory.

I'm not really happy about the left_join part at all. I never found a solution for unique id to row id. I would like to create a list of only unique addresses to send to the geocoder and then join that UID to a regular ID.

Dependency on methods and internal warning are remnants of early development, they've been removed. The error for all Non-Matches takes care of what the internal warning was meant for.

from censusxy.

bransonf avatar bransonf commented on August 14, 2024

And a note about the testing, we won't technically get full coverage without using more than 1000 addresses, but I'm confident that if something would fail in the batch process, it would also fail on the smaller data.

from censusxy.

chris-prener avatar chris-prener commented on August 14, 2024

OK - totally fine with split and glad you made those other changes. I made a couple of small tweaks to the unit test and fixed a documentation issued that R CMD check identified.

We're still failing one of the unit tests, which is connected to what happens when the data have a state column but it isn't included in the function call. This is something we need to address. Can you check that out?

That same solution is implemented in parts of both gateway and postmaster for the UID... do you want me to add that or do you want to explore how it works in those packages?

from censusxy.

chris-prener avatar chris-prener commented on August 14, 2024

RE: appveyor and Travis failing - the dplyr binaries should be available early this week and that should resolve any outstanding issues. As long as devtools::check() is doing well locally, I'm not concerned.

from censusxy.

chris-prener avatar chris-prener commented on August 14, 2024

OK - almost ready to fork and submit to CRAN - we just need to let the stack of CI builds wrap up!

from censusxy.

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.