Skip to content

Commit 17d0a63

Browse files
authored
build: DH-20847: Fix R client site build and improve error reporting. (#7441)
1 parent 30a327e commit 17d0a63

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

R/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ def rClientDoc = Docker.registerDockerTask(project, 'rClientDoc') {
142142
" install.packages('roxygen2'); " \
143143
" 0" \
144144
" }," \
145-
" error=function(e) 1," \
146-
" warning=function(w) 2" \
145+
" error=function(e) { print(paste0('ERROR: ', e)); 1 }" \
147146
");" \
148147
"print(paste0('status=', status));" \
149148
"quit(save='no', status=status)" | \
@@ -180,11 +179,11 @@ def rClientSite = Docker.registerDockerTask(project, 'rClientSite') {
180179
runCommand("mkdir -p ${prefix}/src/rdeephaven/docs")
181180
runCommand('''echo "status = tryCatch(" \
182181
" {" \
183-
" install.packages('pkgdown'); " \
182+
" install.packages('remotes'); " \
183+
" remotes::install_version('pkgdown', version = '2.1.3', repos = 'https://cloud.r-project.org'); " \
184184
" 0" \
185185
" }," \
186-
" error=function(e) 1," \
187-
" warning=function(w) 2" \
186+
" error=function(e) { print(paste0('ERROR: ', e)); 1 }" \
188187
");" \
189188
"print(paste0('status=', status));" \
190189
"quit(save='no', status=status)" | \

R/r-doc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ status = tryCatch(
1818
roxygen2::roxygenize()
1919
0
2020
},
21-
error=function(e) 1
21+
error=function(e) { print(paste0('ERROR: ', e)); 1 }
2222
)
2323
print(paste0('status=', status))
2424
quit(save='no', status=status)

R/r-site.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ status = tryCatch(
1818
pkgdown::build_site(preview=FALSE)
1919
0
2020
},
21-
error=function(e) 1
21+
error=function(e) { print(paste0('ERROR: ', e)); 1 }
2222
)
2323
print(paste0('status=', status))
2424
quit(save='no', status=status)

R/r-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ status = tryCatch(
2525
test_package('rdeephaven', reporter = 'junit')
2626
0
2727
},
28-
error=function(e) 1
28+
error=function(e) { print(paste0('ERROR: ', e)); 1 }
2929
)
3030
print(paste0('status=', status))
3131
quit(save='no', status=status)

0 commit comments

Comments
 (0)