Code Monkey home page Code Monkey logo

Comments (11)

mdsumner avatar mdsumner commented on June 18, 2024 1

Could you download the data and installed it in the package as a built-in? Whenever examples use the data set, it could include the commented out code that would be required to get it live.

I.e. analogously for the gtfs_obj example, in data-raw/ would be script to record something like this

url <- "http://data.trilliumtransit.com/gtfs/duke-nc-us/duke-nc-us.zip"
gtfs_obj <- url %>% import_gtfs(quiet=TRUE)
usethis::use_data(gtfs_obj)

from gtfsr.

dantonnoriega avatar dantonnoriega commented on June 18, 2024 1

from gtfsr.

dantonnoriega avatar dantonnoriega commented on June 18, 2024

Hmmm, you make a great point. The vignette shouldn't require an outside dependency but at the same time, the purpose of the package, and what is shown in the vignette, depends on having access to the API.

I didn't consider this when I wrote the vignette. You can see a lot of it already just by going to the md file on GitHub, but I'll have to think about a work around. Perhaps I'll have to get an API linked to some phantom email and let the world have access to it.

Any issues installing it without the vignette?

from gtfsr.

FilipeamTeixeira avatar FilipeamTeixeira commented on June 18, 2024

Thanks. I had no issues installing it without the vignette, however, I would really like to have more documentation on this package. It's a pity that a lot of functions are a bit unclear, but I'm happy to help if you need to as I'll be using your package for the next few months.
About the vignette, it should be possible to generate it without running the set_api_key function. I can look into it, if you want.

Anyway feel free to close the issue and mark it as solved and drop me an e-mail if you would like some help with this.

from gtfsr.

dantonnoriega avatar dantonnoriega commented on June 18, 2024

Closed by merge or pull request #46.

from gtfsr.

dantonnoriega avatar dantonnoriega commented on June 18, 2024

closed prematurely. made some more added adjustments to what @mdsumner started. was able to compile from a github_install tarball as shown in readme. give a go!

from gtfsr.

znmeb avatar znmeb commented on June 18, 2024

Can I reopen this? I want to install the vignettes. Is the workaround to fork the repo and build a pkgdown site?

from gtfsr.

dantonnoriega avatar dantonnoriega commented on June 18, 2024

from gtfsr.

znmeb avatar znmeb commented on June 18, 2024

I think I found the problem. I forked the repo and tried the build and got the error. It turns out that the failure is happening at line 75 of https://github.com/ropensci/gtfsr/edit/master/vignettes/gtfsr-vignette.Rmd

load("~/GitHub/gtfsr/data/gtfs_obj.rda")

That's a path that doesn't exist on my machine. When I changed it to a path that did exist, the vignette built, as did a pkgdown::build_site.

I'm not sure where that file lands during the vignette build process, so I don't know how to code a fix. But the workaround is to clone the repo and change that line to point to the right path.

from gtfsr.

dantonnoriega avatar dantonnoriega commented on June 18, 2024

from gtfsr.

znmeb avatar znmeb commented on June 18, 2024

Yep - installs fine! Thanks!!

from gtfsr.

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.