Statistiques
| Révision :

root / tmp / org.txm.statsengine.r.core / src / org / txm / statsengine / r / core / InstallRUserPart.java @ 989

Historique | Voir | Annoter | Télécharger (713 octet)

1
package org.txm.statsengine.r.core;
2

    
3
import java.io.File;
4

    
5
import org.txm.PostTXMHOMEInstallationStep;
6
import org.txm.objects.Workspace;
7
import org.txm.utils.BundleUtils;
8

    
9
public class InstallRUserPart extends PostTXMHOMEInstallationStep {
10

    
11
        @Override
12
        public boolean install(Workspace workspace) {
13
                File dir = new File(workspace.getLocation(), "R/libraries");
14
                dir.mkdirs();
15
                
16
                File scriptsDirectory = new File(workspace.getLocation(), "scripts");
17
                scriptsDirectory.mkdirs();
18
                BundleUtils.copyFiles("org.txm.statsengine.r.core", "", "", "R/", scriptsDirectory);
19
                
20
                return dir.exists() && scriptsDirectory.exists();
21
        }
22

    
23
        @Override
24
        public String getName() {
25
                return "R (org.txm.statengine.r.core)";
26
        }
27
}