Ifeanyi commited on
Commit
f5f8355
·
verified ·
1 Parent(s): 7966659

Update OpenAlexEdges.R

Browse files
Files changed (1) hide show
  1. OpenAlexEdges.R +1 -14
OpenAlexEdges.R CHANGED
@@ -5,18 +5,7 @@ authorPubEdges <- function(keywords,pub_start_date,pub_end_date){
5
  pub_end_date <- pub_end_date
6
 
7
 
8
- if(!is.character(keywords)) {
9
-
10
- shinyalert(
11
- title = "Error!",
12
- text = "You can only enter text values",
13
- closeOnEsc = T,
14
- closeOnClickOutside = T,
15
- confirmButtonText = "OK",
16
- timer = 4000
17
- )
18
- } else {
19
- # create search engine function
20
  search_engine <- function(keywords,pub_start_date,pub_end_date){
21
  suppressPackageStartupMessages(library(openalexR))
22
  suppressPackageStartupMessages(library(tidyverse))
@@ -191,6 +180,4 @@ authorPubEdges <- function(keywords,pub_start_date,pub_end_date){
191
  author_publication_edges <- replace_edges_with_ids(author_publication_edges, author_nodes)
192
 
193
  return(author_publication_edges)
194
-
195
- }
196
  }
 
5
  pub_end_date <- pub_end_date
6
 
7
 
8
+ # create search engine function
 
 
 
 
 
 
 
 
 
 
 
9
  search_engine <- function(keywords,pub_start_date,pub_end_date){
10
  suppressPackageStartupMessages(library(openalexR))
11
  suppressPackageStartupMessages(library(tidyverse))
 
180
  author_publication_edges <- replace_edges_with_ids(author_publication_edges, author_nodes)
181
 
182
  return(author_publication_edges)
 
 
183
  }