Hi @Nuno.Nogueira , you're welcome.
You can install the packages from that terminal you have opened, using for example: install.packages('plumber')
Then, you should upload your script and all its dependencies (.RDS, .CSV, etc).
Supposing that your script is called plumber.R, you can create an other script myapi.R that contains the following configuration (to make the api available over the internet, on port 8000 for example):
r <- plumber::plumb("plumber.R")
r$run(host="0.0.0.0", port=8000)
and then you can call this script from the linux terminal using Rscript command using:
Rscript myapi.R
you might also add cronjobs or other scripts to automatically start this scrip when it crashes.
Good luck.