{"action":"opened","issue":{"url":"https://api.github.com/repos/smbache/import/issues/13","repository_url":"https://api.github.com/repos/smbache/import","labels_url":"https://api.github.com/repos/smbache/import/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/smbache/import/issues/13/comments","events_url":"https://api.github.com/repos/smbache/import/issues/13/events","html_url":"https://github.com/smbache/import/issues/13","id":196115087,"number":13,"title":"Import module .from=`variable`","user":{"login":"clamus","id":5489720,"avatar_url":"https://avatars.githubusercontent.com/u/5489720?v=3","gravatar_id":"","url":"https://api.github.com/users/clamus","html_url":"https://github.com/clamus","followers_url":"https://api.github.com/users/clamus/followers","following_url":"https://api.github.com/users/clamus/following{/other_user}","gists_url":"https://api.github.com/users/clamus/gists{/gist_id}","starred_url":"https://api.github.com/users/clamus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clamus/subscriptions","organizations_url":"https://api.github.com/users/clamus/orgs","repos_url":"https://api.github.com/users/clamus/repos","events_url":"https://api.github.com/users/clamus/events{/privacy}","received_events_url":"https://api.github.com/users/clamus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-16T17:39:07Z","updated_at":"2016-12-16T17:39:07Z","closed_at":null,"body":"I am trying to import a function for a module, where the the module path is in a variable. This does not work, as the variable is interpreted as a package instead of a string pointing to the module's file. In particular, doing this does not work:\r\npath_to_module <- \"~/repos/R/my_repo/my_module.R\"\r\nimport::from(.from=path_to_module, my_function, .into=\"\")\r\n\r\nIs there an easy way to go around this restriction?"}}
{"actor":{"display_login":"clamus"}}