-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_package.sh
More file actions
31 lines (16 loc) · 952 Bytes
/
Copy pathbuild_package.sh
File metadata and controls
31 lines (16 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
rm -rf BUILD/ inst/libs/
Rscript -e "Rcpp::compileAttributes(verbose = T)"
## Run this in your R console BEFORE devtools::document()
Rscript -e "devtools::install(); Sys.setenv(LD_LIBRARY_PATH = paste('$HOME/R/packages/QuickBLAST/libs', Sys.getenv('LD_LIBRARY_PATH'), sep = ':')); usethis::use_logo('logo.png'), devtools::document(quiet = T); devtools::build_site(quiet = F); pkgdown::build_news(); pkgdown::build_favicons(); " #roxygen2::roxygenize(clean = T)
# rm -f src/RcppExports.cpp R/RcppExports.R
#
# Rscript -e "Rcpp::compileAttributes(verbose = T)"
rm -rf BUILD/ inst/libs/
Rscript -e "devtools::build_vignettes()"
Rscript -e "devtools::build(binary = T,vignettes = T)"
Rscript -e "devtools::build(vignettes = T)"
rm -rf BUILD/ inst/libs/
Rscript -e "devtools::install(force = T)"
R CMD build .
Rscript -e 'library(QuickBLAST); loadeddlls <- getLoadedDLLs(); getDLLRegisteredRoutines(loadeddlls$libQuickBLASTcpp)'