Giter Club home page Giter Club logo

newsflash's Introduction

*** BREAKING CHANGES ***

newsflash

Tools to Work with the Internet Archive and GDELT Television Explorer

Description

Ref:

TV Explorer:

“In collaboration with the Internet Archive’s Television News Archive, GDELT’s Television Explorer allows you to keyword search the closed captioning streams of the Archive’s 6 years of American television news and explore macro-level trends in how America’s television news is shaping the conversation around key societal issues. Unlike the Archive’s primary Television News interface, which returns results at the level of an hour or half-hour”show," the interface here reaches inside of those six years of programming and breaks the more than one million shows into individual sentences and counts how many of those sentences contain your keyword of interest. Instead of reporting that CNN had 24 hour-long shows yesterday that mentioned Donald Trump, the interface here will count how many sentences uttered on CNN yesterday mentioned his name - a vastly more accurate metric for assessing media attention.“

Third Eye:

The TV News Archive’s Third Eye project captures the chyrons–or narrative text–that appear on the lower third of TV news screens and turns them into downloadable data and a Twitter feed for research, journalism, online tools, and other projects. At project launch (September 2017) we are collecting chyrons from BBC News, CNN, Fox News, and MSNBC–more than four million collected over just two weeks.“

An advantage of using this over the TV Explorer interactive selector & downloader or Third Eye API is that you get tidy tibbles with this package, ready to use in R.

NOTE: While I don’t claim that this alpha-package is anywhere near perfect, the IA/GDELT TV API hiccups every so often so when there are critical errors run the same query in their web interface before submitting an issue. I kept getting errors when searching all affiliate markets for the “mexican president” query that also generate errors on the web site when JSON is selected as output (it’s fine on the web site if the choice is interactive browser visualizations). Submit those errors to them, not here.

What’s Inside The Tin

