r-lib / here

A simpler way to find your files
https://here.r-lib.org/
Other
408 stars 45 forks source link

here() package conflicts in recent R/RStudio #90

Open mollystevens-noaa opened 1 year ago

mollystevens-noaa commented 1 year ago

here::here() used to work to solve package conflicts, but with the recent R and RStudio updates, the following error is received with every run...

Error in here(): argument "f" is missing with no default

Version of R4.2.1, RStudio Build 576

Older versions of R and RStudio not currently having issues in our lab. Please let me know if you'd like us to test anything. Thank you!!

krlmlr commented 1 year ago

Thanks. An easy way to find out what's happening is to install and attach the conflicted package, and re-run:

library(conflicted)
here()
csecarroll commented 1 month ago

I get this issue so often. I can open everything fresh, set here::i_am() and it returns the correct directory, then immediately call here() and i get Error in here() : argument "f" is missing, with no default. I've tried using the conflicted package and still get the error quite frequently. Usually I just have to close everything down and reopen it. It can be quite frustrating as I rely on this fantastic package so much.