R包“proto”安装在ubuntu上失败

时间:2016-11-01 01:16:49

标签: r rstudio proto

我正在尝试在Ubuntu机器上安装R软件包“proto”。

然而,我收到的错误......

import java.io.*;
import java.util.ArrayList;

public class Project3 {

public static void main(String[] args) throws FileNotFoundException, IOException {

    BufferedReader reader = new BufferedReader(new FileReader("//home//azeez//Documents//sample")); //replace with your file path
    ArrayList<String> wordList = new ArrayList<>();
    String line = null;
    while ((line = reader.readLine()) != null) {
        wordList.add(line);
    }

    for (String word : wordList) {
        if (word.matches("^[abc]+$")) {
            if (word.charAt(0) == word.charAt(word.length() - 1)) {
                System.out.print(word + "-NOT OK" + " ");
            } else {
                System.out.print(word + "-OK" + " ");
               }
           }
       }
   }
}

1 个答案:

答案 0 :(得分:0)

我一直在StackOverFlow上做更多的搜索,这个问题看起来很相似,但对于不同的包 - Warning in install.packages : cannot open: HTTP status was '404 Not Found'

我重新启动了RStudio并且它工作正常,我可以安装包原型。

感谢