ropensci / popler

The R package to browse and query the popler database
https://docs.ropensci.org/popler
MIT License
8 stars 7 forks source link

Improve update_call() function #11

Closed bochocki closed 7 years ago

bochocki commented 7 years ago

Change the name of this function (potentially to call_update()). This function currently needs to be improved for structure and treatment search criteria.

Currently, calls such as:

browse(structure == "age" | structure == "size") fail. This needs to be improved, and tests need to be designed for this function.

bochocki commented 7 years ago

I'm currently working on a general version of call_update() that uses string manipulations. I have a working draft of the code that seems to work in most cases; I just need to clean it up and run some tests before integrating it into the browse() function.

bochocki commented 7 years ago

revised the draft code and implemented it in the browse() function. Here are details on the update:

bochocki commented 7 years ago

I suggest we delete update_call.R and close this issue.

bochocki commented 7 years ago

also, for call_update() to work, stringr needs to be in the list of packages that load with popler.

AldoCompagnoni commented 7 years ago
  1. I agree on deleting update_call - go ahead if you like.
  2. Let's put stringr in section "Depends" of the DESCRIPTION file for now. However, we will have to handle dependencies otherwise, as I was repeatedly suggested not to use "depends".
bochocki commented 7 years ago

deleted update_call.R... I suggest closing this issue once stringr is in the "Depends" section, since that gets into another issue (this one: https://github.com/AldoCompagnoni/popler/issues/23)

AldoCompagnoni commented 7 years ago

stringr is in DESCRIPTION, so I will close this issue!