Title: Cannot Create Dir RtmpmaJNMP · Issue #51 · microsoft/sqlmlutils · GitHub
Open Graph Title: Cannot Create Dir RtmpmaJNMP · Issue #51 · microsoft/sqlmlutils
X Title: Cannot Create Dir RtmpmaJNMP · Issue #51 · microsoft/sqlmlutils
Description: Running sqlmlutils 0.7.1 in R against a SQL Server 2019 RC1 machine. Reproduction Steps Running a sample package call: sql_install.packages(connectionString = ad_connection, pkgs = "data.table", scope = "PUBLIC", verbose = TRUE) ad_conne...
Open Graph Description: Running sqlmlutils 0.7.1 in R against a SQL Server 2019 RC1 machine. Reproduction Steps Running a sample package call: sql_install.packages(connectionString = ad_connection, pkgs = "data.table", sc...
X Description: Running sqlmlutils 0.7.1 in R against a SQL Server 2019 RC1 machine. Reproduction Steps Running a sample package call: sql_install.packages(connectionString = ad_connection, pkgs = "data.table...
Opengraph URL: https://github.com/microsoft/sqlmlutils/issues/51
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot Create Dir RtmpmaJNMP","articleBody":"Running sqlmlutils 0.7.1 in R against a SQL Server 2019 RC1 machine.\r\n\r\n# Reproduction Steps\r\n\r\nRunning a sample package call:\r\nsql_install.packages(connectionString = ad_connection, pkgs = \"data.table\", scope = \"PUBLIC\", verbose = TRUE)\r\n\r\nad_connection is a local variable which represents a database where ML Services is set up correctly.\r\n\r\nHere is the output:\r\n\r\n```\u003e sql_install.packages(connectionString = ad_connection, pkgs = \"data.table\", scope = \"PUBLIC\", verbose = TRUE)\r\n2019-10-28 09:48:37.69 Starting package install on SQL server (Driver={SQL Server};Server=D2-SQL-R-02;Database=AnomalyDetection;Trusted_Connection=Yes;)...\r\n2019-10-28 09:48:37.69 Verifying permissions to install packages on SQL server...\r\nWarning: unable to access index for repository https://cran.rstudio.com/src/contrib:\r\n cannot open destfile 'C:\\Users\\KEVIN~1.FEA\\AppData\\Local\\Temp\\RtmpmaJNMP\\file75603f8535cd', reason 'No such file or directory'\r\nWarning: unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.5:\r\n cannot open destfile 'C:\\Users\\KEVIN~1.FEA\\AppData\\Local\\Temp\\RtmpmaJNMP\\file756038c548a9', reason 'No such file or directory'\r\nError: Cannot find specified packages (data.table) to install\r\nIn addition: Warning message:\r\nIn dir.create(downloadDir) :\r\n cannot create dir 'C:\\Users\\KEVIN~1.FEA\\AppData\\Local\\Temp\\RtmpmaJNMP\\download7560232a7e1e', reason 'No such file or directory'\r\n```\r\n\r\nLooks like it's choking on the fact that there is no RtmpmaJNMP folder in my AppData\\Local\\Temp. I created one and successfully installed data.table.\r\n\r\nWhen installing a local package, I had received a similar warning, but the package did install correctly.\r\n\r\n```\u003e sql_install.packages(connectionString = ad_connection, pkgs = \"C:/CADev/complete/Analytics/ChannelAdvisor.AnomalyDetector.V1/ChannelAdvisor.AnomalyDetector.V1.R/AnomalyDetection.V1/binary/AnomalyDetection_0.1.0.zip\", verbose = TRUE, scope = \"PUBLIC\", repos = NULL)\r\n2019-10-28 09:42:55.31 Starting package install on SQL server (Driver={SQL Server};Server=D2-SQL-R-02;Database=AnomalyDetection;Trusted_Connection=Yes;)...\r\n2019-10-28 09:42:55.31 Verifying permissions to install packages on SQL server...\r\n2019-10-28 09:42:55.36 Copying package to Sql server [1/1] AnomalyDetection...\r\n2019-10-28 09:42:56.54 Installing packages to library path, this may take some time...\r\n2019-10-28 09:43:10.77 Successfully installed packages on SQL server (AnomalyDetection).\r\nWarning message:\r\nIn dir.create(downloadDir) :\r\n cannot create dir 'C:\\Users\\KEVIN~1.FEA\\AppData\\Local\\Temp\\RtmpmaJNMP\\download756035966c58', reason 'No such file or directory'\r\n```\r\n\r\n# Desired Outcome\r\n\r\nI would like sql_install.packages to check if the RtmpmaJNMP folder exists and create it if it does not.\r\n\r\n# Workarounds\r\n\r\nCreating the RtmpmaJNMP folder manually resolved my issue. After creating the folder, the install process created two files in it:\r\n\r\n* repos_https%3A%2F%2Fcran.rstudio.com%2Fbin%2Fwindows%2Fcontrib%2F3.5.rds\r\n* repos_https%3A%2F%2Fcran.rstudio.com%2Fsrc%2Fcontrib.rds","author":{"url":"https://github.com/feaselkl","@type":"Person","name":"feaselkl"},"datePublished":"2019-10-28T14:00:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/51/sqlmlutils/issues/51"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d4fd3f62-9600-94ff-0779-8798e96406bb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A498:18EDB3:4407429:58E3406:697DBCA6 |
| html-safe-nonce | 4ec0d7317b1915649c6bb64a09ca818f62b9adc1718fad76a0b959c15524d4d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDk4OjE4RURCMzo0NDA3NDI5OjU4RTM0MDY6Njk3REJDQTYiLCJ2aXNpdG9yX2lkIjoiMzYwNjUwMTg3NzIyMDIyODI2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 06daf108992f41ab6dfb14b375e6541533b9fbde71562324c6c952188777a0a6 |
| hovercard-subject-tag | issue:513322624 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/sqlmlutils/51/issue_layout |
| twitter:image | https://opengraph.githubassets.com/857488d33b5f7bedbe3d9ae8636e068c3d05007c58723278536ba0bbea618466/microsoft/sqlmlutils/issues/51 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/857488d33b5f7bedbe3d9ae8636e068c3d05007c58723278536ba0bbea618466/microsoft/sqlmlutils/issues/51 |
| og:image:alt | Running sqlmlutils 0.7.1 in R against a SQL Server 2019 RC1 machine. Reproduction Steps Running a sample package call: sql_install.packages(connectionString = ad_connection, pkgs = "data.table", sc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | feaselkl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/sqlmlutils git https://github.com/microsoft/sqlmlutils.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 150153358 |
| octolytics-dimension-repository_nwo | microsoft/sqlmlutils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 150153358 |
| octolytics-dimension-repository_network_root_nwo | microsoft/sqlmlutils |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width