I don't understand the error which seems to suggest that I am missing an argument.
The NULL hypothesis is that there is no correlation between the Predicted Capacity and the Measured Capacity and the Alternative hypothesis is that there is a relationship. Also, I am not fully sure that the "alternative' is 'Less' rather than 'Greater'.
The pipe operator is known as "syntactic sugar" in that it's never required for use. When you are using it, it's a way of saying "this R object on the left hand side should be passed to the function on the right hand side". It's a way to avoid assigning intermediate results to a named R object, or generally a way for people to organize their code as a pipeline of operations.
In your next bit of code, you explicitly pass the data you want to use in via the CapacityPb$PredCap, CapacityPB$MeasCap... arguments. So cor.test already has all the information it needs to run; getting the extra reference to CapacityPB via the pipe operator is basically saying "What do you want me to do with that extra information?" and throws an error.