Closed kgartland-rstudio closed 3 weeks ago
There is probably a similar error for the requirements.txt
when it is missing, and we can improve the errors for both when those files are missing.
We will prevent this by showing the error indicator / message and preventing Deploy.
We will prevent this by showing the error indicator / message ~and preventing Deploy.~
@jonkeane Just to clarify your comment/reaction above, we just want to improve the error messages here, but, inline with our latest decisions, we'll still allow a deployment to be initiated.
Just to clarify your comment/reaction above, we just want to improve the error messages here, but, inline with our latest decisions, we'll still allow a deployment to be initiated.
Yup, exactly
Since we now include
renv.lock
by default for all R content in thefiles
array, an error is thrown that doesn't explain why we're looking for a renv.lock file. I think this would be confusing, especially to users who don't use renv regularly. My first instinct would be to simply remove it from the config.I wonder if we can detect that there is no renv.lock file in the target directory and disabling the Deploy button with a clear error.