Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shiny-k8s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub
shiny-k8s
Commits
8fe82ba6
Commit
8fe82ba6
authored
2 years ago
by
echapeau
Browse files
Options
Downloads
Patches
Plain Diff
Update packages_to_install.csv and install_r_packages.R
parent
eba6588a
No related branches found
No related tags found
No related merge requests found
Pipeline
#103083
passed
2 years ago
Stage: build
Stage: test
Pipeline: shiny-k8s-example
#103084
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/install_r_packages.R
+3
-3
3 additions, 3 deletions
scripts/install_r_packages.R
scripts/packages_to_install.csv
+2
-1
2 additions, 1 deletion
scripts/packages_to_install.csv
with
5 additions
and
4 deletions
scripts/install_r_packages.R
+
3
−
3
View file @
8fe82ba6
...
...
@@ -5,10 +5,10 @@
### Aim : Install all packages from CRAN, BioConductor or github, requiered in the Shiny app.
### Install pak packages first
install.packages
(
c
(
"pak"
,
"pkgcache"
,
"pkgdepends"
),
dependencies
=
NA
)
install.packages
(
c
(
"pak"
,
"pkgcache"
,
"pkgdepends"
,
"pillar"
),
dependencies
=
NA
)
#### Load file with the list of packages
packages_list
<-
read.csv
(
file
=
"/opt/scripts/packages_to_install.csv"
,
header
=
FALS
E
,
sep
=
";"
,
stringsAsFactors
=
FALSE
)
packages_list
<-
read.csv
(
file
=
"/opt/scripts/packages_to_install.csv"
,
header
=
TRU
E
,
sep
=
";"
,
stringsAsFactors
=
FALSE
)
### Install packages with dependencies with pak packages
pak
::
pkg_install
(
pkg
=
packages_list
[,
1
]
)
pak
::
pkg_install
(
pkg
=
packages_list
$
Package_name
)
# clean the cache of pak
pak
::
cache_clean
()
This diff is collapsed.
Click to expand it.
scripts/packages_to_install.csv
+
2
−
1
View file @
8fe82ba6
shiny
Package_name;Comments
shiny;cran package
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Elodie CHAPEAUBLANC
@echapeau
mentioned in merge request
!13 (closed)
·
2 years ago
mentioned in merge request
!13 (closed)
mentioned in merge request !13
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment