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

getMolecule(): wrong formula causes R crash #3

Open
mhische-md opened this issue Jun 5, 2015 · 3 comments
Open

getMolecule(): wrong formula causes R crash #3

mhische-md opened this issue Jun 5, 2015 · 3 comments

Comments

@mhische-md
Copy link

In getMolecule()submitting a string of numbers crashes the R session.
Example:

getMolecule( "3" )

Is there any way to catch this and throw an error instead, as it is done for getMolecule( "X" )?

@jalic
Copy link

jalic commented Apr 25, 2016

Hi Manu,
I use enviPat::check_chemform() to ensure valid formulas before passing this to any (!) Rdisop function. Hope you are well.
Bests [jan]

@mhische-md
Copy link
Author

Hi Jan,

thanks for the hint!
I was wondering, if catching this within the package would make the functions more stable.

Anyway, nice to see you here & I hope you are fine.
Cheers
Manu

@janlisec
Copy link
Contributor

janlisec commented Nov 5, 2024

Fixed in PR #32

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

No branches or pull requests

3 participants