Cubist Pharmaceuticals, the Lexington, Mass.-based biotechnology company, has opened a $90 million revolving line of credit with the Royal Bank of Canada. The money is to be used for general corporate expenses, according to a document filed with the Securities and Exchange Commission.