All Projects → ginolhac → upnews

ginolhac / upnews

Licence: other
Display news and update outdated github R packages

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to upnews

Event Registry Python
Python package for API access to news articles and events in the Event Registry
Stars: ✭ 179 (+616%)
Mutual labels:  news
Marquee Scroller
Marquee Scroller Clock News Weather and More
Stars: ✭ 211 (+744%)
Mutual labels:  news
Cms
News Management System Written In PHP
Stars: ✭ 245 (+880%)
Mutual labels:  news
California Coronavirus Data
The Los Angeles Times' independent tally of coronavirus cases in California.
Stars: ✭ 188 (+652%)
Mutual labels:  news
Hacker News Pwas
HNPWA - Hacker News readers as Progressive Web Apps 📱
Stars: ✭ 2,345 (+9280%)
Mutual labels:  news
Awesome Openbsd
A curated list of awesome OpenBSD resources
Stars: ✭ 228 (+812%)
Mutual labels:  news
N2h4
네이버 뉴스 수집을 위한 도구
Stars: ✭ 177 (+608%)
Mutual labels:  news
TradeTheEvent
Implementation of "Trade the Event: Corporate Events Detection for News-Based Event-Driven Trading." In Findings of ACL2021
Stars: ✭ 64 (+156%)
Mutual labels:  news
Mvpapp
Android MVP Architecture
Stars: ✭ 2,354 (+9316%)
Mutual labels:  news
Chart Tool
A responsive charting application
Stars: ✭ 244 (+876%)
Mutual labels:  news
News
TYPO3 Extension news
Stars: ✭ 192 (+668%)
Mutual labels:  news
Woid
Simple news aggregator displaying top stories in real time
Stars: ✭ 204 (+716%)
Mutual labels:  news
Golang News
Golang 기술 소식 뉴스레터
Stars: ✭ 233 (+832%)
Mutual labels:  news
Newsapp
NewsApp
Stars: ✭ 183 (+632%)
Mutual labels:  news
los-angeles-police-killings-data
The Los Angeles Times' database of people killed by local police in Los Angeles County.
Stars: ✭ 14 (-44%)
Mutual labels:  news
Awesome Blogs
한국에 있는 좋은 개발자들의 블로그들을 편리하게 구독할 수 있도록 하나의 주소로 묶어서 RSS 피드로 제공해줍니다.
Stars: ✭ 178 (+612%)
Mutual labels:  news
Newscatchr
FOSS Android News Reader App
Stars: ✭ 216 (+764%)
Mutual labels:  news
client-js
Demonstration of using the api in javascript
Stars: ✭ 20 (-20%)
Mutual labels:  news
qianduan-yule-club
前端娱乐圈大事记 http://qianduanyule.club/
Stars: ✭ 132 (+428%)
Mutual labels:  news
Javascript Articles Monthly
JavaScript 文章精选月刊
Stars: ✭ 238 (+852%)
Mutual labels:  news

upnews

Travis-CI Build Status AppVeyor build status Coverage status

Display news and upgrade outdated GitHub R packages

Motivation

Get a similar output as the RStudio Update button for CRAN packages, but for GitHub ones.

Installation

You can install the released version of upnews from github

Console version

if (!requireNamespace("remotes")) install.packages("remotes")
remotes::install_github("ginolhac/upnews")

With add-in

if (!requireNamespace("remotes")) install.packages("remotes")
remotes::install_github("ginolhac/upnews", dependencies = TRUE)

Procedure

This add-in will fetch the remote HEAD sha1 of local github packages and compare them, to the remote HEAD (same branch). If some packages are outdated, fetch and display a link to a NEWS file (case insensitive NEWS.md). If the Ref is a commit, all branches are tested to find out from which branch it originate from.

Usage and ouput

Console

> upnews::upnews()
fetching 23 distant sha1
   |++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed = 05s
4 outdated pkgs (23 gh pkgs)
fetching news...
no news for jeroen/credentials/master
# A tibble: 4 x 7
  pkgs               loc_version gh_version local          remote         date       news                                                           
* <chr>              <chr>       <chr>      <chr>          <chr>          <chr>      <chr>                                                          
1 ginolhac/bifag     0.1.3.990   0.1.3.990  master@d490355 master@362992a 2018-11-07 https://raw.githubusercontent.com/ginolhac/bifag/master/NEWS.md
2 jeroen/credentials 0.1         0.1        master@c9a4197 master@e1b2d9d 2018-11-13 NA                                                             
3 r-lib/pkgbuild     1.0.2.9000  1.0.2.9000 master@aec4654 master@6e4ebdf 2018-10-28 https://raw.githubusercontent.com/r-lib/pkgbuild/master/NEWS.md
4 tidyverse/rlang    0.3.0.9000  0.3.0.9000 master@f6a719a master@b8566db 2018-11-14 https://raw.githubusercontent.com/r-lib/rlang/master/NEWS.md

RStudio add-in

  • use the upnews link in the Addins menu.
  • in the console, a progress bar display the retrieval of remote HEAD
  • finally a DataTable output is displayed:

screenshot

  • the package name has a pophover text with user/pkg and a link to the GitHub repo
  • loc_version is from the DESCRIPTION local file, and a pophover text displays branch/commit
  • gh_version is from the DESCRIPTION remote file, and a pophover text displays branch/commit
  • date is the last commit date

when the green buttons are used, NEWS.md are fetched and rendered in modals:

screenshot2

  • Demo GIF below:

demo gif

increase limits to the GITHUB API

If you need more request to the GitHub API, you must be authenticated. Then, the limit is 5,000 requests per hour instead of 60.

To authenticate yourself, you can follow the great happygitwithr bookdown by Jenny Bryan. The specific chapter about the GITHUB_PAT env variable is here. Brefly:

  • create a token with no rights on GitHub
  • write this token in your ~/.Renviron file
  • from a fresh R session, check you registered token with Sys.getenv("GITHUB_PAT")

Related packages

@Pakillo recently made me aware of this similar package dtupdate by Bob Rudis. It has no add-in plus a dependency to dplyr but must be more stable than this one.

Acknowledgements

TODO

  • smarter search for news
  • tests add-in (shinytest)
  • is it useful since remotes v2.0.1 allows an interactive upgrade?
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].