mydsws <- dsws$new(username=DatastreamUsername, password=DatastreamPassword)
mynames<-mydsws$snapshotRequest(instrument = "LS&PCOMP",datatype = c("ISIN"),requestDate="0D")
Error in `[<-.data.frame`(`*tmp*`, , 1, value = c("891399", "916328", :
replacement has 505 rows, data has 1
I looked into 'LS&PCOMP ' on Datastream, it looks to be a list of constituents.
Looking for 'Datastream for R' online, I found the repo for the library 'DatastreamDSWS2R' that I'm guessing you are using. There, it suggests using the 'listRequest' function for constituent list requests. I tried the bellow which worked:
mynames <- mydsws$listRequest(instrument = c("LS&PCOMP"), requestDate="0D")
Does this return the results you expected?