 Hi everyone, I'm going to go through how to do the bonus problem set that is now up in canvas This is also I'm going to subtitle this your first QMD file or or your first corto Document because hopefully that's how you will do this is in a QMD file. It's definitely the best way It's the most up-to-date way So I'm going to go ahead and get started here I'm going to start by going into canvas and just briefly making sure you know where to find this So if you if you have the modules closed down so that that they're easy to get through The fourth module. I'm sorry the fifth module down is the problem sets and there are two things here There's a place to submit this all when you're done, and then there's the bonus problem set instructions I'm going to open those in a new window So that I can come back to the submission thing So the bonus problem set instructions So this is supposed to be a very basic assignment that's going to do do one thing in a big way which is Getting your first corto Presentation or actually corto document open and then we're going to type one thing That's just going to be type written It's just going to be a header and then we're going to do two lines of code that are going to just print They're going to create an object and then print it to the screen So very simple file and then we'll render it which will turn it into an HTML file or possibly a PDF file Are the ways that we're going to do it we're going to do the HTML file you would do a HTML or PDF so it's very important to do things in order exactly as as Instructed or you will get different results and in some cases if you do things out of order The result will be that it just won't work if you type them slightly wrong and they're not code Then you'll just get something that's different from my result if you type them wrong and their code It may be you have an error that doesn't work So precision and doing things in order are really important Especially at this very basic stage if you learn them now it'll serve you well So the first thing we're going to do is go to our studio or poset cloud and open a new Quarto document or create a new Quarto document file It's very similar. It's going to look the same way in both in both Our studio and poset cloud if you have your project open you'll see the same File menu you'll see the same menus across the top of the screen and the far left one will be the file menu I'm going to go ahead and go over there and actually do this So I'm going to open. I'm going to come to the file menu up here I'm going to go new file and I specifically want for this a Quarto Document so Quarto document and there's a new screen. There are directions I'm going to go back to the directions to make sure I do it exactly according to the directions So on the next screen The first thing that I say is enter the title as bonus problem set and the author as you So I'm going to come back over here and I'm going to enter the title right here. It's actually in blue It's bolded. We're already there to start with so I'm going bonus Problem set and then down here is the author. It says optional. I'm going to go ahead and enter my name And then I'm going to come back over here and see what I do next So it says the radio button next to HTML should be filled in so these little dots With a circle that you can fill in but you can only fill in one at a time are called radio buttons Sometimes you see checkboxes and usually if there are checkboxes you can check multiple and they're called checkboxes I'm not sure why these are called radio buttons, but they're distinct from checkboxes in that you can only do one at a time and This time we're going to choose HTML You may choose PDF But for many of you that won't work if without installing some other stuff and I think we're all tired of installing new things We've already installed three new things At least some of the Mac people had to install four So so let's go with HTML because you can always print that to a PDF later if you want to You can choose word and it'll work fine, but you can't turn a word document into me You have to turn it in and either HTML or PDF so It is Selected HTML if I wanted to select PDF I could do this if I wanted to select word I could do this, but I'm going to I'm going to leave HTML with the blue inside the circle You don't need to mess with any of this With one exception so first of all your engine should be knitter if it pops up And it's got something else filled in then change it to knitter But it should default to this and if it does don't mess with it That's why I didn't put anything in there the editor should be blank Because if it's filled in you're going to use the visual markdown editor We don't want to do that because you're actually going to type some code So leave that alone unless it's filled in make sure it's blank So then I'm going to hit create and when I hit create It created my file. So this is my corto markdown document And it is ready to go You'll see that it filled in in the top three lines bonus problem set as the title me as the author and HTML as the format So in the next Section I tell you to leave that alone Don't mess with that. It's if you mess with it, and you don't know what you're doing You'll just break things even if you do know what you're doing You will probably break things the first few times you try it So for now don't ever touch that But I do want to delete all of this stuff So all of this stuff will happen anytime you open a new corto Document it's just directions on how to use it. So it's good. It's good for it to be there But for our purposes today, we want it just out of the way. So we're starting with a blank canvas And the first thing I want you to do on that blank canvas before you do anything else So before you do number before you do number eight. I want you to do number seven Which is type two hashtags or pound signs a space and then this is my bonus problem set And if you do that then what it's going to do is create a heading of This is my bonus problem set when this prints out. That's what the two hashtags do They're a second level heading if I did just one hashtag would be a really big heading After you type a line, I didn't specifically put it but hit enter or return To go to the next line and just to keep things neat. I'm gonna add an extra line You don't have to but I added an extra line just to keep things neat I didn't tell you you had to so you don't have to but the next thing we want to do is create a new code chunk a Code chunk just means a place that are is going to run actual our code So all the stuff out here that's not in a code chunk just gets typed to the screen Except it will get whatever formatting we had so that the hashtags give it some formatting But this will just pop up as text But whatever goes in the code chunk and the code chunks look like this So you can create one by typing it Those three Backwards apostrophes that on a Windows computer are to the left of the one on your keyboard And then an R inside the squirrely curly brackets You can do that you can do it the way I did which is to type it but the much easier way on Windows is you type Control alt I and that's you hold down the control hold down the alt and then hit the I and it will pop up on Mac You use command option I on Linux it will depend on your keyboard on mine It's control alt I if you have a Mac keyboard you'd probably have to use the Mac Method but I'm going I am in the background right now hitting control all die So I've hit control alt I and it popped up and you see my cursor Automatically when I do it that way pops up inside the code chunk Which means anything that I type at this point has to be code so that It will work properly because if I type something in there that's not our code It's going to give an error So what our code do I want to type inside this code chunk? We're only going to type two lines the first line is going to do this create an object named x Assign the value pols 3 3 1 6 Using the assignment operator which is the less than sign or less left-facing arrow and the hyphen So I've shown you that before But I did a capital X and then So the capital X creates the is to create the object the less than sign and The hyphen and there shouldn't be a space between the left and less than and the hyphen or else it will not work And then I want the value that I'm going to assign is Pols 3 3 1 6 and because it's a series of characters. I want it to be exact I'm putting it in quotation marks So so instead of it won't assign a series. It won't do anything weird It won't assign a null value And it won't return an error. It knows that I want it to actually put exactly that which is what quote marks quote It's what quote marks are actually for So it works just the way it really should I Have to hit return to go to a new line and the next step that I want to do on that new line is I Want to make X print to my document by typing X So I said still inside the code chunk on the next line make X print to your document by typing X And that's all I'm going to do and because this was an uppercase X This has to be an uppercase X also if I had named this lowercase X I'd have to may name this lowercase because it's case sensitive So so now I'm to the point I'm actually done with everything except saving and rendering so now I'm going to go to the file menu again, and I'm going to use the save as option So I'm back up here to the file menu up here in the upper left hand corner It says file I come down to save as And I've got to give this a name and I gave you a format for naming it This isn't super important, but it's helpful in me keeping track of your files I said bonus problem set last name first name. I did this In an easy to read format. That's called snake case Where you capitalize the words and then you put? underscores between them Avoid using spaces and words it works sometimes, but not always sometimes it will throw an error so bonus problem set last name first name and hit save and If you happen to see the flickering the You can rewind if you didn't this was not here before it is here now It is in the demonstration project directory So assuming you know where you loaded your demonstration project you can find this file and The next step is to so you pay attention to what folder you created it in so you can find it later The next step is to render the document So there's a tutorial with pictures and instructions But I'm also going to show you how to do it rendering the document if everything was done right and the code is correct It's really easy. There's a button up here that says render you click render And if you watch over here, it does its thing it pops up in the viewer If you are using a Mac or Linux computer, it will pop up in a web browser I'm using a Windows computer right now and it pops up in the viewer I have my Linux computer set up where it also pops up in the viewer But I had to actually set a setting you can do that in Mac too if you want to I prefer it this way Some people like it to pop up in the web browser So before we had the get ignore we had the our history we had this thing We had the read me and we had the QMD when I clicked render it created the HTML file and these files the files are just There's actually not anything really in there But if there were any images in the document or things like that they'd be stored there But this is the HTML file So what do I say to do next? I say If you're working in posit cloud, you have an extra step You have to export the file to your computer and I give directions for that But the next step is to get that file into the bonus project assignment in canvas And it is a matter of coming here to the bonus problem set and submitting And so let's see I already did this once so I need to do a new attempt And I'm going to choose a file Um I'm going to come I'm going to pretend that that I didn't actually come in I kept track of I know where my studio projects are They're in my documents. They're all in one place. I know where this is It's named demonstration semester project and there's that html file Because when I created things I kept track of where I created them it makes life much simpler Um, then just throwing everything on the desktop or in downloads So So I'm done with that submitted the assignment and now I get to go grade my assignment And At this point You are done as well Except for making this decision about whether you need extra time on the assignment So that is it. Thank you for listening and hopefully that clarifies how to get started Opening and rendering your first file