

You can download the R file and place it along with the accompanying data into your folder and open the file from there. For instance, I will provide R script for our class through Laulima (without any working directory specified). You can, of course, also place an existing script file in a folder. 3 3 The directory path depends on your operating system, how your folders are set up, and of course, where you want to save your file. Note that when you start an RStudio session from a folder location that does not include your data, such as if you access a shortcut on your desktop, you will need create a working directory by entering something like this in your script: setwd("C:/Users/Yourname/My Documents/EP602/Yourfolder"). As mentioned above, you might need to use Open With and set your computer to always open. 2 2 You might need to tell your computer to display the file extensions of files, such as. You might name your file something like MyAnalysis.R. 1 1 On a PC, you can right click in a folder and create a new file, then change the extension from. Go to your directory where you want to keep the file and create a new document with the. In other words, this is the lazy way ( which I fully appreciate) because we can avoid having to manually set the working directory. By closing RStudio, and then navigating to your folder to open the R file directly, our R session will automatically set the working directory to be that folder location. From there, you should be able to also set your computer to always use RStudio for files with. This will simplify the process when you tell R which data file to use (because otherwise we have to specify a working directory). In that folder, place the R script file and the data file (CSV file, which is next). Advice for lazy folks like me: Create a folder for each separate analysis. ⊕ A working directory is the folder location where R looks for files, such as data in CSV files, and saves outputted files, such as plots that we output or data that we save. You might need to right click on the file and use Open With to direct your computer to open the R file with RStudio. Then, navigate to the folder in which you saved your R script file and open it again by double-clicking on the file. R and selecting a directory on your computer where you want it to be saved (such as a folder for this class). Open RStudio to get a blank source script page then, save the file (using the File menu), giving it a name with the extension. (And I also think would be more appropriate than for the questions, by the way.3 Creating and re-opening an R script fileĬreate a new R script: Here are two ways to create a new R script file: You could use WAI-ARIA to map the headings to the radio buttons: But since we MUST give EACH INPUT TAG a label… this is what we end up with… Now from a human point of view this is redundant and thus semantically it could be condensed to tabular format. The thing, if we reconsider what the WC# actually MEANS, is that each button must have its own UNIQUE label. My previous though processed focused on NOT REPEATING info. I thought about it from a different angle. I see what you are saying, but are you sure about that?Īccording to the Label applies to the Radio Button and not the group.Ĭhoose the type of donut(s) you would like then selectįor Screen-shot #1, I could do that, but I’m not sure what you are saying is semantically correct. In other word think of the label as labeling a button GROUP. #2 Because of the NATURE OF RADIO BUTTONS ( they are linked in a group by similar name), the label points back to the rlated QUESTION and not to the ‘name’ attribute of each button.
