Skip to main content
 
 
 
IN THIS SECTION
4 posts
nob
Last seen: 03/17/2021 - 15:09
Joined: 03/10/2021 - 11:18
Citation networks

Hi.

I am trying to make a citation networks by reference to "https://docs.ropensci.org/patentsview/articles/articles/citation-networks.html".

However, there are some error which example code was run.

Console:

 

> # Look up which patents the relevant patents cite
> rel_pats_res <- search_pv(
+   query = list(patent_number = rel_pats$patent_number),
+   fields  .... [TRUNCATED] 
The _eq operator is a safer alternative to using field:value pairs or value arrays in your query
error : 'q' param is missing

Could you help me ?

 

Russ
Last seen: 12/06/2024 - 09:12
Joined: 11/14/2017 - 22:15
R PACKAGE PROBLEM

Hi Nob,

That's because of the recent url change to the patentsview api.  I submitted a pull request to fix it but it hasn't been accepted yet.  As a work around you could change the  method = "POST" to  method = "GET".   

Could you also comment in the git issue saying you are having trouble?  Until the r package is rebuilt everyone doing posts will have this problem. 

thanks,
Russ

nob
Last seen: 03/17/2021 - 15:09
Joined: 03/10/2021 - 11:18
RE: R PACKAGE PROBLEM

Hi Russ.

I understand the situation and the git issue. I hope your pull request will be accept soon.

Thanks
Nob

Russ
Last seen: 12/06/2024 - 09:12
Joined: 11/14/2017 - 22:15
NO GUARANTEES

Hi Nob,

No guarantees but you could use my repo if you'd like.  https://github.com/ropensci/patentsview shows how to install a package from a git repo using devtools.  mustberuss/patentsview would be my fork with the url change.  Or you could fork repensci/patentsview yourself and then install your version.  The PR shows the two files I changed https://github.com/ropensci/patentsview/pull/22/files You'd then be able to make citation networks etc.

The patentsview api will send back a redirect  so the POST to GET change should work using the real R package.  On a POST the redirect doesn't send the body so you get the missing q parameter error.  There was a git api issue for it but it was closed as the R package has to change the url for posts to work.

Russ