定制包装,内部安装不同

时间:2019-03-05 07:03:31

标签: r install.packages

我有一个同事写的软件包的zip文件,该同事自离开公司以来。使用最新版本的R安装后,我会收到此消息

http {
    server {
        listen 80;
        server_name  localhost;

        root   /usr/share/nginx/html;
        index  index.html index.htm;
        include /etc/nginx/mime.types;

        gzip on;
        gzip_min_length 1000;
        gzip_proxied expired no-cache no-store private auth;
        gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;

        location / {
            try_files $uri $uri/ /index.html;
             autoindex  on;
        }
         location ~* \.(json)$ {
        }
    }
}

安装命令未返回错误

 public getCountofProducts() {
    this.productService.getAllProducts().subscribe
    (
      (products) => {
          if (products!= null) {
             this.getCount(products);
             return this.productsLength;
           }
           else{
             return 0;
           }
       }
     );
 }

 public getCount(products){
    this.productsLength=this.products.length;
 }

有没有一种方法可以更新软件包(重写?/重新编译?)以使其与最新版本的R一起使用?请注意,它是一个内部软件包,我只能访问zip文件。

我已经看到了,但是似乎没有令人满意的答案

Error: package was installed by an R version with different internals; it needs to be reinstalled

0 个答案:

没有答案