# Computation termination

**URL:** <https://discourse.julialang.org/t/computation-termination/98046>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 28, 2023, 3:30pm UTC](https://discourse.julialang.org/t/computation-termination/98046 "2023-04-28T15:30:24Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Post date:** [May 2, 2023, 2:00am UTC](https://discourse.julialang.org/t/computation-termination/98046/18 "2023-05-02T02:00:37Z")

</div>

Am I correct in saying you want something like R’s [`stop`](https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/stop) function.  
Which terminates execution and returns to the top-level prompt without showing an big scary error message and stacktrace?

We have definitely talked about that before.  
At least once,

> [@A Julia equivalent to R's stop()?](https://discourse.julialang.org/t/a-julia-equivalent-to-rs-stop/36568):
>
> Is there an equivalent in Julia to the stop() function in R? The nice thing about stop() is that it can be run from any scope (e.g. a function within a function) and it will throw an error and terminate the function that the user called. I see that throw() in Julia does something similar, but I’d like to avoid printing a stack trace because it is not necessary for the info I’m trying to convey to users (e.g. two arrays provided as arguments are not the same size, but they need to be) For now, …

---

_[View the full topic](https://discourse.julialang.org/t/computation-termination/98046)._
