# NOT RUN {
db <- scidbconnect()
# SciDB 15.12 authentication example (using shim's default HTTPS port 8083)
db <- scidbconnect(user="root", password="Paradigm4",
auth_type="scidb", port=8083, protocol="https")
# List available AFL operators
names(db)
# List arrays
ls(db)
# Explicitly upload an R matrix to SciDB:
x <- as.scidb(db, matrix(rnorm(20), 5))
# Implicitly do the same as part of an AFL expression
y <- db$join(x, as.scidb(matrix(1:20, 5)))
print(y)
as.R(y) # Download a SciDB array to R.
# }
Run the code above in your browser using DataLab