请考虑以下情节。我已经维护了结构,软件包等的详细信息,因为我不确定是什么引起了该问题。我确信这很简单,但是我无法使其正常工作。
float x0 = -(float)32.f, y0 = -(float)32.f;
float x1 = (float)32.f, y1 = (float)32.f;
// Set attributes
const QVector3D vertices[4] = {
QVector3D( x0, y0, 0.0f),
QVector3D( x0, y1, 0.0f),
QVector3D( x1, y1, 0.0f),
QVector3D( x1, y0, 0.0f)
};
const QVector3D normals[4] = {
QVector3D(0.0f, 0.0f,1.0f),
QVector3D(0.0f, 0.0f,1.0f),
QVector3D(0.0f, 0.0f,1.0f),
QVector3D(0.0f, 0.0f,1.0f)
};
const QVector2D texcoords[4] = {
QVector2D(0.0f, 1.0f),
QVector2D(0.0f, 0.0f),
QVector2D(1.0f, 0.0f),
QVector2D(1.0f, 1.0f)
};
const unsigned int indices[4] = { 0, 1, 2, 3 };
// const unsigned int indices[4] = { 3, 2, 1, 0 };
shProgram.enableAttributeArray("vVertices");
shProgram.enableAttributeArray("vTexCoords");
shProgram.enableAttributeArray("vNormals");
shProgram.setAttributeArray("vVertices", vertices);
shProgram.setAttributeArray("vTexCoords", texcoords);
shProgram.setAttributeArray("vNormals", normals);
glDrawElements(GL_TRIANGLE_FAN, 4, GL_UNSIGNED_INT, indices);
shProgram.disableAttributeArray("vVertices");
shProgram.disableAttributeArray("vTexCoords");
shProgram.disableAttributeArray("vNormals");
我希望将普通字体与斜体混合使用。为何斜体不对expression()的标签起作用?我看到了很多类似的工作示例。
编辑:这是在RStudio 1.1.456上
答案 0 :(得分:1)
由于您的代码在某些用户看来还不错,如代码中所示(请注意第一个刻度是用于可视化的常规字体),因此可以尝试更新软件包
更新单个软件包
对于ggplot2之类的库,您可以使用select * from
(
select
WP.ID CR_ID,
case
when row_number() over(partition by WP.ID order by 1) < 14 then to_char(to_number(WP.WORK_YEAR, '9999') - 1)
when row_number() over(partition by WP.ID order by 1) > 25 then to_char(to_number(WP.WORK_YEAR, '9999') + 1)
else to_char(to_number(WP.WORK_YEAR))
end WORK_YEAR,
PRODUCTION.COLUMN_VALUE PRODUCTION,
case
when row_number() over(partition by WP.ID order by 1) - 1 < 13 then row_number() over(partition by WP.ID order by 1) - 1
when row_number() over(partition by WP.ID order by 1) - 13 > 0 then
case
when row_number() over(partition by WP.ID order by 1) - 13 < 13 then row_number() over(partition by WP.ID order by 1) - 13
else row_number() over(partition by WP.ID order by 1) - 25
end
end MNTH
from
LINEWORK.WORK_PRODUCTION WP,
table(WP.PRODUCTION) PRO
)
pivot
(
sum(PRODUCTION)
for MNTH in
(
0 TOTAL,
1 JANUARY,
2 FEBRUARY,
3 MARCH,
4 APRIL,
5 MAY,
6 JUNE,
7 JULY,
8 AUGUST,
9 SEPTEMBER,
10 OCTOBER,
11 NOVEMBER,
12 DECEMBER
)
)
order by
ID,
WORK_YEAR
;
函数(documentation)
更新r
对于此答案,链接旧的stackoverflow question
更容易您必须从网站上download R并手动重新安装,可惜RStudio中没有选择这样做。要获得更多帮助和更详细的步道,请查看旧帖子。