File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,26 @@ source("nmfconsensus.R")
46
46
runNMF()
47
47
```
48
48
49
+ Enter your name (or any name that you recognize) so you can see how your runtime
50
+ compares to other approaches later.
51
+
49
52
You will realize that it throws an error. Try to spot and correct it. You can get
50
53
get a quick overview of the context with ` traceback() ` .
51
54
52
55
** Using the debugger**
53
56
54
57
If there is an error you can not spot right away, it makes sense to run your code
55
58
through the debugger. You can debug a function by calling ` debug() ` on it. In our
56
- case, you will want to call ` debug(nmfconsensus) ` and then the function again. It
57
- will show the chunk of code that is about to be executed. Within the debugger, you
58
- can type in the following commands:
59
+ case, you will want to call
60
+
61
+ ``` splus
62
+ options(error = recover ) # if there is an error, don't just quit
63
+ debug(nmfconsensus ) # use the debugger for this function
64
+ runNMF()
65
+ ```
66
+
67
+ It will show the chunk of code that is about to be executed. Within the debugger,
68
+ you can type in the following commands:
59
69
60
70
* ** < ; Enter> ; or n:** execute the next single statement
61
71
* ** c:** execute the next block
You can’t perform that action at this time.
0 commit comments