load d4storagehub4R in jupyter, do not initialize it.

This commit is contained in:
Andrea Dell'Amico 2023-03-22 17:43:05 +01:00
parent a7e2da5f72
commit 4f21089103
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 6 deletions

View File

@ -36,14 +36,12 @@ print(paste("***********************************************"))
options(repos = c(CRAN = 'https://packagemanager.rstudio.com/cran/__linux__/focal/latest'), download.file.method = 'libcurl')
# https://docs.rstudio.com/rspm/admin/serving-binaries/#binaries-r-configuration-linux
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version["platform"], R.version["arch"], R.version["os"])))
Sys.setlocale(category = "LC_ALL", locale = "en_US.UTF-8")
require(d4storagehub4R)
# more information at ?StoragehubManager
WORKSPACE = d4storagehub4R::StoragehubManager$new(
token_type = "jwt", token = Sys.getenv("D4SCIENCE_TOKEN")
)
# print(paste(""))
# print(paste("Run the following code to initialize the StoragehubManager:"))
# print(paste('WORKSPACE = d4storagehub4R::StoragehubManager$new(token_type = "jwt", token = Sys.getenv("D4SCIENCE_TOKEN"))'))
# print(paste(""))
print(paste("Using Locale Encoding:",Sys.setlocale("LC_CTYPE","en_US.UTF-8")));