Giter Club home page Giter Club logo

Comments (3)

mikemahoney218 avatar mikemahoney218 commented on July 23, 2024 2

Hey @datacarpentry/curriculum-advisors-geospatial , here's an item I think we should talk about for our next meeting. This would be a pretty sizable change, but it's been ~3 years since R4.0 deprecated stringsAsFactors, and the option is going to be removed entirely in R 4.3 (https://cran.r-project.org/doc/manuals/r-devel/NEWS.html).

from r-intro-geospatial.

albhasan avatar albhasan commented on July 23, 2024

Good morning.

I would like to provide some context to this issue. I only found 6 references to 'stringsAsFactors' in this leson.

The first two are in the script ./renv/activate.R lines 299 and 561. I'm not an user of the renv package, but I think we can safely remove those as they are set to FALSE (R's default since v4). Besides, the readers aren't supposed to read this script.

The next one is in ./episodes/03-data-structures-part1.Rmd line 412 and it's part of the solution to challenge 3. It makes no difference because it's also set to FALSE. However, that challenge description makes sense from the perspective of R v3. I guess we could update or remove challenge 3.

The next 3 appear in ./episodes/04-data-structures-part2.Rmd lines 73, 348, and 369.

In line 73, stringAsFactors is set to TRUE and it includes a comment explainign the readers the default value of this property changed from R v3 to R v4. Besides, this line sets up data which is needed by a different task below. This was made so to ensure the code runs on R v4 while minimizing the changes to this lesson's contents. This is the change that would require more attention.

In lines 348 and 369 stringsAsFactors is set to FALSE and they can be safely removed.

Bests,

from r-intro-geospatial.

mikemahoney218 avatar mikemahoney218 commented on July 23, 2024

Sounds good to me!

from r-intro-geospatial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.