-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix to the issue #90 #91
base: master
Are you sure you want to change the base?
Conversation
Does this work nicely on Windows machines as well? I know there are historical legacy issues with getting R to play nice with the regex header there. |
src/parsing.cpp
Outdated
auth = url.find("@"); | ||
} | ||
if(auth != std::string::npos){ | ||
std::regex rx ("^(\\w+:\\w+@).*"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might suggest compiling the regex on package instantiation for a speed bump rather than recompiling it with every individual call? This is going to mean a lot of compilations!
@Ironholds I know nothing about RCpp packages, but can we add the |
Hm; I don't remember either. I think the DESCRIPTION should now let you specify? It's been a while. |
I've just tested and adding PS. gcc version must be greater or equals to 4.9 |
And does R now require C++11 support? (that is, is it likely to be on target machines?) |
Nah, the thing here is that Eduardo's proposed fix was to use `<regex>`
which is a C++11 construct. So instead of forcing the user to manually add
C++11 support to all his packages (say in RMakevars), I was wondering if we
could just do it for the package itself.
Another option is to solve this issue without `<regex>` :)
…On Tue, Dec 18, 2018 at 8:17 AM Os Keyes ***@***.***> wrote:
And does R now require C++11 support? (that is, is it likely to be on
target machines?)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Ironholds_urltools_pull_91-23issuecomment-2D448277587&d=DwMCaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=0RF4UdPYmeY-L_O1i6y7mZxXvdEOLIArMs1cG7-uYlw&m=VVRFFMXJ0FwxxQ_02jnGwYtsM6cIzdjptI_8t19I8bU&s=d6dcF0-lMjbXCDYcJrTzFrlFPxsHa1TzgiP4x5bXteA&e=>,
or mute the thread
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ADDeUyRLdaddIwBQmEdmQpLH6pVufSLGks5u6RUKgaJpZM4WRrg5&d=DwMCaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=0RF4UdPYmeY-L_O1i6y7mZxXvdEOLIArMs1cG7-uYlw&m=VVRFFMXJ0FwxxQ_02jnGwYtsM6cIzdjptI_8t19I8bU&s=mO2a6ZxxxyvyslNH3MqZ4U21geQQdnfl0K-FKeCVq9o&e=>
.
--
*Alexandre Pinto*
Product Manager and Distinguished Engineer
Security Services Global Products and Solutions
M *+1 (650) 441-2081*
[email protected] | [email protected]
*Advance Notice of Parental Leave (if Baby follows agreed upon schedule): *
*Jan 11, 2019 - Feb 4, 2019*
*Feb 18, 2019 - March 25, 2019*
|
Hey @Ironholds
AlexCP said maybe I can help, so here is my PR in hope to solve it.
I added new tests to ensure I am doing the thing (and also not breaking the codebase). Running results was: