File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,25 +175,29 @@ BiocCertificate <- function(...) {
175175 )
176176 as.data.frame(t(data ))
177177 })
178- observeEvent(input $ submit , {
179- tryCatch({
180- if (! grepl(" ^[[:alpha:] -]+$" , input $ fullname ))
181- stop(
182- " Names must contain only letters, spaces, and hyphens."
183- )
184- fdata <- formData()
185- hide(" form" )
186- hide(" error" )
187- hide(" submit_msg" )
188- show(" render_msg" )
189- show(" viewer" )
190- }, error = function (e ) {
191- html(" error_msg" , e $ message )
192- show(id = " error" , anim = TRUE , animType = " fade" )
193- hide(" viewer" )
194- hide(" render_msg" )
195- })
196- })
178+ observeEvent(
179+ input $ submit ,
180+ {
181+ tryCatch({
182+ if (! grepl(" ^[[:alpha:] -]+$" , input $ fullname ))
183+ stop(
184+ " Names must contain only letters, spaces," ,
185+ " and hyphens."
186+ )
187+ fdata <- formData()
188+ hide(" form" )
189+ hide(" error" )
190+ hide(" submit_msg" )
191+ show(" render_msg" )
192+ show(" viewer" )
193+ }, error = function (e ) {
194+ html(" error_msg" , e $ message )
195+ show(id = " error" , anim = TRUE , animType = " fade" )
196+ hide(" viewer" )
197+ hide(" render_msg" )
198+ })
199+ }
200+ )
197201 output $ pdfviewer <- renderText({
198202 filename <- paste0(
199203 gsub(" \\ s+" , " _" , input $ fullname ),
You can’t perform that action at this time.
0 commit comments