The following functions are implemented:

  • list_chyrons: Retrieve Third Eye chyron index
  • list_networks: Helper function to identify station/network keyword and corpus date range for said market
  • newsflash: Tools to Work with the Internet Archive and GDELT Television Explorer
  • query_tv: Issue a query to the TV Explorer
  • read_chyrons: Retrieve TV News Archive chyrons from the Internet Archive’s Third Eye project
  • gd_top_trending: Top Trending (GDELT)
  • `iatv_top_trending: Top Trending Topics (Internet Archive TV Archive)
  • word_cloud: Retrieve top words that appear most frequently in clips matching your search

Installation

devtools::install_github("hrbrmstr/newsflash")
options(width=120)

Usage

library(newsflash)
library(ggalt)
library(hrbrthemes)
library(tidyverse)

# current verison
packageVersion("newsflash")
## [1] '0.6.0'

“Third Eye” Chyrons are simpler so we’ll start with them first:

list_chyrons()
## # A tibble: 457 x 3
##    ts         type         size
##    <date>     <chr>       <dbl>
##  1 2018-04-16 cleaned   297177.
##  2 2018-04-16 raw     10436998.
##  3 2018-04-15 cleaned   347063.
##  4 2018-04-15 raw      9884284.
##  5 2018-04-14 cleaned   470448.
##  6 2018-04-14 raw     13709682.
##  7 2018-04-13 cleaned   410976.
##  8 2018-04-13 raw     12058117.
##  9 2018-04-12 cleaned   384796.
## 10 2018-04-12 raw     11750908.
## # ... with 447 more rows
ch <- read_chyrons("2018-04-13")

mutate(
  ch, 
  hour = lubridate::hour(ts),
  text = tolower(text),
  mention = grepl("comey", text)
) %>% 
  filter(mention) %>% 
  count(hour, channel) %>% 
  ggplot(aes(hour, n)) +
  geom_segment(aes(xend=hour, yend=0), color = "lightslategray", size=1) +
  scale_x_continuous(name="Hour (GMT)", breaks=seq(0, 23, 6),
                     labels=sprintf("%02d:00", seq(0, 23, 6))) +
  scale_y_continuous(name="# Chyrons", limits=c(0,20)) +
  facet_wrap(~channel, scales="free") +
  labs(title="Chyrons mentioning 'Comey' per hour per channel",
       caption="Source: Internet Archive Third Eye project & <github.com/hrbrmstr/newsflash>") +
  theme_ipsum_rc(grid="Y")

Now for the TV Explorer:

See what networks & associated corpus date ranges are available:

list_networks(widget=FALSE)
## # A tibble: 159 x 6
##    StationID Description                Market               Network   StartDate  EndDate   
##    <chr>     <chr>                      <chr>                <chr>     <date>     <date>    
##  1 ALJAZ     Al Jazeera                 International        ALJAZ     2017-09-11 2017-09-11
##  2 ALJAZAM   Al Jazeera America         NationalDiscontinued ALJAZAM   2013-08-20 2013-08-20
##  3 BBCNEWS   BBC News                   International        BBCNEWS   2017-01-01 2017-01-01
##  4 BETW      BET - San Francisco (BETW) San Francisco        BET       2016-12-13 2016-12-13
##  5 BLOOMBERG Bloomberg                  National             BLOOMBERG 2013-12-05 2013-12-05
##  6 CNBC      CNBC                       National             CNBC      2009-07-02 2009-07-02
##  7 CNN       CNN                        National             CNN       2009-07-02 2009-07-02
##  8 COM       Comedy Central             NationalSpecialty    COM       2011-05-10 2011-05-10
##  9 CSPAN     CSPAN                      National             CSPAN     2009-06-04 2009-06-04
## 10 CSPAN2    CSPAN2                     National             CSPAN     2009-06-04 2009-06-04
## # ... with 149 more rows

Basic search:

comey <- query_tv('comey', start_date = "2018-04-01")

comey
## # A tibble: 144 x 3
##    network date        value
##    <chr>   <date>      <dbl>
##  1 CSPAN3  2018-04-01 0.0273
##  2 CSPAN3  2018-04-02 0.    
##  3 CSPAN3  2018-04-03 0.    
##  4 CSPAN3  2018-04-04 0.0241
##  5 CSPAN3  2018-04-05 0.    
##  6 CSPAN3  2018-04-06 0.    
##  7 CSPAN3  2018-04-07 0.    
##  8 CSPAN3  2018-04-08 0.    
##  9 CSPAN3  2018-04-09 0.    
## 10 CSPAN3  2018-04-10 0.    
## # ... with 134 more rows
query_tv('comey', start_date = "2018-04-01") %>% 
  arrange(date) %>% 
  ggplot(aes(date, value, group=network)) +
  ggalt::geom_xspline(aes(color=network)) +
  ggthemes::scale_color_tableau(name=NULL) +
  labs(x=NULL, y="Volume Metric", title="'Comey' Trends Across National Networks") +
  facet_wrap(~network) +
  theme_ipsum_rc(grid="XY") +
  theme(legend.position="none")

query_tv("comey Network:CNN", mode = "TimelineVol", start_date = "2018-01-01") %>% 
  arrange(date) %>% 
  ggplot(aes(date, value, group=network)) +
  ggalt::geom_xspline(color="lightslategray") +
  ggthemes::scale_color_tableau(name=NULL) +
  labs(x=NULL, y="Volume Metric", title="'Comey' Trend on CNN") +
  theme_ipsum_rc(grid="XY")

Relative Network Attention To Syria since January 1, 2018

query_tv('syria Market:"National"', mode = "StationChart", start_date = "2018-01-01") %>% 
  arrange(desc(count)) %>% 
  knitr::kable("markdown")
station count
FOX News 1.0148
CNN 0.8804
MSNBC 0.7668
CSPAN 0.6192
FOX Business 0.5121
CSPAN2 0.3346
Bloomberg 0.3208
CSPAN3 0.2392
CNBC 0.2171

Video Clips

clips <- query_tv('comey Market:"National"', mode = "ClipGallery", start_date = "2018-01-01")

clips
## # A tibble: 32 x 8
##    preview_url       ia_show_id    date       station show   show_date  preview_thumb           snippet                
##    <chr>             <chr>         <date>     <chr>   <chr>  <date>     <chr>                   <chr>                  
##  1 https://archive.… FOXNEWSW_201… 2018-04-13 FOX Ne… Shepa… 2018-04-13 https://archive.org/do… comey -- i mention it …
##  2 https://archive.… MSNBCW_20180… 2018-03-20 MSNBC   MTP D… 2018-03-20 https://archive.org/do… donald trump ousted co…
##  3 https://archive.… CNNW_2018041… 2018-04-16 CNN     CNN S… 2018-04-16 https://archive.org/do… comey versus comey or …
##  4 https://archive.… MSNBCW_20180… 2018-04-12 MSNBC   The R… 2018-04-12 https://archive.org/do… and the president of c…
##  5 https://archive.… FOXNEWSW_201… 2018-04-13 FOX Ne… The I… 2018-04-13 https://archive.org/do… comey announced when h…
##  6 https://archive.… FBC_20180413… 2018-04-13 FOX Bu… After… 2018-04-13 https://archive.org/do… untethered to the trut…
##  7 https://archive.… FBC_20180415… 2018-04-15 FOX Bu… The J… 2018-04-15 https://archive.org/do… that we haven't alread…
##  8 https://archive.… CNNW_2018031… 2018-03-18 CNN     New D… 2018-03-18 https://archive.org/do… media. after comey lea…
##  9 https://archive.… MSNBCW_20180… 2018-02-20 MSNBC   The B… 2018-02-20 https://archive.org/do… trump caused this inve…
## 10 https://archive.… CNBC_2018041… 2018-04-13 CNBC    Power… 2018-04-13 https://archive.org/do… he is ego different an…
## # ... with 22 more rows

2018-04-13 | FOX News | Shepard Smith Reporting

comey – i mention it because comey is in the news. treats comey like a white knight and points out that director comey would have a vested interest in distancing himself from andrew mccabe because the inspector general was also looking at comey and his

“Word Cloud” (top associated words to the query)

wc <- query_tv('hannity Market:"National"', mode = "WordCloud", start_date = "2018-04-13")

ggplot(wc, aes(x=1, y=1)) +
  ggrepel::geom_label_repel(aes(label=label, size=count), segment.colour="#00000000", segment.size=0) +
  scale_size_continuous(trans="sqrt") +
  labs(x=NULL, y=NULL) +
  theme_ipsum_rc(grid="") +
  theme(axis.text=element_blank()) +
  theme(legend.position="none") 

Last 15 Minutes Top Trending

gd_top_trending()
## $overall_trending_topics
##  [1] "commonwealth"          "shirley"               "caribbean"             "florida"              
##  [5] "jim comey"             "boston"                "sandra"                "nell"                 
##  [9] "george stephanopoulos" "vincent kompany"       "pallab ghosh"          "brighthouse financial"
## [13] "islamic state"         "wetherspoon"           "europe"                "sorrell"              
## [17] "north carolina"        "nasa"                  "starbucks"             "pakistan"             
## [21] "whitbread"             "cliff richard"         "asia"                  "hilary clinton"       
## [25] "ghouta"                "kevin johnson"         "west"                  "philadelphia"         
## [29] "renee"                 "zimbabwe"              "city"                  "bill chaplin"         
## [33] "james"                 "grassley"              "quetta"                "myrbetriq"            
## [37] "barbara"               "john heilemann"        "carrie underwood"      "joe"                  
## [41] "houston"               "balochistan"           "ibm"                   "medicare"             
## [45] "barclays"              "fidelity"              "jason aldean"          "rhonda"               
## [49] "michael flynn"         "belfast"               "kohler"               
## 
## $station_trending_topics
## # A tibble: 112 x 2
##    station topic           
##    <chr>   <chr>           
##  1 CNN     brilinta        
##  2 CNN     jim comey       
##  3 CNN     christine       
##  4 CNN     michael flynn   
##  5 CNN     tremfya         
##  6 CNN     tal             
##  7 CNN     nick paton walsh
##  8 CNN     geico           
##  9 CNN     vladimir putin  
## 10 CNN     lynch           
## # ... with 102 more rows
## 
## $station_top_topics
## # A tibble: 112 x 2
##    station topic        
##    <chr>   <chr>        
##  1 CNN     fbi          
##  2 CNN     russia       
##  3 CNN     donald trump 
##  4 CNN     james comey  
##  5 CNN     mueller      
##  6 CNN     syria        
##  7 CNN     united states
##  8 CNN     michael cohen
##  9 CNN     clinton      
## 10 CNN     cnn          
## # ... with 102 more rows
## 
## $overall_trending_phrases
##  [1] "morally unfit"                      "unfit to be president"              "good morning"                      
##  [4] "medically unfit"                    "president of the united"            "islamic state group"               
##  [7] "night sky"                          "bank of america"                    "xfinity delivers gig"              
## [10] "give this guy gig-"                 "delivers gig speed"                 "give this guy"                     
## [13] "gig speed"                          "speed to more homes"                "xfinity delivers gig speed"        
## [16] "guy gig-"                           "treats women"                       "xfinity delivers"                  
## [19] "donald trump"                       "gig-speed internet"                 "kennedy space centre"              
## [22] "people watching"                    "threatens new sanctions"            "donald trump unfit"                
## [25] "exclusive interview"                "evidence of obstruction"            "sees moral equivalence"            
## [28] "100 years"                          "air strikes"                        "fit to be president"               
## [31] "new york"                           "maintaining a level"                "shield annuity"                    
## [34] "growth opportunities"               "lies constantly"                    "time to make"                      
## [37] "level of protection"                "support for president assad"        "removing donald trump"             
## [40] "support for president"              "buy the stuff"                      "2700 journalists"                  
## [43] "pallab ghosh"                       "brighthouse financial- established" "mission to scan"                   
## [46] "stars resonate"                     "voting booth"                       "star makes"                        
## [49] "james comey comments"               "embody respect"                     "adhere to the values"

Top Overall Trending from the Internet Archive TV Archive (2017 and earlier)

iatv_top_trending("2017-12-01 18:00", "2017-12-02 06:00")
## # A tibble: 49 x 5
##    ts                  overall_trending_topics station_trending_topics station_top_topics   overall_trending_phrases
##    <dttm>              <list>                  <list>                  <list>               <list>                  
##  1 2017-12-01 18:00:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
##  2 2017-12-01 18:15:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
##  3 2017-12-01 18:30:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
##  4 2017-12-01 18:45:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
##  5 2017-12-01 19:00:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
##  6 2017-12-01 19:15:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
##  7 2017-12-01 19:30:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
##  8 2017-12-01 19:45:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
##  9 2017-12-01 20:00:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
## 10 2017-12-01 20:15:00 <chr [51]>              <data.frame [7 × 2]>    <data.frame [7 × 2]> <chr [51]>              
## # ... with 39 more rows

newsflash's People

Contributors

hrbrmstr avatar mikegruz avatar yeedle 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

newsflash's Issues

maxresults = 3000L

Many thanks for the package!

I noticed query_tv returns about 30 results most of time when I use 'ClipGallery' mode

Initial try was to increase 3000L to a larger number:
if (mode == "ClipGallery") query$maxresults <- 3000L
this did not seem to work

When I tried the line below, based on the actual link
if (mode == "ClipGallery") query$maxrecords = 100L # 3000L original code

https://api.gdeltproject.org/api/v2/tv/tv?format=html&timespan=FULL&last24=yes&query=autism%20(station:CNN%20OR%20station:FOXNEWS%20OR%20station:MSNBC%20)%20&mode=clipgallery&sort=datedesc&maxrecords=5000&format=json

an error massage popped up:
Error : lexical error: inside a string, '' occurs before a character which it may not.
neral, they can go to cnn.com\impact and make a difference.
(right here) ------^ **pointing . [cnn.com] in the line above **

Error in quer_tv when not using default filter_network()

When I run this code slightly amended from from the blog post

library(newsflash)
library(ggalt)  
library(hrbrmisc) 
library(DT)
library(plotly)
library(tidyverse)
starts <- seq(as.Date("2015-01-01"), (as.Date("2017-01-26")-30), "30 days") # splitting into 30 day chunks 25
ends <- as.character(starts + 29)
ends[length(ends)] <- ""

pb <- progress_estimated(length(starts))  # from dplyr takes app 1min
emails <- map2(starts, ends, function(x, y) {
  pb$tick()$print()
  query_tv("clinton", "email,emails,server", timespan="custom", start_date=x, end_date=y, filter_network = "AFFNETALL") 
})

This appears in the console

|====                                                                                                        |  4% ~1 s remaining     
No results found
|========                                                                                                    |  8% ~5 s remaining     
No results found
|========================================================                                                    | 52% ~9 s remaining     
Error: lexical error: inside a string, '\' occurs before a character which it may not.
          h! `/xx tt4w`t2n`qt'' mnh! `_\8 tt4w`t2n`qt'' nz(l `-'8 tt4w
                     (right here) ------^
