2 Software DetailsSoftware RequirementsFor the purpose of following the examples and working on your assignments we strongly encourage you to install the following packages on your laptops:
Strange characters in your scripts?If your text editor is adding some weird characters at the end of the lines, try running the following command from git-bash in the directory where your scripts are:
^M " being displayed at the end of the lines, then your encodings are wrong.
Try setting your encodings to UTF-8, usually this can be done in the preferences section.
If you are using atom, look at the very bottom of atom, you will notice that there are 4 panels -- these are indeed clickable ones--, check that the first one says "LF" and the second one says "UTF-8", if it doesn't click on each of them and select the corresponding ones from the list displayed.
That should help to fix the issue of the encodings.
Using Rscript in git-bash on Windows MachinesIf you are using a Windows machine and GIT-bash as your shell (terminal) you may run into a problem when trying to use "Rscript" or "R CMD BATCH" from the command line. The command may not work, with an error message like: 'command not found'. The problem is that you need to tell GIT-bash where to find the R program. Here is a way to do this: To make the change permanent, we suggest the following. 1) open your text editor (Atom, Sublime, etc.)
(confirm that this is the correct path to your R installation. If you have a different version of R the path will be slightly different.) Make sure you put those quotation marks in. Please notice that some text editors, such as Notepad++, may automatically add a ".txt" extension to the filename. You will have to fix this as it won't work otherwise. For doing so, you can try the following command in the git-bash terminal,
Installing Libraries for Rscript in Windows MachinesWe've been getting quite a few reports of errors when trying to run Rscript from the command line, for users of Windows. The error message is that Rscript can't find the 'ape' package, even though it is installed and works fine when run from within R. If you are encountering this error, please follow the following steps. From within the R console, type the command " Now, using your favourite text editor (Atom, Sublime, etc.), open your ".bashrc" file. This will be in your home directory. Add the following two lines to the end of the file, replacing the directory below with the one you found using ".libPaths()":
Close git bash. Re-open Git bash and try the command again. Rscript should now be able to find the 'ape' package.
Last Modified: Sunday Nov 4, 2018 - 22:40. Revision: 18. Release Date: Sunday Sep 9, 2018 - 21:00.
|
|
Questions? Contact Support.
Web site engine's code is copyright © ATutor®. Modifications and code of added modules are copyright of SciNet. |