Giter VIP home page Giter VIP logo

newscatcher's People

Contributors

jcrodriguez1989 avatar jmbuhr avatar novica avatar teofiln avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

alexfg

newscatcher's Issues

external-data should be moved to data-raw

as discussed here: https://r-pkgs.org/data.html

Often, the data you include in data/ is a cleaned up version of raw data you’ve gathered from elsewhere. I highly recommend taking the time to include the code used to do this in the source version of your package. This will make it easy for you to update or reproduce your version of the data. I suggest that you put this code in data-raw/. You don’t need it in the bundled version of your package, so also add it to .Rbuildignore. Do all this in one step with:

GP newscatcheR

It is good practice to

✖ fix this R CMD check NOTE:
Note: found 1 marked UTF-8 string
✖ fix this R CMD check WARNING:
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found: ! LaTeX Error: File
`inconsolata.sty' not found. Type X to
quit or to proceed, or enter
new name. (Default extension: sty) !
Emergency stop. <read *> l.287 ^^M !
==> Fatal error occurred, no output PDF
file produced!

tidyRSS & dplyr 1.0.0

Hi,

Sorry for opening an issue, not an issue as such, but just to let you know there are quite a few changes in the latest versions of tidyRSS, inclduing a hard dependency on dplyr 1.0.0., in case you start seeing errors all over the place.

Rob

implement something similar to describe_url() and urls() in the python package

describe_url -- How to check which topics are supported by which newspaper:

and

# URLs by TOPIC
politic_urls = urls(topic = 'politics')

# URLs by COUNTRY
american_urls = urls(country = 'US')

# URLs by LANGUAGE
english_urls = urls(language = 'en')

# Combine any from topic, country, language
american_english_politics_urls = urls(country = 'US', topic = 'politics', language = 'en') 

Tests fail if there is no internet connection.

If there is no internet connection, some test cases are failing, these should be skipped.

==> devtools::test()

Loading newscatcheR
Testing newscatcheR|  OK F W S | Context|   2       | check_url|   1       | decribe_url|  21       | filter_urls [0.1 s]
x |   0 1     | get_headlines [3.1 s]
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
test-get_headlines.R:6: error: get_headlines returns a data frame with one column
Attempt to fetch feed resulted in an error: Could not resolve host: news.ycombinator.com
Backtrace:
 1. newscatcheR::get_headlines("ycombinator.com") tests/testthat/test-get_headlines.R:6:2
 2. newscatcheR::get_news(website, topic, rss_table) R/get_headlines.R:27:2
 3. tidyRSS::tidyfeed(news_source$rss_url) R/get_news.R:51:2
 4. tidyRSS:::safe_get(feed, config = ua)
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
x |   0 1     | get_news [3.0 s]
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
test-get_news.R:6: error: get_news returns a tibble with feed contents
Attempt to fetch feed resulted in an error: Could not resolve host: news.ycombinator.com
Backtrace:
 1. newscatcheR::get_news("ycombinator.com") tests/testthat/test-get_news.R:6:2
 2. tidyRSS::tidyfeed(news_source$rss_url) R/get_news.R:51:2
 3. tidyRSS:::safe_get(feed, config = ua)
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

══ Results ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Duration: 6.3 s

OK:       24
Failed:   2
Warnings: 0
Skipped:  0

Release newscatcheR 0.1.1.9000

Prepare for release:

  • git pull
  • Check current CRAN check results
  • Polish NEWS
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • git push

Submit to CRAN:

  • usethis::use_version('patch')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • git push
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • git push

goodpractice check

It is good practice to

✖ add a "URL" field to
DESCRIPTION. It helps users find
information about your package online.
If your package does not have a
homepage, add an URL to GitHub, or the
CRAN package package page.
✖ add a "BugReports" field to
DESCRIPTION, and point it to a bug
tracker. Many online code hosting
services provide bug trackers for free,
https://github.com, https://gitlab.com,
etc.
✖ avoid long code lines, it is
bad for readability. Also, many people
prefer editor windows that are about 80
characters wide. Try make your lines
shorter than 80 characters

R/get_headlines.R:9:1
R/get_news.R:9:1

✖ not import packages as a
whole, as this can cause name clashes
between the imported packages. Instead,
import only the specific functions you
need.
✖ fix this R CMD check NOTE:
Note: found 1 marked UTF-8 string
✖ fix this R CMD check WARNING:
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found: ! LaTeX Error: File
`inconsolata.sty' not found. Type X to
quit or to proceed, or enter
new name. (Default extension: sty) !
Emergency stop. <read *> l.287 ^^M !
==> Fatal error occurred, no output PDF
file produced!

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.