Skip to content

Commit

Permalink
Workaround for \Sexp problems
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 21, 2024
1 parent f2999a0 commit 88cfc7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ fi
DESCRIPTION="${PKGDIR}/DESCRIPTION"
R -e "buildtools:::normalize_description('${DESCRIPTION}')"

# Resolve \Sexpr[] during CMD build by default (because these break cross compiles)
sed -i 's|Sexpr\[results=rd\]|Sexpr[results=rd,stage=build]|g' ${PKGDIR}/man/*.Rd || true

DISTRO="$(lsb_release -sc)"
PACKAGE=$(Rscript -e "cat(as.data.frame(read.dcf('${DESCRIPTION}'))\$Package)")
VERSION=$(Rscript -e "cat(as.data.frame(read.dcf('${DESCRIPTION}'))\$Version)")
Expand Down

0 comments on commit 88cfc7f

Please sign in to comment.