Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on January 4, 2016 10:56PM
Likes: 0
Replies: 2
Hello,
I run 3 lines of code to produce a dataset in R and expose it to DSS. However, it gives an error I don't understand. Do you have any idea why this is happening?
Error log:
[14:41:40] [INFO] [dku.utils] - > library(dataiku)
[14:41:41] [INFO] [dku.utils] - > mydata <- data.frame(a=c(0,1,2),b=c(0,1,2),c=c(0,1,2))
[14:41:41] [INFO] [dku.utils] - > dkuWriteDatasetSchema(mydata,"test_r_dynamic_in")
[14:41:41] [INFO] [dku.utils] - Error in parsed$detailedMessage :
[14:41:41] [INFO] [dku.utils] - object of type 'externalptr' is not subsettable
Many thanks,
Cameron
Hi Cameron,
Using `dkuWriteDataset` will write the schema and the dataset:
library(dataiku)
r_test <- data.frame(name = c('jed','bob'), age = c(12, 5))
# Recipe outputs
dkuWriteDataset(r_test,"r_test")