We can see what is in the model.R editor pane by clicking on that tab. If you do not have a similar mess then you might want to skip down Which I see in Figure 13 has its own tab, highlightd inĪn green oval. The last time I used RStudio I left open a file called model.R, The demo_two.R tab is open and the conents of thatįile are displayed, namely the one comment line.Īgain, unfortunately, I have another small mess to clean up. We really do not care about that problem, so we just repsond You may not get this error message and if you do not then just skip to the Time I used RStudio is no longer available. In the pop-up window shown in Figure 12, because a file I had been using the last Unfortuanately, when I did this RStudio complained With this as the working directory and with the We double click on the file name to start a RStudio session Start RStudio by double-clicking on "demo_two.R" With the name changed, the file appears as Name of the file, as is shown in Figure 11. Once the name of the file appears in a small box, we can just type the new Name, click on it, wait a second, click again on it. There are a numer of ways to start the process Rename this new copy of the file to "demo_two.R" That will paste the copy of the file into this diretory That should open the small window of possible operations shown Point to the open area and right click there. It is of course, at this point, empty since we just created it. This will open the secondtry folder, as seen in Figure 7. To do that we locate the seondtry folder in the Secondtry folder so that we can paste the Having done that we have a copy of the model.R file. That opens a small window of possibe actions, also shown in Figure 5. We point to it and right click on the name. Therefore, I had to scroll up in the file to find it. Our next task is to make a copy of the file model.RĪnd place it inot the newly created folder.īack in Figure 3 we could not see that file. In Figure 4 we have entered the name secondtry. We can type in a new name for that folder. To click on the icon at the upper left of the window.īefore I even click on it the system pops upĪ small screen telling me that this icon isĬreates the new foder, shown in Figure 3, In Figure 1, on my PC, there are two places where we can just click to open a new Our next task is to create a new folder here. Create a new folder (directory) on the USB The existing folder (directory), firsttry, appearsįollowed by the files that I distributed on the USB drive originally.įirst demonstration page. In the particular arrangement that we see in Figure 1,
On my PC just inserting the drive also casued it to be Inserting the USB drive in my machine brought up the
The option to view the image in its full size. Images and right click on the image, then you have Please note that on a PC if you point to any of these The screen images on this page have been shrunk so that the web page is notĮxtraordinarily long when viewing or printing it. Them in this document just so that you could see the appropriate action if
In generating these images I ran into a few unexpected screens.
Mac and PC versions but there are some differencesĪlso, please note that I have not tried to "clean up" everything beforehand. The work that is done within RStudio is identical for the # bring the Mode function into the workspace # use the command that is just the variable name # just so that we can see all of the data we # bring the gnrnd4 function into the workspace The data that we will use is provided in the following table. In the presentation below where that action is done. Observe the contents of the various panes in that window Įach of the items in the list above is an active link that, if you click on it,.Observe the contents of the "secondtry" folder.Execute those commands and observe the results.Verify the working directory via the getwd() command.Start RStudio by double-clicking on "demo_two.R".Rename this new copy of the file to "demo_two.R".Create a new folder (directory) on the USB.This page walks us through a problem using the USB drive provided in class Working Directory using our USB Drive Working Directory using our USB Drive