Open chadallison opened 10 months ago
Thanks, I'll look into this tomorrow. Weird that it worked in the base R GUI and not RStudio.
My hunch is that it's because you are namespacing cbbdata::cbd_login
and have not loaded the package into your session. If you do not have cbbdata
loaded in or have not loaded in httr2
, that error would be expected to show because none of the httr2
functions are found -- a product of them not being loaded into your session -- and R would not be able to "find" the resp
object to return.
Try again in RStudio but first load cbbdata
-> library(cbbdata)
.
That function "imports" httr2
, so just loading in cbbdata
or httr2
should (hopefully) solve that problem.
Interesting. I gave that a shot and it still gave me the same output. I am wondering if it is something on my end.
I did pull out my laptop and see if it did the same thing, and it did. Same deal, running RStudio and tried it with namespacing and by loading in cbbdata
first. I suppose it could still just be something on my end with how I have my RStudio set up, although I don't know of any preferences I have changed up from the out-of-the-box installation.
Happy to be a guinea pig and test things out when you're able to address it! Thankfully not a roadblock for me since I was able to see the format in the R GUI so there's no rush on my end to get it sorted out.
Strange, particularly as I was able to replicate that error message in a new session by just using namespaces, but that doesn't appear to be the issue on your end if you loaded cbbdata
and it still didn't work.
If you were able to get things up and running that's great. Haven't ran into this issue yet, either.
I'm having this problem too. I am new to R so I don't know if this is something on my end or not, but I was getting the 'resp' error but now I'm getting this. I'm not sure exactly what to do here.
I encountered an issue with setting up the persistent login with my credentials in my .Renviron file. After following the prompts to write in my username and password in the file, the specified format would not show for me and I was unable to properly input the information. I was able to find a workaround by doing it in the base R GUI instead of in my RStudio, so I was able to figure out the correct format and get everything working. Figured I would still let you know of the issue. I will attach a screenshot of what it looked like in my RStudio console.
RStudio version 2023.06.0 (Build 421) and R version 4.3.1.