Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#856: Changed mirror for installing R packages #421

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ext/scripts/install_scripts/install_via_r_remotes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ =head1 SYNOPSIS

my $combining_template = "library(remotes)\n<<<<0>>>>";
my @separators = ("\n");
my @templates = ('install_version("<<<<0>>>>",NULL,repos="http://cran.r-project.org", Ncpus=4)');
my @templates = ('install_version("<<<<0>>>>",NULL,repos="https://cloud.r-project.org", Ncpus=4)');
if($with_versions){
@templates = ('install_version("<<<<0>>>>","<<<<1>>>>",repos="http://cran.r-project.org", Ncpus=4)');
@templates = ('install_version("<<<<0>>>>","<<<<1>>>>",repos="https://cloud.r-project.org", Ncpus=4)');
}

sub identity {
Expand Down Expand Up @@ -96,7 +96,7 @@ sub replace_missing_version{
print FH $script;
close(FH);
my $cmd = "$rscript_binary '$filename'";
package_mgmt_utils::execute("$rscript_binary -e 'install.packages(\"remotes\",repos=\"http://cran.r-project.org\")'",$dry_run);
package_mgmt_utils::execute("$rscript_binary -e 'install.packages(\"remotes\",repos=\"https://cloud.r-project.org\")'",$dry_run);
print "Executing:\n$script\n";
package_mgmt_utils::execute($cmd,$dry_run);
unlink($filename) or die "Can't delete $filename: $!\n";
Expand Down
Loading