Problem
Upon upgrading to newer versions of Connect, you may notice the following banner displayed:
Solution
In more recent versions of Connect, there are configuration options that have been deprecated in favour of newer configuration options. Primarily, these are name changes that have equivalent values to the deprecated directives. More information on this can be found here:
https://docs.posit.co/connect/news/#:~:text=by%20default.%20(%2322092)-,Deprecated%20/%20Removed,-Server.RVersion%20is
Specifically, the following directives have changed:
-
Server.RVersion
is deprecated and will be removed in an upcoming release. UseR.Executable
instead and reference the full R binary path rather than the path to a directory containing an R installation. (#21473)Earlier releases specify an R installation using
Server.RVersion
to target a directory:; /etc/rstudio-connect/rstudio-connect.gcfg [Server] RVersion = /opt/R/3.6.3
That same R installation should be provided using
R.Executable
:; /etc/rstudio-connect/rstudio-connect.gcfg [R] Executable = /opt/R/3.6.3/bin/R
-
Server.RVersionMatching
is deprecated and will be removed in an upcoming release. UseR.VersionMatching
instead. IfServer.RVersionMatching
is set, its value will be used forR.VersionMatching
. (#21473) -
Server.RVersionScanning
is deprecated and will be removed in an upcoming release. UseR.ExecutableScanning
instead. IfServer.RVersionScanning
is set, its value will be used forR.ExecutableScanning
. (#21473) -
Packages.External
is deprecated and will be removed in an upcoming release. UseR.External
instead. IfPackages.External
is set, its enumerated packages will be appended to those specified byR.External
. (#21473) -
Packages.ExternalsCheckIsFatal
is deprecated and will be removed in an upcoming release. UseR.ExternalsCheckIsFatal
instead. IfPackages.ExternalsCheckIsFatal
is set, its value will be used forR.ExternalsCheckIsFatal
. (#21473) -
Applications.RConfigActive
is deprecated and will be removed in an upcoming release. UseR.ConfigActive
instead. IfApplications.RConfigActive
is set, its value will be used forR.ConfigActive
. (#22085, #21473) -
Hosting of TensorFlow Model APIs is deprecated and will be removed in an upcoming release. The
Server.TensorFlowEnabled
setting is disabled by default. (#22092)Use an API framework like Plumber, Flask, or FastAPI to create an HTTP API for your TensorFlow model.
Support Ticket
If you still have issues after completing the above, you can always lodge a support ticket, where our group of friendly, and incredibly knowledgeable staff can assist with any issues that you may be having. You can submit a ticket here:
Comments