Click for sessionInfo ``` > sessionInfo() R version 3.3.2 (2016-10-31) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_Canada.1252
[2] LC_CTYPE=English_Canada.1252
[3] LC_MONETARY=English_Canada.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_Canada.1252

attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base

other attached packages:
[1] dplyr_0.5.0 purrr_0.2.2
[3] readr_1.0.0 tidyr_0.6.1
[5] tibble_1.2 tidyverse_1.1.1
[7] plotly_4.5.6.9000 DT_0.2
[9] hrbrmisc_0.2.0 fastmatch_1.1-0
[11] ggalt_0.4.0 ggplot2_2.2.1.9000
[13] newsflash_0.4.2

loaded via a namespace (and not attached):
[1] Rcpp_0.12.9 lubridate_1.6.0
[3] lattice_0.20-34 assertthat_0.1
[5] digest_0.6.12 proj4_1.0-8
[7] psych_1.6.12 R6_2.2.0
[9] plyr_1.8.4 httr_1.2.1
[11] seleniumPipes_0.3.7 readxl_0.1.1
[13] lazyeval_0.2.0 curl_2.3
[15] extrafontdb_1.0 whisker_0.3-2
[17] Matrix_1.2-8 devtools_1.12.0
[19] extrafont_0.17 tidytext_0.1.2
[21] stringr_1.2.0 foreign_0.8-67
[23] htmlwidgets_0.8 munsell_0.4.3
[25] broom_0.4.2 modelr_0.1.0
[27] janeaustenr_0.1.4 base64enc_0.1-3
[29] mnormt_1.5-5 htmltools_0.3.5
[31] viridisLite_0.1.3 withr_1.0.2
[33] MASS_7.3-45 SnowballC_0.5.1
[35] grid_3.3.2 txtplot_1.0-3
[37] nlme_3.1-131 jsonlite_1.3
[39] Rttf2pt1_1.3.4 gtable_0.2.0
[41] DBI_0.6 magrittr_1.5
[43] formatR_1.4 scales_0.4.1
[45] tokenizers_0.1.4 KernSmooth_2.23-15
[47] stringi_1.1.2 reshape2_1.4.2
[49] xml2_1.1.1 ash_1.0-15
[51] RColorBrewer_1.1-2 tools_3.3.2
[53] forcats_0.2.0 hms_0.3
[55] maps_3.1.1 parallel_3.3.2
[57] colorspace_1.3-2 rvest_0.3.2
[59] memoise_1.0.0 knitr_1.15.1
[61] haven_1.0.0


Updated API Info

It looks like the GDELT Project has provided documentation for the 2.0 API - I'm working on a project that makes use of this data, so I'm already almost finished updating the query_tv function to work with the changes (documentation can be found here).

I'll submit a pull request in the next day or so with changes. Mostly these involve names of API parameters, date formatting (they're now requiring date-time for date ranges) and the like.

actually not able to install it

That might be a dumb question, but I run into the error


> devtools::install_github("hrbrmstr/newsflash")
Downloading GitHub repo hrbrmstr/newsflash@master
from URL https://api.github.com/repos/hrbrmstr/newsflash/zipball/master
Installing newsflash
"C:/PROGRA~1/R/R-33~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet  \
  CMD INSTALL  \
  "C:/Users/john/AppData/Local/Temp/RtmpGcxPA1/devtools4730d6a7d7a/hrbrmstr-newsflash-8e91201"  \
  --library="C:/Users/john/Documents/R/win-library/3.3" --install-tests 

* installing *source* package 'newsflash' ...
** R
** tests
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called 'htmlwidgets'
ERROR: lazy loading failed for package 'newsflash'
* removing 'C:/Users/john/Documents/R/win-library/3.3/newsflash'
Error: Command failed (1)

Do you know what's going on?

Issues with the timespan argument in query_tv

A call such as:

newsflash::query_tv("deep state",
                     timespan = NULL,
                     start_date = begin, end_date = end)

will result in

## Error in if (is.null(timespan) | (tolower(timespan) != "all")) { : 
##   argument is of length zero

It's a simple bug: the | operator is not short-circuiting, you gotta use || for that.

Another "issue", if you can call it that, is that setting start_date and end_date does not automatically change the value of timespan from "all" to NULL or something else, silently giving you back results for all time unles timespane is explicitly set to something else. I think a more intuitive behavior would be if the user sets start_date and end_date to assume timespan is not "all".

Chyrons older than 24 days?

Hi there,

I'm using your package to get long-term chyron data on hurricanes, similar to your example on R-Bloggers. My problem is that I can't get any chyron data prior to September 7, which complicates an analysis of hurricanes in July and August.

Is there a way to make those earlier chyrons available with the list_chyrons() function?

Thanks in advance.

Elliott

Is there a limit of context_keywords in query_tv()?

query_tv("trump", "tax,healthcare,wiretap,wiretaps,wiretapping,obamacare,avoidance,returns", start_date="2017-03-12", end_date="2017-03-13")

Error: lexical error: invalid char in json text.
                                       <!DOCTYPE html> <html lang="en-
                     (right here) ------^

If I limit to , say "tax,healthcare,wiretap" no error occurs

Difficulty passing date restrictions to query_tv

Fantastic package, but I'm missing something silly in passing date restrictions to the query_tv() function. For instance

library(newsflash)
library(tidyverse)

q1 <- query_tv(
"election",
  start_date = "2015-01-01" %>%
as.Date,
  end_date = "2015-01-31" %>%
as.Date
)

returns

 qtv1$timeline %>% head
# A tibble: 6 x 5
  date_start            date_end date_resolution      station value
      <dttm>              <dttm>           <chr>        <chr> <int>
1 2009-07-02 2009-07-02 23:59:59             day    Bloomberg     0
2 2009-07-02 2009-07-02 23:59:59             day         CNBC     1
3 2009-07-02 2009-07-02 23:59:59             day          CNN     1
4 2009-07-02 2009-07-02 23:59:59             day FOX Business     0
5 2009-07-02 2009-07-02 23:59:59             day     FOX News     0
6 2009-07-02 2009-07-02 23:59:59             day        MSNBC     0

How do I use temporal restrictions on search?

Error in loadNamespace - there is no package called `txtplot`

When I installed via devtools::install_github(), the following error was returned:

** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘txtplot’

I simply installed txtplot using install.packages('txtplot'), but wondered if this had to do with it not being included in the namespace.

json error

Hello!

I am getting the following error. Is this user error?

Error: lexical error: invalid char in json text.
                                       <!DOCTYPE html> <html lang="en-
                     (right here) ------^

Thank you!

Ben

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.