NEFSC has moved to a container setup. Open a ticket using the helpdesk and IT will setup a container.
- Containers sometimes need to be restarted or updated. The files in the root directory will not persist, so save your results somewhere else
- Persistent startup scripts can be handled on request. Put your .Rprofile into your root directory on
NEFSCFILE.Ask to have it copied into the root of your container every time the container is re-started or reconfigured. Be mindful of the leading period in ``.Rprofile''. - You will have access to an Rstudio development environment. If you so desire, you can execute scripts or unix commands from the
Terminaltab.
You have access to a unix terminal from inside Rstudio. Use the "Terminal" tab (next to console).
- Use
top -u <yourid>to lookup the process id. Replace<yourid>with your network id. - Use
kill -9 <pid>to kill the process number<pid>
This also might be useful if Rstudio hangs indefinitely on loading
To see the amount of memory available use "free -g"
Only look at the available column, in this case that's 115 gigabytes.
If there are alot of other things running on the server, you can do this:
nice R < "your script here.R" --no-save
or
nice Rscript my_fancy_rcode.R
There's a way to set the exact level of depriortiziation, but I've not gotten it right. Default is 0. Positive numbers make your script "more nice" (so lower priority). You can't set negative numbers as a regular user.
You might want to move files around on the network. SCP from the command line might be nice, because you can automate it. The syntax is
scp /full/path/of/files/to/move server:/full/path/of/destination
this might useful to put something onto the ftp server or put it into someone else's network folder.
For Rscripts that take along time to run, you should either run them from the command line with:
Rscript my_fancy_rcode.R
Or put them into a batch file and execute a batch file.
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an ‘as is’ basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.
