RStudio install packages from Azure DevOps - r

I'm creating some internal packages with R in RStudio. My repositories are hosted in Azure DevOps. I saw the renv.lock and there is a section for repositories.
{
"R": {
"Version": "3.6.1",
"Repositories": [
{
"Name": "CRAN",
"URL": "https://cran.rstudio.com"
}
]
},
"Packages": {
"BH": {
"Package": "BH",
"Version": "1.69.0-1",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "0fde015f5153e51df44981da0767f522"
},
"KernSmooth": {
"Package": "KernSmooth",
"Version": "2.23-16",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "a531dc333440009ee13bbb507232476d"
}
}
My components are in a url like
https://dev.azure.com/mycompany/RComponents/_git/mycomponent
Is there a way to add my private repositories in here? How can I install R packages from Azure DevOps?

I got it to work using the remotes package!
remotes::install_git("<clone url>", git = "external")
#AKA
remotes::install_git("https://ORG#dev.azure.com/USER/PROJECT/_git/NAME", git = "external")
You are then directed to a sign in handled via RStudio popups.

renv is able to install and restore packages from a variety of sources, including:
CRAN,
Bioconductor,
GitHub
Gitlab
Bitbucket
However, it does not include Azure DevOps. Please refer to this document. In addition, there is also no information about using Azure DevOps repositories or packages in the RStudio Documentation.

Related

Webpack bundle repository not found

I have in my composer.json :
"symfony/webpack-encore-pack": "*",
In composer.lock :
{
"name": "symfony/webpack-encore-pack",
"version": "v1.0.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/webpack-encore-pack.git",
"reference": "8d7f51379d7ae17aea7cf501d910a11896895ac4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/webpack-encore-pack/zipball/8d7f51379d7ae17aea7cf501d910a11896895ac4",
"reference": "8d7f51379d7ae17aea7cf501d910a11896895ac4",
"shasum": ""
},
"require": {
"symfony/asset": "^3.3|^4.0"
},
"type": "symfony-pack",
"extra": {
"thanks": {
"name": "symfony/webpack-encore",
"url": "https://github.com/symfony/webpack-encore"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "A pack for Symfony Encore",
"abandoned": "symfony/webpack-encore-bundle",
"time": "2018-07-16T10:15:28+00:00"
},
When I try composer install I have the error : Installing symfony/webpack-encore-pack (v1.0.3): Downloading Failed to download symfony/webpack-encore-pack from dist: The "https://api.github.com/repos/symfony/webpack-encore-pack/zipball/8d7f51379d7ae17aea7cf501d910a11896895ac4" file could not be downloaded (HTTP/1.1 404 Not Found).
I checked this URL and the file didn't exist. How can I solve this issue?
symfony/webpack-encore-pack has seen its last update more than three years ago and is abandoned. The code is no longer present on Github, so it cannot be downloaded from the location that is stored in your composer.lock (that's what https://api.github.com/repos/symfony/webpack-encore-pack/zipball/8d7f51379d7ae17aea7cf501d910a11896895ac4 does: it links to the URL of a zipped version of that package in a specific version).
According to a discussion about this, you should use symfony/webpack-encore-bundle instead. Sadly, this package is not compatible with Symfony 3.3 in any version, so you might need to update it to v3.4

How to connect a remote composer in artifactory to a php satis repository?

I would like to make a remote repository artifactory on a PHP satis repository.
Below is the configuration of the target satis repository:
{
"name": "Satis",
"homepage": "http://satis.server:48081",
"repositories": [
{ "type": "composer", "url": "https://packagist.org" }
],
"archive": {
"directory": "dist",
"format": "zip",
"skip-dev": "true"
},
"require-dependencies": true,
"require": {
...
}
}
Under artifactory, in the URL field I put: http://satis.server:48081
In composer setting, I chose the custom option, I tried to put in "http://satis.server:48081" in the fields "Download Url" and "Registry Url" without result.
Sorry for my poor english
thanks
First you need to create a remote PHP Composer repository in Artifactory pointing to your satis URL - http://satis.server:48081. This repository will proxy you satis repository.
After the repo is created, you need to configure composer to use this repository, for example:
{
"repositories": [
{"type": "composer", "url": "http://localhost:8081/artifactory/api/composer/satis-remote"},
{"packagist": false}
]
}
You can use the Artifactory "Set Me Up" in order to get this configuration as well.

What do I need in my package.json file in Meteor?

I think I'm confused as to what to have in my package.json file for my Meteor app. My app was originally built with v1.2 and recently updated Meteor to 1.4.1.1 (bypassing 1.3). I have no npm packages installed; all my packages were installed through atmosphere. Do I need to list the dependencies of atmosphere packages? I deploy to Modulus. Here's my file:
{
"name": "sonatina_database",
"private": true,
"mod-project-name": "SONATINAAPP",
"version": "1.0.0",
"description": "Client database for queries, reports, bulk emails, teaching schedule, etc",
"repository": {
"type": "git",
"url": "git+https://github.com/matt-moon/SonatinaDB.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "mj_moon",
"license": "ISC",
"bugs": {
"url": "https://github.com/matt-moon/SonatinaDB/issues"
},
"homepage": "https://github.com/matt-moon/SonatinaDB#readme",
"engines": {
"node": "4.4.7"
}
}
Sorry for the simple question, but it's confusing me.
These aren't a list of dependencies but a list of Meta information for your applications.
It's better to keep this just incase in the future you do decide 'npm' packages later in the future with 'meteor npm install {package name}.
I hope this helps.

Package Microsoft.Aspnetcore.Mvc1.0.0 does not support framework .NETCoreApp, Version=v1.0

I'm getting this error trying to restore NuGet packages in my solution. I have tried all the proposed solutions at both these questions:
1) The dependency microsoft.aspnetcore.mvc 1.0.0 does not support framework .NETCoreApp, Version=v1.0
2) Solving error "Microsoft.NETCore.App 1.0.0 does not support framework .NETFramework,Version=v4.6.1"
I have Visual Studio 2015 Update 3 and the .NET Core Tools Update 2.
I have two projects in my solution. Here are the hopefully relevant parts from the project.json's:
project1 - project.json:
...
"dependencies": {
....
"Microsoft.AspNetCore.Mvc": "1.0.0", // Error here
....
}
...
"frameworks": {
"net451": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1"
}
},
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0" }
},
"imports": [
"dnxcore50",
"portable-net451+win8"
]
}
},
...
project2 - project.json:
...
"dependencies": {
....
"Microsoft.AspNetCore.Mvc": "1.0.0", // Error here
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0",
....
}
...
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net451+win8"
]
}
},
...
EDIT: Issue appears to be that NuGet package manager thinks I'm using the old .NET Core, 1.0.0-preview1-002702. But I just installed the latest .NET Core tools here: https://www.microsoft.com/net/core#windows
If I navigate to Help -> About Microsoft Visual Studio, I see this:
Microsoft .NET Core Tools (Preview 2) 14.1.20624.0
That looks correct. Why doesn't package manager console recognize that I have Preview 2 downloaded?

Application not loading when deployed to Firebase

i'm new to web development and i've created an application that i would like to deploy to firebase. i referred to the online resources and carried out the necessary steps (as shown below) to get my application online. now when i got to my site i don't see the data loading. I recieve the foll error. Now even if i remove the 'scroll to top' script referenced in the error, there is no data loading.
GET https://arrow.scrolltotop.com/arrow88.js net::ERR_INSECURE_RESPONSE
I am walking you through my workflow if that's all right. Any help would be appreciated.
The foll is my package.json:
{
"name": "xxx",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"angular-animate": "^1.5.0",
"angular": "^1.5.0",
"angular-aria": "^1.5.0",
"angular-ui-router": "^0.2.18",
"mdi": "^1.4.57",
"angular-material": "^1.0.5"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
the foll is my firebase.json
{
"firebase": "xxx",
"public": ".",
"ignore": [
"firebase.json",
"**/.*"
]
}
It think it may be worthwhile to mention that i don't recieve a blank page When i run the application on a local http-server. the application loads and i get all the data from firebase without any errors.
Thanks

Resources