Error "'package' must be of length 1"

I am trying to run code about algorithm of the matrix reconstruction.

I tried two different method:

First, I am trying online editor to run code below link.

It gives error:

Error in library(kyoustat/ROptSpace) : 'package' must be of length 1
Execution halted

Secondly, copy the codes from below two links to Rstudio as a two different R script file.

I run successively, this time gives error below:

[1] "* OptSpace: Guessing an implicit rank."
Error in guess_rank(M_E, nnZ.E) : could not find function "guess_rank"

How I run this codes ? Thank you.

The name of the package is just ROptSpaceso if you have already installed it with install.packages("ROptSpace"), you can load it with library(ROptSpace)`

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.