Whether I should have an assert() in model.c or use some other error mechanism. If the assertion fails, it crashes R!! Would never happen to a user but can happen to a developer messing around with the model probabilities in that C file.
More checks better if this pass normally you should have them to ensure the quality of your package. If someone touches the internals of your package they should know what they are doing or contact the maintainer.
More checks better if this pass normally you should have them to ensure the quality of your package. If someone touches the internals of your package they should know what they are doing or contact the maintainer.