Re: [R] here Package

2021-10-17 Thread Jeff Reichman
Andrew Thank you so much. That was an easy fix. I you have some time I’d like some more info on the close function close(con) Jeff From: Andrew Simmons Sent: Sunday, October 17, 2021 3:35 PM To: reichm...@sbcglobal.net Cc: R-help Mailing List Subject: Re: [R] here Package

Re: [R] here Package

2021-10-17 Thread Andrew Simmons
You've just got the brackets in the wrong spot: creditsub <- read.csv(unz(here::here("Data.zip"), "creditcardsub.csv")) instead of creditsub <- read.csv(unz(here::here("Data.zip", "creditcardsub.csv"))) Also, you probably want to save that connection and close it manually. creditsub <- read

[R] here Package

2021-10-17 Thread Jeff Reichman
R-help I have a R project that contains an R Notebook and I am trying to use the "here" function to access a file. Before using R projects file I would set the working dir in a R setup chunk and run the following command (for example) creditsub <- read.csv(unz(Data.zip", "creditcardsub.cs