Mercurial > repos > prog > lcmsmatching
comparison MsDbObserver.R @ 6:f86fec07f392 draft default tip
planemo upload commit c397cd8a93953798d733fd62653f7098caac30ce
| author | prog |
|---|---|
| date | Fri, 22 Feb 2019 16:04:22 -0500 |
| parents | fb9c0409d85c |
| children |
comparison
equal
deleted
inserted
replaced
| 5:fb9c0409d85c | 6:f86fec07f392 |
|---|---|
| 1 if ( ! exists('MsDbObserver')) { # Do not load again if already loaded | |
| 2 | |
| 3 library('methods') | |
| 4 | |
| 5 ##################### | |
| 6 # CLASS DECLARATION # | |
| 7 ##################### | |
| 8 | |
| 9 MsDbObserver <- setRefClass("MsDbObserver", fields = list()) | |
| 10 | |
| 11 ############ | |
| 12 # PROGRESS # | |
| 13 ############ | |
| 14 | |
| 15 MsDbObserver$methods( progress = function(msg, level = 1) { | |
| 16 }) | |
| 17 | |
| 18 ########### | |
| 19 # WARNING # | |
| 20 ########### | |
| 21 | |
| 22 MsDbObserver$methods( warning = function(msg) { | |
| 23 }) | |
| 24 | |
| 25 ######### | |
| 26 # ERROR # | |
| 27 ######### | |
| 28 | |
| 29 MsDbObserver$methods( error = function(msg) { | |
| 30 }) | |
| 31 | |
| 32 } # end of load safe guard |
