kopia lustrzana https://github.com/jupyterhub/repo2docker
Address comments from @minrk
rodzic
53e8ce11a7
commit
1f83d7608b
|
@ -89,7 +89,7 @@ class RBuildPack(PythonBuildPack):
|
||||||
else:
|
else:
|
||||||
r_version_parts = r_version.split(".")
|
r_version_parts = r_version.split(".")
|
||||||
if len(r_version_parts) == 3:
|
if len(r_version_parts) == 3:
|
||||||
warnings.warn(
|
self.log.warning(
|
||||||
f"Using R full version, {r_version}, provided by user."
|
f"Using R full version, {r_version}, provided by user."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
@ -97,11 +97,11 @@ class RBuildPack(PythonBuildPack):
|
||||||
# If repo2docker doesn't fail here, repo2docker might fail later
|
# If repo2docker doesn't fail here, repo2docker might fail later
|
||||||
# without a meaningul message to the user.
|
# without a meaningul message to the user.
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
f"R version {r_version} is not supported. Please open an issue using https://github.com/jupyterhub/repo2docker/issues/new?template=BLANK_ISSUE.",
|
f"R version {r_version} is not supported. Please open an issue using https://github.com/jupyterhub/repo2docker/issues/new/choose.",
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
warnings.warn(
|
self.log.warning(
|
||||||
f"Using R version {r_version} instead of full version, i.e. MAJOR.MINOR.PATCH."
|
f"R version unspecified, using default R version {r_version}. You can specify the R version in runtime.txt."
|
||||||
)
|
)
|
||||||
|
|
||||||
# translate to the full version string
|
# translate to the full version string
|
||||||
|
|
Ładowanie…
Reference in New Issue