Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added robustness to parsing of values that might be missing. #142

Merged
merged 1 commit into from Feb 3, 2018
Merged

Added robustness to parsing of values that might be missing. #142

merged 1 commit into from Feb 3, 2018

Conversation

stanstrup
Copy link
Collaborator

In the current code when a value is not found it returns numeric(0) which has length 0. SO when added to the vector things get out of sync.
Example that triggers the bug: http://www.chemspider.com/Chemical-Structure.391783.html

I didn't fix for all the properties but I think everything can be fixed the same way.

In the current code when a value is not found it returns `numeric(0)` which has length 0. SO when added to the vector things get out of sync.
Example that triggers the bug: http://www.chemspider.com/Chemical-Structure.391783.html

I didn't fix for all the properties but I think everything can be fixed the same way.
@codecov-io
Copy link

codecov-io commented Feb 2, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@7f3da26). Click here to learn what that means.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##             master   #142   +/-   ##
=======================================
  Coverage          ?     0%           
=======================================
  Files             ?     17           
  Lines             ?   1630           
  Branches          ?      0           
=======================================
  Hits              ?      0           
  Misses            ?   1630           
  Partials          ?      0
Impacted Files Coverage Δ
R/chemspider.R 0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f3da26...04c8fa1. Read the comment docs.

@eduardszoecs eduardszoecs merged commit 3d80c98 into ropensci:master Feb 3, 2018
eduardszoecs added a commit that referenced this pull request Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants