Watts-College / paf-515-spr-2024

1 stars 0 forks source link

Lab #1: Ignore Fontawesome Folder #2

Open jasminacosta opened 8 months ago

jasminacosta commented 8 months ago

Hi @castower!

I am working on Lab #1 but when we want to ignore the font awesome folder, I do not see the exact line that is shown in the lecture video that we need to put.


The downloaded binary packages are in
    /var/folders/tw/fh99fdy16cg1d8ppmstjmp5w0000gn/T//RtmpK5B12r/downloaded_packages
> renv::init()

renv: Project Environments for R

Welcome to renv! It looks like this is your first time using renv.
This is a one-time message, briefly describing some of renv's functionality.

renv will write to files within the active project folder, including:

  - A folder 'renv' in the project directory, and
  - A lockfile called 'renv.lock' in the project directory.

In particular, projects using renv will normally use a private, per-project
R library, in which new packages will be installed. This project library is
isolated from other R libraries on your system.

In addition, renv will update files within your project directory, including:

  - .gitignore
  - .Rbuildignore
  - .Rprofile

Finally, renv maintains a local cache of data on the filesystem, located at:

  - "~/Library/Caches/org.R-project.R/R/renv"

This path can be customized: please see the documentation in `?renv::paths`.

Please read the introduction vignette with `vignette("renv")` for more information.
You can browse the package documentation online at https://rstudio.github.io/renv/.
Do you want to proceed? [y/N]: 

I am not sure which line I need to put in the ignore fontawesome folder section that way I could continue on.

castower commented 8 months ago

Hi @jasminacosta, The message here is asking to install renv, you'll want to click "Y" to proceed.

Ignoring fontawesome is a separate step; you'll add the following line to your .gitignore file:

# Ignore fontawesome folder
/resources/fontawesome-free-6.5.1-web/

Let me know if you have any other questions!

jasminacosta commented 8 months ago

@castower Oh, I see!

Thank you!!

castower commented 8 months ago

No problem! @jasminacosta :)

jasminacosta commented 8 months ago

@castower Sorry another question!

When I ran this line:


renv::init()

Then I noticed this line in the console:


Restarting R session...

- Project '~/Documents/GitHub/project-paf-515-2024s-team-04' loaded. [renv 1.0.5]
- The project is out-of-sync -- use `renv::status()` for details. #this line to be exact

renv::status()
The following package(s) are used in this project, but are not installed:
- bookdown

Then when I went into "packages" to try and download bookdown, I did not see that package populate?

castower commented 8 months ago

@jasminacosta You can install it in the console:

utils::install.packages("bookdown")

Once it's installed, you can update its record in renv by running snapshot():

renv::snapshot()

jasminacosta commented 8 months ago

@castower Got it!

I just checked the status again and no issues were found.

Thank you again! :D


renv::status()
No issues found -- the project is in a consistent state.
jasminacosta commented 8 months ago

Hi again! @castower

In order to turn in our lab one which is project_data_steps.R, .RMD, .HTML, and .MD files. I currently have the project_data_steps.R file, but to be able to output the other files needed, are we using the same code chunk we used in our lab01 file?

Just curious because project_data_steps.R is an R script, and I just want to make sure I don't mess up the files.

---
title: "Lab 1: Pacific Divison"
date: "2024-03-17"
output: 
  github_document:
    toc: true
    toc_depth: 3
    preserve_yaml: true
  rmdformats::downcute:
    toc_depth: 3
    self_contained: true
    thumbnails: false
    lightbox: true
    gallery: false
    highlight: "tango"
    code_folding: show
always_allow_html: true
knit: (function(inputFile, encoding) {
  rmarkdown::render(inputFile, encoding = encoding,
  output_format = "all") })
---

Thank you!

castower commented 8 months ago

Hello @jasminacosta,

Yes, that's correct. This will output your GitHub flavored markdown (the github_document) and html file (the rmdformats template).

jasminacosta commented 8 months ago

@castower

Got it!

Just want to make sure for lab01 we are turning in the following:

castower commented 8 months ago

Yes correct @jasminacosta!

jasminacosta commented 8 months ago

Perfect, thank you!!